Ejemplo n.º 1
0
        public void DeleteQueueTest()
        {
            TicketQueue temp = NewQueue();

            InsertQueueIntoDatabase(temp);

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

            HelpdeskService.DeleteQueue(temp.QueueId);

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