How to Setup Async and Task Return methods with Moq 4.2
Moq 4.2 comes with a couple of nice changes that I hadn't noticed (and they are extension methods, so you might continue to miss them) The main benefit is allowing you to change from writing _mock.Setup(m => m.GetStateAsync(It.IsAny<Profile>())) Read More