public MultiFuncMachine(IPrinter printer, IScaner scaner, IFaxer faxer) { this.printer = printer ?? throw new ArgumentNullException(nameof(printer)); this.scaner = scaner ?? throw new ArgumentNullException(nameof(scaner)); this.faxer = faxer ?? throw new ArgumentNullException(nameof(faxer)); }
public FancyXerox( IPrinter printer, IScanner scanner, IFaxer faxer, ICoffeeMaker coffeeMaker) { Printer = printer; Scanner = scanner; Faxer = faxer; CoffeeMaker = coffeeMaker; }
public MultifunctionPrinterGood(IPrinter printer, IScanner scanner, IFaxer faxer) { Scanner = scanner; Printer = printer; Faxer = faxer; }