public void Should_not_have_error_when_adminEmail_is_correct_format() { var model = new InstallModel(); model.AdminEmail = "*****@*****.**"; _validator.ShouldNotHaveValidationErrorFor(x => x.AdminEmail, model); }
public void ShouldNotHaveErrorWhenAdminEmailIsCorrectFormat() { var model = new InstallModel { AdminEmail = "*****@*****.**" }; _validator.ShouldNotHaveValidationErrorFor(x => x.AdminEmail, model); }