I am trying to test the orders of which the methodes are called. The issue I have is that I can't seem to find a good way to mock a Task object.
I am using NSubstitute
and Entity Framwork 6
. This is sort of what my code looks like.
Received.InOrder(() =>
{
IDbSet<TEntity>.SingleOrDefaultAsync(Arg.Any<Expression<Func<TEntity, bool>>>);
});
To further emphasize what I need an answer to, it is what I should insert to Arg.Any<>.