Example #1
0
        public void DeleteTicketTest()
        {
            Ticket temp = NewTicket();

            InsertTicketIntoDatabase(temp);

            //Make sure the insert and select are working.
            Assert.IsTrue(SelectTicketById(temp.TicketId) != null, "The select query failed to return any results.");

            HelpdeskService.DeleteTicket(temp.TicketId);

            Assert.IsTrue(SelectTicketById(temp.TicketId) == null, "The selection returned a row, meaning that the delete statmen failed.");
        }