public static void BeforeClass() { TestUtil.CopyLangTxt();//BJD.Lang.txt //設定ファイルの退避と上書き _op = new TmpOption("WebApiServerTest", "WebApiServerTest.ini"); var kernel = new Kernel(); var option = kernel.ListOption.Get("WebApi"); var conf = new Conf(option); //サーバ起動 _v4Sv = new Server(kernel, conf, new OneBind(new Ip(IpKind.V4Localhost), ProtocolKind.Tcp)); _v4Sv.Start(); _v6Sv = new Server(kernel, conf, new OneBind(new Ip(IpKind.V6Localhost), ProtocolKind.Tcp)); _v6Sv.Start(); }
public static void BeforeClass() { //設定ファイルの退避と上書き _op = new TmpOption("WebApiServerTest", "WebApiServerTest.ini"); //MailBoxのみ初期化する特別なテスト用Kernelコンストラクタ var kernel = new Kernel("MailBox"); var option = kernel.ListOption.Get("WebApi"); var conf = new Conf(option); //メールボックスの初期化 MailBoxBackup(); MailBoxSetup(); //サーバ起動 _v4Sv = new Server(kernel, conf, new OneBind(new Ip(IpKind.V4Localhost), ProtocolKind.Tcp)); _v4Sv.Start(); _v6Sv = new Server(kernel, conf, new OneBind(new Ip(IpKind.V6Localhost), ProtocolKind.Tcp)); _v6Sv.Start(); }