protected override void When() { var operationResponse = new OperationResponseDto { Status = _errorCode }; MockControlLine .SendOperation(Arg.Any <OperationDto>()) .Returns(operationResponse); MockErrorService .Validate(Arg.Any <byte>()) .Returns(_moveResult); _result = SUT.MoveAxisAbsolute(new DoorAxis(), 120); }
protected override void When() { var operationResponse = new OperationResponseDto { Status = _errorCode }; MockControlLine .SendOperation(Arg.Any <OperationDto>()) .Returns(operationResponse); MockErrorService .Validate(Arg.Any <byte>()) .Returns(_moveResult); _result = SUT.MoveAxisSearch(new DoorAxis(), new CeilingDigitalSensor(), _direction); }
protected override void When() { var light = new LightAnolougeSensor(); MockControlLine .SendOperation(Arg.Any <OperationDto>()) .Returns(new OperationResponseDto { Status = _status, Returns = 200 }); MockErrorService .Validate(Arg.Any <byte>()) .Returns(_readResult); _result = SUT.Read(light); }