Beispiel #1
0
 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 MFU(ICopier copier, IScaner scaner, IPrinter printer)
 {
     _copier  = copier;
     _scaner  = scaner;
     _printer = printer;
 }
Beispiel #3
0
 public Copier(IPrinter printer, IScaner scaner)
 {
     _printer = printer;
     _scaner  = scaner;
 }