Skip to content

Instantly share code, notes, and snippets.

@johnnonolan
Created August 5, 2010 09:10
Show Gist options
  • Save johnnonolan/509462 to your computer and use it in GitHub Desktop.
Save johnnonolan/509462 to your computer and use it in GitHub Desktop.
[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