Skip to content

Instantly share code, notes, and snippets.

@TheWalkingDev
Created October 25, 2012 19:23
Simple BDD - Given Methods
public SchedulerTests GivenCountingController()
{
var controller = new Mock<IImportController>();
_Count = 0;
controller.Setup(c => c.Run()).Callback(() =>
{
_Count++;
});
this._Controller = controller;
return this;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment