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); }
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); }
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); }