public void TestLoginAttemptOccurs()
 {
     Global.LoginAttempts.Clear();
     Assert.AreEqual(0, Global.LoginAttempts.Count);
     AuthController controller = new AuthController();
     Assert.AreEqual("\"true\"", controller.User(new Models.UserModel("fido", "1234pass")));
     Assert.AreEqual(1, Global.LoginAttempts.Count);
 }
 public void TestValidLogin()
 {
     AuthController controller = new AuthController();
     Assert.AreEqual("\"true\"", controller.User(new Models.UserModel("fido", "1234pass")));
 }
 public void TestBadLogin()
 {
     AuthController controller = new AuthController();
     Assert.AreEqual("\"false\"", controller.User(new Models.UserModel("fido", "badpass")));
 }