示例#1
0
        public void TestCleanup()
        {
            _workflowRuntime.StopRuntime();
            _workflowRuntime.Dispose();

            _workflowRuntime = null;
            _scheduler       = null;
            _dataExchange    = null;
        }
示例#2
0
        public void TestInitialize()
        {
            _workflowRuntime = new WorkflowRuntime();
            _scheduler       = new ManualWorkflowSchedulerService();

            _workflowRuntime.AddService(_scheduler);
            _workflowRuntime.AddService(new ExternalDataExchangeService());

            _dataExchange = new MockDataExchange();
            _dataExchange.Reset();
            _workflowRuntime.GetService <ExternalDataExchangeService>().AddService(_dataExchange);

            _workflowRuntime.StartRuntime();
        }