public void creates_and_delegates_to_another_projection()
        {
            var context = MockRepository.GenerateMock <IProjectionContext <ProjectionModel> >();

            var projection = new DelegatingProjection <ProjectionModel, FakeProjector>();
            var theNode    = new DictionaryMediaNode();

            projection.Write(context, theNode);

            FakeProjector.theTarget.ShouldBeTheSameAs(context);
            FakeProjector.theNode.ShouldBeTheSameAs(theNode);
        }
        public void creates_and_delegates_to_another_projection()
        {
            var context = MockRepository.GenerateMock <IProjectionContext <ProjectionModel> >();
            var stub    = new FakeProjector();

            context.Stub(x => x.Service <FakeProjector>()).Return(stub);

            var projection = new DelegatingProjection <ProjectionModel, FakeProjector>();
            var theNode    = new DictionaryMediaNode();

            projection.Write(context, theNode);

            stub.theTarget.ShouldBeTheSameAs(context);
            stub.theNode.ShouldBeTheSameAs(theNode);
        }