public void Should_Give_More_Access_To_Staff() { Mysql_User_Handler.Login("admin", "admin"); Assert.IsTrue(Mysql_User_Handler.UserType == "staff", "User is not identified as a staff member when they should be"); }
public void Should_Give_Residents_Access() { Mysql_User_Handler.Login("resident", "resident"); Assert.IsTrue(Mysql_User_Handler.UserType == "resident", "User is not identified as a resident when they should be"); }
public void Should_Return_False_If_Inccorect_Details() { Assert.IsFalse(Mysql_User_Handler.Login("admi", "adam"), "User should NOT be able to log in"); }
public void Should_Not_Be_Case_Sensitive() { Assert.IsTrue(Mysql_User_Handler.Login("ADMIN", "admin"), "The program should not worry about case sensitivty of username"); }
public void Should_Connect_If_User_Enters_NamePass() { Assert.IsTrue(Mysql_User_Handler.Login("admin", "admin"), "User should be able to log in, but can't"); }
public void Staff_Can_Mark_Requests_As_Complete() { Assert.IsTrue(Mysql_User_Handler.Login("admin", "admin"), "User should be able to log in, but can't"); }
public void Resident_Can_Add_New_Request() { Assert.IsTrue(Mysql_User_Handler.Login("admin", "admin"), "User should be able to log in, but can't"); }