public StateAssigner(IPureDataFacade pureDataFacade, IControllerStateFactory controllerStateFactory = null) { var stateFactory = controllerStateFactory ?? new ControllerStateFactory(); idleState_ = stateFactory.CreateIdleState(); carrierState_ = stateFactory.CreateCarrierState(pureDataFacade); modulatorState_ = stateFactory.CreateModulatorState(pureDataFacade); }
public void SetUp() { pureDataFacadeMock_ = Substitute.For <IPureDataFacade>(); controllerStateFactoryMock_ = Substitute.For <IControllerStateFactory>(); controllerStateFactoryMock_.CreateCarrierState(pureDataFacadeMock_).Returns(carrierStateMock_); controllerStateFactoryMock_.CreateModulatorState(pureDataFacadeMock_).Returns(modulatorStateMock_); stateAssigner_ = new StateAssigner(pureDataFacadeMock_, controllerStateFactoryMock_); }
public void SetUp() { ControllerStateFactory_ = new ControllerStateFactory(); }