This project is read-only.
1
Vote

The validate in timezone entity seems wrong.

description

The validate in timezone entity seems wrong.

protected override Err Validate(IUnitOfWork uow)
    {
        if(String.IsNullOrWhiteSpace(Code))
            return Err.Of<TimeZoneEntity>().NotValid("Code");
        if(Math.Abs(UtcOffset) >= 360)
            return Err.Of<TimeZoneEntity>().NotValid("UtcOffset");
        return base.Validate(uow);
    }
The Timezone offset should between -720 and 720. is it right?

comments