Created
August 5, 2010 09:10
-
-
Save johnnonolan/509462 to your computer and use it in GitHub Desktop.
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
[Subject(typeof(ContentPage))] | |
public class Creating_a_ContentPage | |
{ | |
Establish context = () => | |
{ | |
mocker = new RhinoAutoMocker<ContentPageController>(); | |
contentPageController = mocker.ClassUnderTest; | |
}; | |
Because of = () => | |
viewResult= (ViewResult)contentPageController.New(0); | |
It should_add_no_partners_to_the_ViewData = () => | |
viewResult.ViewData["PartnerId"].ShouldBeNull(); | |
static ContentPageController contentPageController; | |
static ViewResult viewResult; | |
static RhinoAutoMocker<ContentPageController> mocker; | |
static ContentPageController newmocker; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment