I have an async method returning a Task:
public virtual async Task IReturnATask(Guid settingId)
When I try to set it up like this in my unit test,
_service.Setup(m => m.IReturnATask(guid));
Moq complains:
"Invocation needs to return a value and therefore must have a corresponding setup that provides it."
How should I define the setup of this async method?