Exemplo n.º 1
0
        public void activate_a_fubu_page_with_a_model_on_it()
        {
            var input = new FubuPageTarget();
            theRequest.Set(input);

            var theModelPage = MockRepository.GenerateMock<IFubuPage<FubuPageTarget>>();

            theActivator.Activate(theModelPage);

            theModelPage.AssertWasCalled(x => x.Model = input);
        }
Exemplo n.º 2
0
        public void activate_a_fubu_page_with_a_model_on_it()
        {
            var input = new FubuPageTarget();

            theRequest.Set(input);

            var theModelPage = MockRepository.GenerateMock <IFubuPage <FubuPageTarget> >();

            theActivator.Activate(theModelPage);

            theModelPage.AssertWasCalled(x => x.Model = input);
        }
Exemplo n.º 3
0
        public void activate_a_fubu_page_with_a_model_on_it()
        {
            var input = new FubuPageTarget();

            theRequest.Set(input);

            var theModelPage = MockRepository.GenerateMock <IFubuPage <FubuPageTarget> >();

            // Gets around a defensive prog. check
            theModelPage.Stub(x => x.Model).Return(input);

            theActivator.Activate(theModelPage);

            theModelPage.AssertWasCalled(x => x.Model = input);
        }