public void GetAll_ReturnsEmptyList_ClientList() { List <ClientClass> newList = new List <ClientClass>(); List <ClientClass> result = ClientClass.GetAll(); CollectionAssert.AreEqual(newList, result); }
public void Delete_DeleteClient_Client() { ClientClass testClient = new ClientClass("Client9", "9", 9); testClient.Save(); List <ClientClass> emptyList = new List <ClientClass>(); testClient.Delete(); List <ClientClass> postDeleteClients = ClientClass.GetAll(); CollectionAssert.AreEqual(emptyList, postDeleteClients); }
public ActionResult Index() { List <ClientClass> allClients = ClientClass.GetAll(); return(View(allClients)); }