Esempio n. 1
0
        static void Main(string[] args)
        {
            var characterMap = new BrailleCharacterMap();

            var inputProvider = new CharacterMapInputProvider(characterMap);

            inputProvider.Text = "abcdefg";

            var displayProvider = new ConsoleDisplayProvider();

            var           theDevice = new VirtualDevice(inputProvider, displayProvider);
            DeviceHarness harness   = new DeviceHarness(theDevice);

            harness.Execute();
        }
Esempio n. 2
0
        public static void Main()
        {
            var characterMap = new BrailleCharacterMap();

            //var inputProvider = new CharacterMapInputProvider(characterMap);
            //inputProvider.Text = "abcdefg";
            var inputProvider = new CyclicInputProvider();


            var displayProvider = new MotorDisplayProvider(Motor.GetMotors());
            var theDevice       = new TheDevice(inputProvider, displayProvider);

            DeviceHarness harness = new DeviceHarness(theDevice);

            harness.Execute();
        }