コード例 #1
0
        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();
 }