예제 #1
0
        public void GivenValidate_WhenHavingANullUsername_ThenResultShouldBeInvalid()
        {
            var model          = UserRegisterModelFactory.WithUsernameNull();
            var modelValidator = new UserRegisterModelValidator();

            var result = modelValidator.Validate(model);

            result.IsValid.Should().BeFalse();
        }