public static void Main(string[] args) { RemoteController remoteController = new RemoteController(); while (true) { string output = remoteController.Call(Console.ReadLine()); Console.WriteLine(output); } Console.ReadLine(); }
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; }
public ChangeSettings(RemoteController rc) : base(rc) { }
public ShowOptions(RemoteController rc) : base(rc) { }
public TvOnOff(RemoteController rc) : base(rc) { }
protected Function(RemoteController rc) { Rc = rc; }