public void GetAllTicketPriorities()
        {
            TicketPriorityCollection ticketPriorities = TestSetup.KayakoApiService.Tickets.GetTicketPriorities();

            Assert.IsNotNull(ticketPriorities, "No ticket priorities were returned");
            Assert.IsNotEmpty(ticketPriorities, "No ticket priorities were returned");
        }
        /// <summary>
        /// Retrieve the ticket status identified by <paramref name="priorityId"/>.
        /// </summary>
        /// <remarks>
        /// See - http://wiki.kayako.com/display/DEV/REST+-+TicketStatus#REST-TicketStatus-GET%2FTickets%2FTicketStatus%2F%24id%24
        /// </remarks>
        /// <param name="priorityId">The unique numeric identifier of the ticket status.</param>
        /// <returns>The ticket status</returns>
        public TicketPriority GetTicketPriority(int priorityId)
        {
            string apiMethod = String.Format("/Tickets/TicketPriority/{0}", priorityId);

            TicketPriorityCollection priorities = Connector.ExecuteGet <TicketPriorityCollection>(apiMethod);

            if (priorities != null && priorities.Count > 0)
            {
                return(priorities[0]);
            }
            return(null);
        }
        public void GetTicketPriority()
        {
            TicketPriorityCollection ticketPriorities = TestSetup.KayakoApiService.Tickets.GetTicketPriorities();

            Assert.IsNotNull(ticketPriorities, "No ticket priorities were returned");
            Assert.IsNotEmpty(ticketPriorities, "No ticket priorities were returned");

            TicketPriority randomTicketPriorityToGet = ticketPriorities[new Random().Next(ticketPriorities.Count)];

            Trace.WriteLine("GetTicketPriority using ticket priority id: " + randomTicketPriorityToGet.Id);

            TicketPriority ticketPriority = TestSetup.KayakoApiService.Tickets.GetTicketPriority(randomTicketPriorityToGet.Id);

            CompareTicketPriorities(ticketPriority, randomTicketPriorityToGet);
        }