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 RegisterNormalDtoValidatorFixture() { Validator = new RegisterNormalDtoValidator(); Model = new RegisterNormalDto { Email = "*****@*****.**", Password = "******", ConfirmPassword = "******", FirstName = "James", LastName = "Vasanth", Roles = new List <string> { "Report", "Normal" } }; }