Exemple #1
0
        public async Task Handle_StartMotionDetection_starts_listening_for_motion_detections()
        {
            // Arrange
            var startMotionDetection = new StartMotionDetection();

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

            // Assert
            Assert.IsTrue(_sut.Started);
        }
Exemple #2
0
 public Task <Unit> Handle(StartMotionDetection request, CancellationToken cancellationToken)
 {
     Started = true;
     return(Unit.Task);
 }