public async Task Handle_Void_Command_Async_Handler() { var voidCommand = new Command(); var handler = new Mock <ICommandHandlerAsync <Command> >(); handler .Setup(x => x.Handle(voidCommand, _cancellationToken)) .Returns(Task.CompletedTask); _mockHandlerFactory .Setup(x => x.Resolve(typeof(ICommandHandlerAsync <Command>))) .Returns(handler.Object); await _dispatcher.HandleAsync(voidCommand, _cancellationToken); Assert.True(true); }