public Delay(IThreadOperations threadOperations, ITimeService timeService) { _threadOperations = threadOperations; _timeService = timeService; _runCount = 1; RecoveryOptions = new RecoveryOptionsDto(); }
private FakeHardwareComsServer( IThreadOperations threadOperations, Socket socket, IRequestResponseCollection requestResponseCollection) { _threadOperations = threadOperations; _socket = socket; _requestResponseCollection = requestResponseCollection; }
private TcpClient(IPEndPoint endPoint, Socket socket, int packetLength, IThreadOperations threadOperations, int timeout) { _endPoint = endPoint; _socket = socket; _packetLength = packetLength; _threadOperations = threadOperations; _timeout = timeout; }
public CheckForLightCommand(IValidateOperationService validateOperationService, IAnalogOperations analogOperations, ILightSensor lightSensor, IThreadOperations threadOperations) { _validateOperationService = validateOperationService; _analogOperations = analogOperations; _lightSensor = lightSensor; _threadOperations = threadOperations; RecoveryOptions = new RecoveryOptionsDto(true, Recover); }
public FakeHardwareComsServer( IThreadOperations threadOperations, IRequestResponseCollection requestResponseCollection) : this( threadOperations, new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp), requestResponseCollection) { _socket.Bind( ConfigurationLoader .GetTestConfigurationLoader() .GetControlLineSettings() .GetEndPoint() ); }
protected override void Given() { MockValidateOperationService = Substitute.For <IValidateOperationService>(); MockAnalogOperations = Substitute.For <IAnalogOperations>(); MockLightSensor = Substitute.For <ILightSensor>(); MockThreadingOperations = Substitute.For <IThreadOperations>(); SUT = new CheckForLightCommand( MockValidateOperationService, MockAnalogOperations, MockLightSensor, MockThreadingOperations ); }
public ParrellelSequence( List <IRunnable> tasks, RecoveryOptionsDto recoveryOptions, Action failAction, int runCount, IThreadOperations threadOperations ) : base( tasks, recoveryOptions, failAction, runCount ) { _threadOperations = threadOperations; }
public SequenceFactory(IThreadOperations threadOperations) { _threadOperations = threadOperations; }
public TcpClient(IPEndPoint endPoint, int packetLength, IThreadOperations threadOperations, int timeout) : this(endPoint, new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp), packetLength, threadOperations, timeout) { }