public void Cleanup()
 {
     _downloader = null;
 }
 public MarketService(ICompanyService <C> companyService, IQuoteService <Q> quoteService, IMarketDownloader <C, Q> downloader)
 {
     _companyService = companyService ?? throw new ArgumentNullException("companyService");
     _quoteService   = quoteService ?? throw new ArgumentNullException("quoteService");
     _downloader     = downloader ?? throw new ArgumentNullException("downloader");
 }
 public void Initialize()
 {
     _mockDownloader = new MockMarketDownloader();
     _downloader     = _mockDownloader.Object;
     _fakeCompany    = FakeCompaniesBuilder.CreateFakeCompanyAAPL();
 }