Пример #1
0
        public async Task HandleAsync_If_Vehicle_Is_Not_Tracked_Rejection_Event_Not_Published()
        {
            // Arrange
            _trackedVehicleRepository
            .ExistsAsync(_vehicleId)
            .Returns(false);

            // Act
            await _vehicleDeletedHandler.HandleAsync(_event);

            // Assert
            await _busPublisher
            .DidNotReceive()
            .PublishAsync(Arg.Any <StopVehicleTrackingRejectedEvent>());
        }