Ejemplo n.º 1
0
        public void SetUp()
        {
            BehaviorGraph behaviorGraph = new FubuRegistry().BuildGraph();

            behaviorGraph.Behaviors.Count().ShouldEqual(1);

            theContentCache = behaviorGraph.Services.DefaultServiceFor <IAssetContentCache>()
                              .Value.ShouldBeOfType <AssetContentCache>();

            theChain = behaviorGraph.BehaviorFor <AssetWriter>(x => x.Write(null));
        }
Ejemplo n.º 2
0
        public void SetUp()
        {
            file1 = new AssetFile("1");
            file2 = new AssetFile("2");
            file3 = new AssetFile("3");
            file4 = new AssetFile("4");
            file5 = new AssetFile("5");
            file6 = new AssetFile("6");

            theCache = new AssetContentCache();

            theGraph = new FubuRegistry().BuildGraph();
        }
Ejemplo n.º 3
0
        public void SetUp()
        {
            file1 = new AssetFile("1");
            file2 = new AssetFile("2");
            file3 = new AssetFile("3");
            file4 = new AssetFile("4");
            file5 = new AssetFile("5");
            file6 = new AssetFile("6");

            theOutputCache = MockRepository.GenerateMock <IOutputCache>();
            headersCache   = MockRepository.GenerateMock <IHeadersCache>();

            theCache = new AssetContentCache(headersCache, theOutputCache);

            theGraph = BehaviorGraph.BuildFrom(new FubuRegistry());
        }