Example #1
0
        public void Validation_Email_Length_Not_Enough_Account()
        {
            var account = new SignUp.AccountSignUpDto
            {
                Email         = "1",
                FullName      = "Test User",
                Password      = "******",
                PasswordAgain = "1"
            };

            var validator = new SignUp.AccountSignUpDtoValidator();

            validator.ShouldHaveValidationErrorFor(acc => acc.Email, account);
        }
Example #2
0
        public void Validation_Password_Not_Match_Account()
        {
            var account = new SignUp.AccountSignUpDto
            {
                Email         = "*****@*****.**",
                FullName      = "Test User",
                Password      = "******",
                PasswordAgain = "1q2w3e4r"
            };

            var validator = new SignUp.AccountSignUpDtoValidator();

            validator.ShouldHaveValidationErrorFor(acc => acc.PasswordAgain, account);
        }