public CoffeeMachineManager() { balance = 0; var container = Startup.ConfigureServices(); _coffeeDL = container.GetRequiredService <ICoffeeDL>(); _storeDL = container.GetRequiredService <IStoreDL>(); _coffeeFactory = container.GetRequiredService <ICoffeeFactory>(); }
public CoffeeShop(ICoffeeFactory coffeeFactory) { _coffeeFactory = coffeeFactory; }
public void TestInitialize() { _factory = new CoffeeFactory(); }