private JavaScriptPackage CreatePackage(IList<IAsset> assets, string templateExtension, IJavaScriptProcessor processor = null)
 {
     return new JavaScriptPackage(
         Guid.NewGuid().ToString(),
         assets,
         new Mock<IJavaScriptProcessor>().Object,
         new Mock<IDebugState>().Object,
         new TemplateConfiguration() { Extension = templateExtension }
     );
 }
        internal PackageContainer()
        {
            this.routePrefix = "assets";
            this.appPath = HttpRuntime.AppDomainAppPath;

            this.templateConfig = new TemplateConfiguration(
                tmplNamespace: "JST",
                tmplFunction: "_.template",
                tmplExtension: "jst");

            this.debugState = new DebugState();
            this.versionGenerator = new HashedVersionGenerator();
            this.javascriptProcessor = new YuiJavaScriptProcessor();
            this.stylesheetProcessor = new DotLessStyleSheetProcessor(this.appPath, this.debugState);

            this.resolver = new AssetResolver(new FileSystemWrapper());
        }
 public IPackageContainer JavaScriptProcessor(IJavaScriptProcessor processor)
 {
     Contract.Requires(processor != null);
     this.javascriptProcessor = processor;
     return this;
 }
 public JavaScriptPackage(string name, IList<IAsset> assets, IJavaScriptProcessor processor, IDebugState debugState, TemplateConfiguration configuration)
     : base(name, assets, processor, debugState)
 {
     this.InitializeTemplateAssets(configuration);
 }