Created
October 25, 2012 19:23
Simple BDD - Given Methods
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 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