///<summary>Main for ExampleClient</summary> ///<param name="args">Command Line Arguments</param> public static void Main(String[] args) { // TODO: Change to correct URI string uri = "tcp://127.0.0.1:4001"; RemoteExampleServer server = ExampleHelper.NewServer(uri, null, new MainExampleClient()); // Connect to the service server._StartAndWaitUp(4000); // define result string string res = null; res = server.say_hello("Hello"); Console.WriteLine(res); res = server.say_hello_mixin("Hello"); Console.WriteLine(res); // Disconnect from the service server._StopAndWaitDown(4000); }
public void TestSayHallo() { string s = server.say_hello("Hello"); Assert.AreEqual(s, "Server: Hello"); }