コード例 #1
0
 public Engine(Smartphone smartphone, StationaryPhone stationaryPhone, Iwriter consoleWriter, IReader consoleReader)
 {
     this.smartphone      = smartphone;
     this.stationaryPhone = stationaryPhone;
     this.writer          = consoleWriter;
     this.reader          = consoleReader;
 }
コード例 #2
0
        public static void Main()
        {
            var smartphone      = new Smartphone();
            var stationaryPhone = new StationaryPhone();

            var writer = new ConsoleWriter();
            var reader = new ConsoleReader();

            var engine = new Engine(smartphone, stationaryPhone, writer, reader);

            engine.Run();
        }