Exemple #1
0
        public void should_build_partial()
        {
            _page.Partial <InputModel>();

            _partialFactory.AssertWasCalled(f => f.BuildPartial(typeof(InputModel)));
            _page.AssertWasCalled(p => p.Get <IPartialFactory>());
            _behavior.AssertWasCalled(b => b.InvokePartial());
        }
Exemple #2
0
        public void use_the_explicit_type_requested_first_if_it_exists()
        {
            var model = new TestModelForActivation();

            theRequest.Set(model);

            ClassUnderTest.Activate(thePage);

            thePage.AssertWasCalled(x => x.Model = model);
        }
Exemple #3
0
 public void is_able_to_set_the_model_on_the_page_by_calling_through_to_FubuRequest_which_would_in_turn_trigger_model_binding()
 {
     thePage.AssertWasCalled(x => x.Model = theModel);
 }