Beispiel #1
0
 public Engine(Iwriter consoleWriter, IReader consoleReader)
 {
     this.soldiers = new List <ISoldier>();
     this.privates = new List <IPrivate>();
     this.writer   = consoleWriter;
     this.reader   = consoleReader;
 }
Beispiel #2
0
 public Engine(Smartphone smartphone, StationaryPhone stationaryPhone, Iwriter consoleWriter, IReader consoleReader)
 {
     this.smartphone      = smartphone;
     this.stationaryPhone = stationaryPhone;
     this.writer          = consoleWriter;
     this.reader          = consoleReader;
 }