Exemple #1
0
 public CreateRestaurantInfoDtoValidatorFixture()
 {
     Validator = new CreateRestaurantInfoDtoValidator();
     Model     = new CreateRestaurantInfoDto
     {
         Name     = "Golden Dining",
         Address  = "Kandy Road, Kaithady",
         City     = "Jaffna",
         Country  = "Sri Lanka",
         LandLine = "+9423454544",
         Mobile   = " +94567876786",
         Email    = "*****@*****.**"
     };
 }
Exemple #2
0
        protected virtual void Dispose(bool disposing)
        {
            if (!_disposed)
            {
                if (disposing)
                {
#pragma warning disable CS8625 // Cannot convert null literal to non-nullable reference type.
                    Model     = null;
                    Validator = null;
#pragma warning restore CS8625 // Cannot convert null literal to non-nullable reference type.
                }

                _disposed = true;
            }
        }