/// <summary> /// Gets a list of TicketIDs from all Tickets /// </summary> /// <returns>A list of TicketIDs</returns> public List <int> GetTickets() { List <int> ticksIDs = new List <int>(); ticksList = tR.GetTickets(); foreach (var t in ticksList) { ticksIDs.Add(t.TickID); } //Returns a list of Ticket IDs return(ticksIDs); }
public void GetTicketsTest() { var test = ticketRepo.GetTickets(); Assert.IsNotNull(test); }