public void GetWorkItems_ByIds_Succeeds()
        {
            var logger = Substitute.For <IAggregatorLogger>();
            var client = Substitute.For <WorkItemTrackingHttpClientBase>(new Uri(CollectionUrl), null);
            var ids    = new [] { 42, 99 };

            client.GetWorkItemsAsync(ids, expand: WorkItemExpand.All)
            .ReturnsForAnyArgs(new List <WorkItem>
            {
                new WorkItem
                {
                    Id     = ids[0],
                    Fields = new Dictionary <string, object>()
                },
                new WorkItem
                {
                    Id     = ids[1],
                    Fields = new Dictionary <string, object>()
                }
            });

            var context = new EngineContext(client, projectId, ProjectName, PersonalAccessToken, logger);
            var sut     = new WorkItemStore(context);

            var wis = sut.GetWorkItems(ids);

            Assert.NotEmpty(wis);
            Assert.Equal(2, wis.Count);
            Assert.Contains(wis, (x) => x.Id.Value == 42);
            Assert.Contains(wis, (x) => x.Id.Value == 99);
        }
        public void GetWorkItems_ByIds_Succeeds()
        {
            var context = new EngineContext(client, projectId, projectName, personalAccessToken, logger);
            var sut     = new WorkItemStore(context);

            var wis = sut.GetWorkItems(new int[] { 42, 99 });

            Assert.NotEmpty(wis);
            Assert.Equal(2, wis.Count);
            Assert.Contains(wis, (x) => x.Id.Value == 42);
            Assert.Contains(wis, (x) => x.Id.Value == 99);
        }