public void GivenUri_ReturnStockList(IStockLoader stockLoader) { var uri = "../../../../CheckoutKata/StockList.json"; var stock = stockLoader.LoadStock(uri); Assert.True(stock.Any()); }
public Checkout(IStockLoader fileLoader) { _itemTypes = fileLoader.LoadStock("../../../../CheckoutKata/StockList.json"); }
public void GivenInvalidUri_ThrowArgumentException(IStockLoader stockLoader) { var uri = "invalidFile.txt"; Assert.Throws <FileNotFoundException>(() => stockLoader.LoadStock(uri)); }
public StockProcessor(AnalyzerDbContext dbContext, IStockLoader loader) { _dbContext = dbContext; _loader = loader; }