public void CreateResponseTest() { TicketResponse temp = NewResponse(); HelpdeskService.CreateResponse(temp); Assert.IsTrue(SelectResponseById(temp.TicketResponseId) != null, "The internal selection query used to verify this test failed to return the a row."); Assert.IsTrue(temp.TicketResponseId > 0, "The returned Id from the CreateQueue test did not return a value greater than 0."); }
/// <summary> /// Helper method to insert values into the database. If successful, it will set the appropriate row id. /// </summary> /// <param name="Category"></param> private void InsertResponseIntoDatabase(TicketResponse response) { HelpdeskService.CreateResponse(response); }