-
-
Save justinyoo/2454c6c34a5e06b929ac4c58275e3cc7 to your computer and use it in GitHub Desktop.
Testing Azure Functions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IMyInterface | |
{ | |
string MyMethod(); | |
} | |
var moq = Require<MoqPackContext>(); | |
var mocked = moq.Mock<IMyInterface>(); | |
mocked.Setup(p => p.MyMethod()).Returns("Hello World"); | |
var result = mocked.Object.MyMethod(); | |
Console.WriteLine(result); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment