Esempio n. 1
0
        public void StartServerWithConfig()
        {
            OctopusConfig oc = new OctopusConfig();
            oc.Load("TcpServer\\TestCase4\\TestCase4.xml");

            foreach (var item in oc.Adapters)
            {
                item.Value.AddEnvelopHandler(Program.ShowEnvelop);
                item.Value.Setup();
            }
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            OctopusConfig oc = new OctopusConfig();
            oc.UseLog4Net();

            #region TcpServer

            #region TcpServer.TestCase1

            //TcpServer.TestCase1 case1 = new TcpServer.TestCase1();
            //case1.RunTest();

            #endregion

            #region TcpServer.TestCase2

            //TcpServer.TestCase2 case2 = new TcpServer.TestCase2();
            //case2.RunTest();

            #endregion

            #region TcpServer.TestCase3

            //TcpServer.TestCase3 case3 = new TcpServer.TestCase3();
            //case3.RunTest();

            #endregion

            #region TcpServer.TestCase5

            //TcpServer.TestCase5 case5 = new TcpServer.TestCase5();
            //case5.RunTest();

            #endregion

            #region TcpServer.TestCase6

            //TcpServer.TestCase6 case6 = new TcpServer.TestCase6();
            //case6.RunTest();

            #endregion

            #region TcpServer.TestCase7

            //TcpServer.TestCase7 case7 = new TcpServer.TestCase7();
            //case7.RunTest();

            #endregion

            #region TcpServer.TestCase8

            //TcpServer.TestCase8 case8 = new TcpServer.TestCase8();
            //case8.RunTest();

            #endregion

            #region TcpServer.TestCase9

            //TcpServer.TestCase9 case9 = new TcpServer.TestCase9();
            //case9.RunTest();

            #endregion

            #region TcpServer.TestCase10

            //TcpServer.TestCase10 case10 = new TcpServer.TestCase10();
            //case10.RunTest();

            #endregion

            #endregion
        }