mock async method c# reutrnd code example
Example 1: mock async method c# reutrnd
mock.Setup(arg=>arg.DoSomethingAsync())
.Returns(Task.FromResult(someValue));
Example 2: mock async method c# reutrnd
mock.Setup(arg=>arg.DoSomethingAsync())
.ReturnsAsync(someValue);