Beispiel #1
0
        public void Should_not_have_error_when_email_is_correct_format()
        {
            var model = new ContactUsModel();

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

            _validator.ShouldNotHaveValidationErrorFor(x => x.Email, model);
        }