Let\'s say I have the following class and an interface it depends on:
public class MyController { private IRepository _repository; public MyControlle
If you are targeting .NET Framework 4.6 or later, you can now use .Returns(Task.CompletedTask) instead which is slightly shorter.
.Returns(Task.CompletedTask)