public McBurgerRestaurant(ICalculatorService calculatorService, IPaymentService paymentService, ICookingService cookingService, IPrintService printService)
 {
     this.calculatorService = calculatorService;
     this.paymentService    = paymentService;
     this.cookingService    = cookingService;
     this.printService      = printService;
 }
Beispiel #2
0
 public void SetUp()
 {
     fixture              = new Fixture();
     calculatorService    = new CalculatorService();
     fakePaymentProcessor = new FakePaymentProcessor();
     paymentService       = new PaymentService(fakePaymentProcessor);
     cookingService       = new CookingService();
     printService         = new PrintService();
     restaurant           = new McBurgerRestaurant(calculatorService, paymentService, cookingService, printService);
 }
Beispiel #3
0
 public WaffleCook(ICookingService service)
 {
     Service = service ?? throw new ArgumentNullException(nameof(service));
 }
Beispiel #4
0
 public CookingController(ICookingService cookingService)
 {
     _cookingService = cookingService;
 }
Beispiel #5
0
 public static int DoStuff(this ICookingService service)
 {
     return(service.DoStuff(""));
 }