public Task <Unit> Handle(StartDistanceMeasurement request, CancellationToken cancellationToken)
        {
            Started = true;
            _timer  = new Timer(OnIntervalElapsed, null, TimeSpan.Zero, GetValueOrMinimalInterval(request.MeasureInterval));

            _logger.LogInformation($"Started distance measurement.");

            return(Unit.Task);
        }
        public async Task Handle_StartDistanceMeasurement_starts_distance_measuring()
        {
            // Arrange
            var startDistanceMeasurement = new StartDistanceMeasurement(_measureInterval);

            // Act
            await _sut.Handle(startDistanceMeasurement, _defaultCancellationToken);

            // Assert
            Assert.IsTrue(_sut.Started);
        }