예제 #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);
		}
예제 #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);
        }