public void UpdateQueueTest() { TicketQueue temp = NewQueue(); InsertQueueIntoDatabase(temp); //Make sure the insertion worked smoothly. Assert.IsTrue(temp.Equals(SelectQueueById(temp.QueueId)), "The created queue and selected queue do not match. Insertion or selection might have failed"); //Change the values... temp.Name = "Testing Queue2"; temp.Description = "New Description"; temp.IsActive = false; temp.Creator = "blevinsn"; temp.CreationDate = DateTime.Now; //Peform the update. HelpdeskService.UpdateQueue(temp); //Create a new instance of the module object and compare them... TicketQueue temp2 = SelectQueueById(temp.QueueId); //Make sure they match. Assert.IsTrue(temp.Equals(temp2), "The updated queue did not match equality with the prepared module values in the method."); }