//<------------------------------------------TEST STUB-----------------------------------------------------> #if (TEST_MockRepo) //Driver Logic static void Main(string[] args) { int startport = int.Parse(args[0]); int serverport = int.Parse(args[1]); MockRepo mock = new MockRepo(startport, serverport); string repopath = "../../../MockRepository/RepoStorage"; Console.WriteLine("-----------------------------Start of Mock Repository at " + args[0] + " -------------------------------------"); Console.WriteLine("\n"); mock.sendrequest(repopath); Console.WriteLine("Listens for incoming Comm messages\n"); mock.listenforincomingmessages(); }
//<------------------------------------------TEST STUB-----------------------------------------------------> #if (TEST_MockRepo) //Driver Logic static void Main(string[] args) { int startport = int.Parse(args[0]); int serverport = int.Parse(args[1]); Console.Title = "Mock Repository"; Console.BackgroundColor = ConsoleColor.White; Console.ForegroundColor = ConsoleColor.DarkBlue; MockRepo mock = new MockRepo(startport, serverport); Console.WriteLine("-----------------------------Start of Mock Repository at " + args[0] + " -------------------------------------"); Console.WriteLine("\n"); Console.WriteLine("\n Mockrepo repositorystorage relative path is " + " ../../../MockRepository/RepoStorage \n"); Console.WriteLine("\n"); Console.WriteLine("Listens for incoming Comm messages\n"); mock.listenforincomingmessages(); }