Example #1
0
        public static void Main(string[] args)
        {
            RemoteController remoteController = new RemoteController();

            while (true)
            {
                string output = remoteController.Call(Console.ReadLine());
                Console.WriteLine(output);
            }

            Console.ReadLine();
        }
Example #2
0
        void TestRemoteController(string[] commands, string[] expectedOutput)
        {
            var rc = new RemoteController();

            foreach (var command in commands)
            {
                rc.Call(command);
            }

            var optionsShowParts = rc.Call("Options show").Split('\n');

            Assert.AreEqual(expectedOutput.Length, optionsShowParts.Length);
            Assert.AreEqual(expectedOutput, optionsShowParts);
        }
 public OptionsShower(RemoteController remoteController)
 {
     _remoteController = remoteController;
 }
Example #4
0
 public ChangeSettings(RemoteController rc) : base(rc)
 {
 }
Example #5
0
 public ShowOptions(RemoteController rc) : base(rc)
 {
 }
Example #6
0
 public TvOnOff(RemoteController rc) : base(rc)
 {
 }
Example #7
0
 protected Function(RemoteController rc)
 {
     Rc = rc;
 }