public void TestSayHallo() { org.apache.etch.examples.helloworld.types.HelloWorld.user theUser = new user(15, "Test"); string s = server.say_hello(theUser); Assert.AreEqual(s, "Hello Test"); }
///<summary>Main for HelloWorldClient</summary> ///<param name="args">Command Line Arguments</param> public static void Main(String[] args) { // TODO: Change to correct URI //string uri = "udp://127.0.0.1:4001"; string uri = "tcp://127.0.0.1:4001"; RemoteHelloWorldServer server = HelloWorldHelper.NewServer(uri, null, new MainHelloWorldClient()); // Connect to the service server._StartAndWaitUp(4000); org.apache.etch.examples.helloworld.types.HelloWorld.user theUser = new user(5, "User"); string s = server.say_hello(theUser); Console.Write(s); // Disconnect from the service server._StopAndWaitDown(4000); }