Ejemplo n.º 1
0
        IReadOnlyCollection <Ticket> GetAllTickets(string labelName, bool open)
        {
            var openClosed = open ? WellKnownValue.Open : WellKnownValue.Closed;

            var listRequest = new TicketListRequest {
                SearchModel = new Search {
                    CriteriaRoot = new CriteriaRoot {
                        Criteria = new [] {
                            Criterion.FromElementPredicateAndConstantValue(ElementName.Label, PredicateName.Equals, labelName),
                            Criterion.FromElementPredicateAndConstantValue(ElementName.Ticket, PredicateName.Is, openClosed)
                        }
                    }
                }
            };

            return(ticketLister.GetTickets(listRequest));
        }
Ejemplo n.º 2
0
        public IReadOnlyList <Ticket> GetTickets(string agiilQueryString)
        {
            var request = GetRequest(agiilQueryString);

            return(lister.GetTickets(request));
        }