public void Should_not_have_error_when_email_is_correct_format() { var model = new ContactVendorModel(); model.Email = "*****@*****.**"; _validator.ShouldNotHaveValidationErrorFor(x => x.Email, model); }
public void ShouldNotHaveErrorWhenEmailIsCorrectFormat() { var model = new ContactVendorModel { Email = "*****@*****.**" }; _validator.ShouldNotHaveValidationErrorFor(x => x.Email, model); }