public void Should_not_have_error_when_friendEmail_is_correct_format() { var model = new WishlistEmailAFriendModel(); model.FriendEmail = "*****@*****.**"; _validator.ShouldNotHaveValidationErrorFor(x => x.FriendEmail, model); }
public void ShouldNotHaveErrorWhenFriendEmailIsCorrectFormat() { var model = new WishlistEmailAFriendModel { FriendEmail = "*****@*****.**" }; _validator.ShouldNotHaveValidationErrorFor(x => x.FriendEmail, model); }