Пример #1
0
        public void Validatipn_Login_Password_Length_Not_Match_Account()
        {
            var login = new Login.AccountLoginDto()
            {
                Email    = "*****@*****.**",
                Password = "******"
            };

            var validator = new Login.AccountLoginDtoValidator();

            validator.ShouldHaveValidationErrorFor(acc => acc.Password, login);
        }
Пример #2
0
        public void Validatipn_Login_Email_Not_Match_Account()
        {
            var login = new Login.AccountLoginDto()
            {
                Email    = "a",
                Password = "******"
            };

            var validator = new Login.AccountLoginDtoValidator();

            validator.ShouldHaveValidationErrorFor(acc => acc.Email, login);
        }