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)); }
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(); }
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()); }