public void SetUp()
 {
     _theFileGraph = new AssetFileGraph();
     _theFile = new AssetFile("a.js");
     _thePath = new AssetPath("pak1", "a.js", AssetFolder.scripts);
     _theFileGraph.AddFile(_thePath, _theFile);
 }
        public void SetUp()
        {
            thePipeline = new AssetFileGraph();
            var builder = new AssetFileGraphBuilder(new FileSystem(), thePipeline, new PackageLog());
            builder.LoadFiles(new PackageAssetDirectory{
                Directory = FileSystem.Combine("..", "..", "Jasmine", "TestPackage2"),
                PackageName = "Pak2"
            });

            theGraph = new SpecificationGraph(thePipeline);
        }
        public AssetServicesRegistry()
        {
            var pipeline = new AssetFileGraph();
            SetServiceIfNone<IAssetFileGraph>(pipeline);
            SetServiceIfNone<IAssetFileRegistration>(pipeline);

            SetServiceIfNone(new AssetGraph());
            SetServiceIfNone(new AssetLogsCache());

            SetServiceIfNone<IAssetCacheHeaders, AssetCacheHeaders>();

            SetServiceIfNone<IAssetTagWriter, AssetTagWriter>();

            SetServiceIfNone<ICombinationDeterminationService, CombinationDeterminationService>();

            SetServiceIfNone<IAssetCombinationCache, AssetCombinationCache>();
            SetServiceIfNone<IAssetDependencyFinder, AssetDependencyFinderCache>();
            SetServiceIfNone<IAssetTagPlanner, AssetTagPlanner>();
            SetServiceIfNone<IAssetTagBuilder, AssetTagBuilder>();
            SetServiceIfNone<IAssetRequirements, AssetRequirements>();

            SetServiceIfNone<IMissingAssetHandler, TraceOnlyMissingAssetHandler>();

            SetServiceIfNone<IAssetTagPlanCache, AssetTagPlanCache>();

            SetServiceIfNone<ITransformerPolicyLibrary, TransformerPolicyLibrary>();

            SetServiceIfNone<IContentPlanner, ContentPlanner>();
            SetServiceIfNone<IContentPlanCache, ContentPlanCache>();
            SetServiceIfNone<IContentPipeline, ContentPipeline>();

            SetServiceIfNone<IContentWriter, ContentWriter>();

            SetServiceIfNone<IETagGenerator<IEnumerable<AssetFile>>, AssetFileEtagGenerator>();

            SetServiceIfNone<IAssetContentCache, AssetContentCache>();
            SetServiceIfNone<IAssetFileChangeListener, AssetFileChangeListener>();
            SetServiceIfNone<IAssetFileWatcher, AssetFileWatcher>();

            FillType(typeof (IActivator), typeof (AssetPrecompilerActivator));
            FillType(typeof(IActivator), typeof(AssetGraphConfigurationActivator));
            FillType(typeof(IActivator), typeof(AssetFileGraphBuilderActivator));
            FillType(typeof(IActivator), typeof(AssetDeclarationVerificationActivator));
            FillType(typeof(IActivator), typeof(MimetypeRegistrationActivator));
            FillType(typeof(IActivator), typeof(AssetCombinationBuildingActivator));
            FillType(typeof(IActivator), typeof(AssetPolicyActivator));
            FillType(typeof(IActivator), typeof(AssetFileWatchingActivator));

            SetServiceIfNone<IAssetUrls, AssetUrls>();

            SetServiceIfNone<ICombinationPolicyCache, CombinationPolicyCache>();

        }
        public void SetUp()
        {
            system = new FileSystem();
            system.DeleteDirectory(AppDirectory);
            system.DeleteDirectory(PackageDirectory);

            writeFiles();


            _theFileGraph = new AssetFileGraph();
            theBuilder = new AssetFileGraphBuilder(new FileSystem(), _theFileGraph, new PackageLog());
            theBuilder.LoadFiles(new PackageAssetDirectory(){
                Directory = AppDirectory,
                PackageName = AssetFileGraph.Application
            });

            theBuilder.LoadFiles(new PackageAssetDirectory(){
                Directory = PackageDirectory,
                PackageName = "pak1"
            });
        }
        public void SetUp()
        {
            packageDirectory = ".".ToFullPath();
            _packages = new List<IPackageInfo>();

            AssetFolderIs = AssetFolder.scripts;
            writeFile("a.js");
            writeFile("b.js");
            writeFile("folder1/c.js");
            writeFile("folder2/d.js");

            AssetFolderIs = AssetFolder.styles;
            writeFile("main.css");
            writeFile("page.css");
            writeFile("folder1/a.css");

            startPackage("pak1");
            AssetFolderIs = AssetFolder.scripts;
            writeFile("e.js");
            writeFile("f.js");

            startPackage("pak2");
            AssetFolderIs = AssetFolder.styles;
            writeFile("a.css");
            writeFile("b.css");
            writeFile("c.css");

            startPackage("pak3");
            AssetFolderIs = AssetFolder.scripts;
            writeFile("a.js");

            _theFileGraph = new AssetFileGraph();
            var activator = new AssetFileGraphBuilderActivator(_theFileGraph,new AssetLogsCache());
            theLog = new PackageLog();
            activator.Activate(_packages, theLog);

            Debug.WriteLine(theLog.FullTraceText());
        }
 public void SetUp()
 {
     thePipeline = new AssetFileGraph();
     theFiles = new AssetFileDataMother(thePipeline.AddFile);
 }
 public void SetUp()
 {
     _theFileGraph = new AssetFileGraph();
     theFiles = new AssetFileDataMother(_theFileGraph.AddFile);
 }