public void SetUp()
        {
            var request = new InMemoryFubuRequest();
            var container = StructureMapContainerFacility.GetBasicFubuContainer().GetNestedContainer();
            container.Inject<IFubuRequest>(request);

            theEtagRequest = new ETagRequest();
            theTarget = new Target();

            request.Set(theEtagRequest);
            request.Set(theTarget);

            // The FubuTupleBinder should be registered by default
            var binder = container.GetInstance<IObjectResolver>();

            theTuple = binder.BindModel(typeof (ETagTuple), new InMemoryRequestData()).Value.ShouldBeOfType<ETagTuple>();
        }
Esempio n. 2
0
        public void SetUp()
        {
            var request   = new InMemoryFubuRequest();
            var container = StructureMapContainerFacility.GetBasicFubuContainer().GetNestedContainer();

            container.Inject <IFubuRequest>(request);

            theEtagRequest = new ETagRequest();
            theTarget      = new Target();

            request.Set(theEtagRequest);
            request.Set(theTarget);

            // The FubuTupleBinder should be registered by default
            var binder = container.GetInstance <IObjectResolver>();

            theTuple = binder.BindModel(typeof(ETagTuple), new InMemoryRequestData()).Value.ShouldBeOfType <ETagTuple>();
        }