Exemplo n.º 1
0
 public Engine(Smartphone smartphone, StationaryPhone stationaryPhone, Iwriter consoleWriter, IReader consoleReader)
 {
     this.smartphone      = smartphone;
     this.stationaryPhone = stationaryPhone;
     this.writer          = consoleWriter;
     this.reader          = consoleReader;
 }
        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();
        }