public GetRepositoryListingsToConsider( ExistingListingsProvider existingListingsProvider, ConstructRepositoryListings constructRepositoryListings, ListingsToProcessProvider listingsToProcess) { _existingListingsProvider = existingListingsProvider; _constructRepositoryListings = constructRepositoryListings; _listingsToProcess = listingsToProcess; }
public async Task Overflow(ListingsToProcessProvider sut) { sut.ArgProvider.RunNumber.Returns(4); sut.ArgProvider.NumToProcessPer.Returns(3); var listings = Get(10); sut.ListingsProvider.Get().Returns(Task.FromResult(listings)); var result = sut.Get().ToEnumerable(); result.Should().Equal(listings.Take(3)); }