public void TestSetPasswordFail()
        {
            // Arrange
            LoginController lc = new LoginController();
            bool expected = false;

            Staff expectedStaff = new Staff();
            expectedStaff.StaffID = 100;
            expectedStaff.FirstName = "test staff";
            expectedStaff.LastName = "test";
            expectedStaff.DateOfBirth = new DateTime(2013, 2, 5);
            expectedStaff.Gender = PersonGender.Male;
            expectedStaff.TelephoneNumber = "00000000000";
            expectedStaff.EmailAddress = "test";
            expectedStaff.AddressLine1 = "test";
            expectedStaff.AddressLine2 = "test";
            expectedStaff.City = "test";
            expectedStaff.County = "test";
            expectedStaff.PostCode = "test";
            expectedStaff.MaritalStatus = "single";
            expectedStaff.Permissions = PermissionsFlag.Doctor;

            // Act
            bool actual = lc.SetStaffPassword(expectedStaff, "test");

            // Assert
            Assert.AreEqual(expected, actual);
        }
        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);
        }