/// <summary>
        /// Starts the specified state machine name.
        /// </summary>
        /// <param name="stateMachineName">Name of the state machine.</param>
        /// <param name="domainContext">The domain context.</param>
        /// <returns>The workflow</returns>
        public IStateMachineContext Start(string stateMachineName, object domainContext)
        {
            IStateMachine stateMachine   = _stateMachineService.CreateStateMachine(stateMachineName);
            var           machineContext = new StateMachineContext(stateMachine, domainContext, this);

            machineContext.Start();
            return(machineContext);
        }
示例#2
0
 public void CanCreateUsingStateMachineServiceTest()
 {
     Assert.IsNotNull(_stateMachineService.CreateStateMachine(@"testStateMachine.boo"));
 }