I have a method that looks like this:
private async void DoStuff(long idToLookUp) { IOrder order = await orderService.LookUpIdAsync(idToLookUp);
I had a similar issue. In my case, the solution was to use Task.FromResult in the moq setup for .Returns(...) like so:
Task.FromResult
.Returns(...)
orderService.LookUpIdAsync(Arg.Any()) .Returns(Task.FromResult(null));
Alternatively, Moq also has a ReturnsAysnc(...) method.
ReturnsAysnc(...)