public void SetUp()
 {
     _thePipeline = new AssetPipeline();
     _theFile     = new AssetFile("a.js");
     _thePath     = new AssetPath("pak1", "a.js", AssetFolder.scripts);
     _thePipeline.AddFile(_thePath, _theFile);
 }
        public void adding_a_file_by_path_sets_the_folder_on_the_file()
        {
            // This is important for later
            var theFile = new AssetFile("a.js");

            var thePath = new AssetPath("pak1", "a.js", AssetFolder.styles);

            thePipeline.AddFile(thePath, theFile);

            theFile.Folder.ShouldEqual(thePath.Folder.Value);
        }
        public ContentPlan BuildPlan()
        {
            var library      = new TransformerPolicyLibrary(_policies);
            var combinations = new AssetCombinationCache();

            if (_combination != null)
            {
                combinations.StoreCombination(_combination.MimeType, _combination);
            }

            var pipeline = new AssetPipeline();

            _files.Each(f =>
            {
                var path = new AssetPath(AssetPipeline.Application, f.Name, f.Folder);
                pipeline.AddFile(path, f);
            });

            var planner = new ContentPlanner(combinations, pipeline, library);

            return(planner.BuildPlanFor(_name));
        }