public ClosedTicketsForLabelResolver(IGetsTicketsWithLabel ticketProvider) : base(ticketProvider, (p, l) => p.GetAllClosedTickets(l)) { }
protected TicketsForLabelResolver(IGetsTicketsWithLabel ticketProvider, Func <IGetsTicketsWithLabel, Label, IReadOnlyCollection <Ticket> > ticketFunction) { this.ticketProvider = ticketProvider ?? throw new ArgumentNullException(nameof(ticketProvider)); this.ticketFunction = ticketFunction ?? throw new ArgumentNullException(nameof(ticketFunction)); }