public void GetAllChargeCodeTest() { TicketChargeCodeCollection tempChargeCodeCol = new TicketChargeCodeCollection(); //Create a new ChargeCode, insert it into the database, and then insert it into the ChargeCode Collection. for (int x = 0; x < 10; x++) { TicketChargeCode tempCC = NewChargeCode(); InsertChargeCodeIntoDatabase(tempCC); tempChargeCodeCol.Add(tempCC); } //Get all ChargeCodes... TicketChargeCodeCollection tempChargeCodeCol2 = HelpdeskService.GetAllChargeCode(); foreach (TicketChargeCode temp in tempChargeCodeCol) { Assert.IsTrue(tempChargeCodeCol2.Contains(temp)); } }