Example #1
0
        static unsafe void Main(string[] args)
        {
            try
            {
                Thread.CurrentThread.Name = "MainThread";
                LOG.Info("Strating...");
                IApplicationContext ctx = ContextRegistry.GetContext();

                using (ITestController mainTestController = new TestController(ctx))
                {
                    if (args.Contains("-nogui"))
                    {
                        LOG.Info("Console mode on");
                    }
                    else
                    {
                        using (Form form = new DebugView(mainTestController))
                        {
                            mainTestController.ControllerView = form as IControllerView;
                            form.ShowDialog();
                        }
                    }
                }
                LOG.Info("... end");
                Console.ReadLine();
            }
            catch (Exception e)
            {
                Console.WriteLine(e.StackTrace);
                Console.WriteLine(e.Message);
                Console.ReadLine();
            }
        }
Example #2
0
 public void SetTestController(TestController testControlle)
 {
     this._testController = testControlle;
 }
Example #3
0
 public TestWorker(TestController testController)
 {
     _testController = testController;
     _finish = false;
 }