Start() public method

public Start ( ) : void
return void
示例#1
0
        public void TestFixtureSetUp()
        {
            inboxPath  = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "inbox");
            outboxPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "outbox");
            if (!Directory.Exists(inboxPath))
            {
                Directory.CreateDirectory(inboxPath);
            }
            if (!Directory.Exists(outboxPath))
            {
                Directory.CreateDirectory(outboxPath);
            }
            ConfigurationManager.AppSettings["inbox"]  = inboxPath;
            ConfigurationManager.AppSettings["outbox"] = outboxPath;

            service = new MockJobManagerService(inboxPath, outboxPath);
            service.Start();
        }
        public void TestFixtureSetUp()
        {
            inboxPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "inbox");
            outboxPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "outbox");
            if (!Directory.Exists(inboxPath))
            {
                Directory.CreateDirectory(inboxPath);
            }
            if (!Directory.Exists(outboxPath))
            {
                Directory.CreateDirectory(outboxPath);
            }
            ConfigurationManager.AppSettings["inbox"] = inboxPath;
            ConfigurationManager.AppSettings["outbox"] = outboxPath;

            service = new MockJobManagerService(inboxPath, outboxPath);
            service.Start();
        }