コード例 #1
0
        public void Should_not_have_error_when_email_is_correct_format()
        {
            var model = new ContactVendorModel();

            model.Email = "*****@*****.**";
            _validator.ShouldNotHaveValidationErrorFor(x => x.Email, model);
        }
コード例 #2
0
        public void ShouldNotHaveErrorWhenEmailIsCorrectFormat()
        {
            var model = new ContactVendorModel
            {
                Email = "*****@*****.**"
            };

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