I have a method on my interface that looks like:
T GetSingle(Expression> criteria);
I\'m trying to mock the setup som
If you don't mind a generic set up, it can be simpler like this.
_mockUserRepository.Setup(c => c.GetSingle(It.IsAny>>())) .Returns(new User { EmailAddress = "a@b.com" });