public void if_the_value_is_an_instance_delegate_to_the_pipeline_context()
        {
            var context = MockRepository.GenerateMock<IPipelineContext>();

            var instance = new Instance(null);

            var theWidget = new ColorWidget("green");

            context.Expect(x => x.GetInstance(typeof (IWidget), instance)).Return(theWidget);

            resolver.Resolve(typeof (IWidget), context, instance).ShouldBeTheSameAs(theWidget);
        }
示例#2
0
 public void DefaultInstance(Instance instance)
 {
     throw new NotImplementedException();
 }