Ejemplo n.º 1
0
        public void GetAll_ReturnsEmptyList_ClientList()
        {
            List <ClientClass> newList = new List <ClientClass>();
            List <ClientClass> result  = ClientClass.GetAll();

            CollectionAssert.AreEqual(newList, result);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        public ActionResult Index()
        {
            List <ClientClass> allClients = ClientClass.GetAll();

            return(View(allClients));
        }