Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Created September 5, 2016 10:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinyoo/2454c6c34a5e06b929ac4c58275e3cc7 to your computer and use it in GitHub Desktop.
Save justinyoo/2454c6c34a5e06b929ac4c58275e3cc7 to your computer and use it in GitHub Desktop.
Testing Azure Functions
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