public void GetAllCategoryTest() { TicketCategoryCollection tempCategoryCol = new TicketCategoryCollection(); //Create a new Category, insert it into the database, and then insert it into the Category Collection. for (int x = 0; x < 10; x++) { TicketCategory temp = NewCategory(); InsertCategoryIntoDatabase(temp); tempCategoryCol.Add(temp); } //Get all Categorys... TicketCategoryCollection tempCategoryCol2 = HelpdeskService.GetAllCategory(); foreach (TicketCategory temp in tempCategoryCol) { Assert.IsTrue(tempCategoryCol2.Contains(temp)); } }