public McBurgerRestaurant(ICalculatorService calculatorService, IPaymentService paymentService, ICookingService cookingService, IPrintService printService) { this.calculatorService = calculatorService; this.paymentService = paymentService; this.cookingService = cookingService; this.printService = printService; }
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); }
public WaffleCook(ICookingService service) { Service = service ?? throw new ArgumentNullException(nameof(service)); }
public CookingController(ICookingService cookingService) { _cookingService = cookingService; }
public static int DoStuff(this ICookingService service) { return(service.DoStuff("")); }