public void GetAllModulesTest() { TicketModuleCollection tempModuleCol = new TicketModuleCollection(); //Create a new module, insert it into the database, and then insert it into the Module Collection. for (int x = 0; x < 10; x++) { TicketModule tempMod = NewModule(); InsertModuleIntoDatabase(tempMod); tempModuleCol.Add(tempMod); } //Get all Modules... TicketModuleCollection tempModuleCol2 = HelpdeskService.GetAllModules(); foreach (TicketModule temp in tempModuleCol) { Assert.IsTrue(tempModuleCol2.Contains(temp)); } }