public void SetUp() { var item = new RegisterHelperTestsItem(); definition = new ItemDefinition(item.GetType()); var re = new ContentRegistration(definition); var html = new HtmlHelper(new ViewContext { HttpContext = new Fakes.FakeHttpContext("/") }, MockRepository.GenerateStub<IViewDataContainer>()); RegistrationExtensions.SetRegistrationExpression(html.ViewContext.HttpContext, re); helper = new RegisterHelper(html); }
public void SetUp() { var item = new RegisterHelperTestsItem(); definition = new ItemDefinition(item.GetType()); var re = new ContentRegistration(definition); var html = new HtmlHelper(new ViewContext { HttpContext = new Fakes.FakeHttpContext("/") }, MockRepository.GenerateStub <IViewDataContainer>()); RegistrationExtensions.SetRegistrationExpression(html.ViewContext.HttpContext, re); helper = new RegisterHelper(html); }