public void validateRequest_withoutLogin_false() { AuthProtect testingClass = new AuthProtect(new ProgramInfo { ProgramId = 1 }); var result = testingClass.validateRequest(); Assert.IsFalse(result); }
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); }
public void testInitialize() { _authProtect = new AuthProtect(new ProgramInfo { ProgramId = 0 }); }