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); }
public Task <Unit> Handle(StartMotionDetection request, CancellationToken cancellationToken) { Started = true; return(Unit.Task); }