public TestStateMachine CreateTestStateMachineWithOnOffStates(ComponentState activeState) { var stateMachine = new TestStateMachine(ComponentIdGenerator.EmptyId); stateMachine.AddState(new StateMachineState(BinaryStateId.Off)); stateMachine.AddState(new StateMachineState(BinaryStateId.On)); stateMachine.SetState(activeState); return stateMachine; }
public TestStateMachine CreateTestStateMachineWithOnOffStates(StatefulComponentState activeState) { var stateMachine = new TestStateMachine(ComponentIdFactory.EmptyId); stateMachine.AddState(new StateMachineState(BinaryStateId.Off)); stateMachine.AddState(new StateMachineState(BinaryStateId.On)); stateMachine.SetState(activeState); return(stateMachine); }
public TestStateMachine CreateTestStateMachineWithActiveState(ComponentState id) { var stateMachine = new TestStateMachine(ComponentIdGenerator.EmptyId); stateMachine.AddState(new StateMachineState(id)); stateMachine.SetState(id); return stateMachine; }
public TestStateMachine CreateTestStateMachineWithActiveState(StatefulComponentState id) { var stateMachine = new TestStateMachine(ComponentIdFactory.EmptyId); stateMachine.AddState(new StateMachineState(id)); stateMachine.SetState(id); return(stateMachine); }