static void Main(string[] args) { Console.WriteLine("/////////////////////////////////////////////////////////////////"); Console.WriteLine(" CSE681 - Software Modeling & Analysis "); Console.WriteLine(" Project 4 - Remote Test Harness "); Console.WriteLine(" Yadav Narayana Murthy - SUID: 990783888 "); Console.WriteLine("//////////////////////////////////////////////////////////////////\n"); Console.Title = "Test Harness"; Console.Write("\n Test Harness Server"); Console.Write("\n =====================\n"); Console.Write("REQ 1 - Shall be implemented in C# using the facilities of the .Net Framework Class Library and Visual Studio 2015"); Console.Write("\n REQ 10 - Creating a WCF channel"); TestHarness Server = new TestHarness(); Message msg = Server.makeMessage("Fawcett", Server.endPoint, Server.endPoint); /////////////////////////////////////////////////////////////// // uncomment lines below to enable sending messages to Client //Server.comm.sndr.PostMessage(msg); //msg = Server.makeMessage("Fawcett", Server.endPoint, Server.endPoint); //msg.body = MessageTest.makeTestRequest(); //Server.comm.sndr.PostMessage(msg); //string remoteEndPoint = Comm<Server>.makeEndPoint("http://localhost", 8081); //msg = msg.copy(); //msg.to = remoteEndPoint; //Server.comm.sndr.PostMessage(msg); //Console.Write("\n press key to exit: "); //Console.ReadKey(); //msg.to = Server.endPoint; //msg.body = "quit"; //Server.comm.sndr.PostMessage(msg); //Server.wait(); //Console.Write("\n\n"); }
public void PostMessage(Message msg) { "TestHarness received a new message:".title(); msg.show(); TestHarness.EnqueueMessagesToTestHarness(msg); }
static public void SendfromTHtoRepo(TestHarness th, Message msg) { comm.sndr.PostMessage(msg); }