Exemplo n.º 1
0
		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);
		}
Exemplo n.º 2
0
        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);
        }