public void TestInstantiate() { Assembly asm = Assembly.GetExecutingAssembly(); Stream fs = asm.GetManifestResourceStream("PerformanceTest.SimpleStateMachine.xml"); IStateMachine sm = new DefaultStateMachineFactory().CreateStateMachineFromXml(fs); _sm = sm as DefaultStateMachine; }
/// <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); }
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); }