public ActivityDiscrepancyFinderTestFixtures()
        {
            CosmosRepoMock = new Mock <ICosmosActivityDocumentRepository>();

            ElasticRepoMock = new Mock <IElasticActivityDocumentRepository>();

            LoggerMock = new Mock <ILog>();

            CosmosRepoMock
            .Setup(r => r.GetActivitiesAsync(It.IsAny <IPagingData>()))
            .Callback <IPagingData>(pagingData =>
            {
                LogCall(_cosmosPageCalls, pagingData.RequiredPageSize);
                SetCosmosEndOfDataMarker(pagingData);
            })
            .ReturnsAsync(GetCosmosPage);

            ElasticRepoMock
            .Setup(r => r.GetActivitiesAsync(It.IsAny <IPagingData>()))
            .Callback <IPagingData>((pagingData) =>
            {
                LogCall(_elasticPageCalls, pagingData.RequiredPageSize);
                SetElasticEndOfDataMarker(pagingData);
            })
            .ReturnsAsync(GetElasticPage);

            _guidMapper = new GuidMapper();
        }
 public ActivityDiscrepancyQueueTestFixtures()
 {
     PushedMessages           = new List <ActivityDiscrepancy>();
     ActivityDiscrepancyQueue = new ActivityDiscrepancyQueue();
     CancellationTokenSource  = new CancellationTokenSource();
     _guidMapper = new GuidMapper();
 }