Example #1
0
        public void TestInstantiate()
        {
            Assembly      asm = Assembly.GetExecutingAssembly();
            Stream        fs  = asm.GetManifestResourceStream("PerformanceTest.SimpleStateMachine.xml");
            IStateMachine sm  = new DefaultStateMachineFactory().CreateStateMachineFromXml(fs);

            _sm = sm as DefaultStateMachine;
        }
Example #2
0
        /// <summary>
        /// Initialize,instantiate xshellManager and stateMachine
        /// </summary>
        public void Initialize(IRemoteMethodInvoker remoteInvoker)
        {
            IStateMachine stateMachine = new DefaultStateMachineFactory().CreateStateMachineFromXml(stateMachineConfigXml);

            _stateMachine  = stateMachine as DefaultStateMachine;
            _xshellManager = XShellManager.GetInstance();
            _xshellManager.Initialize(remoteInvoker);
            _xshellManager._remoteInvoker.RegisterServiceObject <IWorkflow>(this);
        }
Example #3
0
        public void TestInstantiate()
        {
            Assembly      asm = Assembly.GetExecutingAssembly();
            Stream        fs  = asm.GetManifestResourceStream("UIH.XA.StateMachineUT.SimpleStateMachine.xml");
            IStateMachine sm  = new DefaultStateMachineFactory().CreateStateMachineFromXml(fs);

            _sm = sm as DefaultStateMachine;
            Assert.IsNotNull(_sm);
        }