public CoffeeMachineManager()
        {
            balance = 0;
            var container = Startup.ConfigureServices();

            _coffeeDL      = container.GetRequiredService <ICoffeeDL>();
            _storeDL       = container.GetRequiredService <IStoreDL>();
            _coffeeFactory = container.GetRequiredService <ICoffeeFactory>();
        }
Пример #2
0
 public CoffeeShop(ICoffeeFactory coffeeFactory)
 {
     _coffeeFactory = coffeeFactory;
 }
Пример #3
0
 public void TestInitialize()
 {
     _factory = new CoffeeFactory();
 }