public void EditModuleTest() { TicketModule temp = NewModule(); InsertModuleIntoDatabase(temp); //Make sure the insertion worked smoothly. Assert.IsTrue(temp.Equals(SelectModuleById(temp.TicketModuleId)), "The created module and selected module do not match. Insertion or selection might have failed"); //Change the values... temp.Name = "New Module name!"; temp.Description = "New Module Description"; temp.IsActive = false; temp.TicketQueueId = 3; //Peform the update. HelpdeskService.EditModule(temp); //Create a new instance of the module object and compare them... TicketModule temp2 = SelectModuleById(temp.TicketModuleId); //Make sure they match. Assert.IsTrue(temp.Equals(temp2), "The updated module did not match equality with the prepared module values in the method."); }