Exemplo n.º 1
0
        public void Should_not_have_error_when_adminEmail_is_correct_format()
        {
            var model = new InstallModel();

            model.AdminEmail = "*****@*****.**";
            _validator.ShouldNotHaveValidationErrorFor(x => x.AdminEmail, model);
        }
Exemplo n.º 2
0
        public void ShouldNotHaveErrorWhenAdminEmailIsCorrectFormat()
        {
            var model = new InstallModel
            {
                AdminEmail = "*****@*****.**"
            };

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