예제 #1
0
        public void ExecutesHosterApiCallerForEachConfigSource()
        {
            var sut    = new ApiCaller(hac, context);
            var result = sut.CallApis();

            Assert.Equal(2, hac.PassedConfigSources.Count);
            Assert.Equal(2, result.Dic.Count());

            var resultList1 = result.GetReposForSource(source1);

            Assert.Equal(list1, resultList1);

            var resultList2 = result.GetReposForSource(source2);

            Assert.Equal(list2, resultList2);
        }