public void TestLogout()
        {
            // Arrange
            LoginController lc = new LoginController();
            UserSession.Instance().CurrentUser = null;
            lc.Login(1, "test");

            // Act
            lc.Logout();

            // Assert
            Assert.IsNull(UserSession.Instance().CurrentUser);
        }
        public void TestSetPasswordSuccess()
        {
            // Arrange
            LoginController lc = new LoginController();
            bool expected = true;
            lc.Login(1, "test");

            // Act
            bool actual = lc.SetStaffPassword(UserSession.Instance().CurrentUser, "test");

            // Assert
            Assert.AreEqual(expected, actual);
        }
        public void TestLoggedInDetails()
        {
            // Arrange
            LoginController lc = new LoginController();
            UserSession.Instance().CurrentUser = null;

            String expectedName = "test subject 12 test";

            // Act
            lc.Login(1, "test");

            // Assert
            StringAssert.Equals(expectedName, UserSession.Instance().CurrentUser.ToString());
        }
        public void TestSuccessfulLogin()
        {
            // Arrange
            LoginController lc = new LoginController();
            UserSession.Instance().CurrentUser = null;
            bool expected = true;

            // Act
            bool actual = lc.Login(1, "test");

            // Assert
            Assert.AreEqual(expected, actual);
            Assert.IsNotNull(UserSession.Instance().CurrentUser);
        }