示例#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();
        }
示例#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;
 }
示例#4
0
 public ChangeSettings(RemoteController rc) : base(rc)
 {
 }
示例#5
0
 public ShowOptions(RemoteController rc) : base(rc)
 {
 }
示例#6
0
 public TvOnOff(RemoteController rc) : base(rc)
 {
 }
示例#7
0
 protected Function(RemoteController rc)
 {
     Rc = rc;
 }