Ejemplo n.º 1
0
        public void validateRequest_withoutLogin_false()
        {
            AuthProtect testingClass = new AuthProtect(new ProgramInfo {
                ProgramId = 1
            });
            var result = testingClass.validateRequest();

            Assert.IsFalse(result);
        }
Ejemplo n.º 2
0
        public void validateRequest_invalidData_false()
        {
            AuthProtect testingClass = new AuthProtect(new ProgramInfo {
                ProgramId = 123456
            });

            String login    = "******";
            String password = "******";

            testingClass.login(login, password);
            var result = testingClass.validateRequest();

            Assert.IsFalse(result);
        }