protected override void Context() { stateMachine = new StateMachine(); stateMachine.AddState(); stateMachine.AddState(); stateMachine.CreatePathFrom.State(1).To.State(2); stateMachine.Start(); rootContext = new MainContextStub(); sut = new MainModule(rootContext); }
protected override void Context() { base.Context(); childContext = new MainContextStub(stateMachine, stateMachine.GetState(2)); rootContext.AddChild(childContext); stateMachine.ChangeState(2); }
protected override void Context() { base.Context(); stateOneContext = new MainContextStub(stateMachine, stateMachine.GetState(1)); stateTwoContext = new MainContextStub(stateMachine, stateMachine.GetState(2)); rootContext.AddChild(stateOneContext); rootContext.AddChild(stateTwoContext); }