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; } }
public CreateSupplierDtoValidatorFixture() { Validator = new CreateSupplierDtoValidator(); Model = new CreateSupplierDto { Name = "Test Supplier Pvt Ltd", Address1 = "#03-81, BLK 227", Address2 = "Bishan Street 23", City = "Bishan", Country = "Singapore", Telephone1 = "+94666553456", Telephone2 = "+94888775678", Fax = "+94666448856", Email = "*****@*****.**", ContactPerson = "James" }; }