public override void Given() { base.Given(); EventFetcher.Setup(x => x.Fetch(It.IsAny <CancellationToken>())).Returns(() => Task.FromResult <IEnumerable <EpcisEvent> >(new[] { new EpcisEvent(), new EpcisEvent() })); Parameters.Add(new Model.Queries.QueryParameter { Name = "maxEventCount", Values = new[] { "1" } }); }