コード例 #1
0
 public PizzaKitchen(
     IPizzaOven pizzaOven,
     ILogger logger)
 {
     this.pizzaOven = pizzaOven ?? throw new ArgumentNullException(nameof(pizzaOven));
     this.logger    = logger ?? LogManager.CreateNullLogger();
 }
コード例 #2
0
 public PizzaKitchen(
     IPizzaOven pizzaOven)
     : this(pizzaOven, null)
 {
 }
コード例 #3
0
 public PizzaController(IPizzaOven pizzaOven)
 {
     _pizzaOven = pizzaOven;
 }