Ejemplo n.º 1
0
 public ScriptBundleManifest_Tests()
 {
     manifest = new ScriptBundleManifest
     {
         Path = "~",
         Hash = new byte[] { 1, 2, 3 },
         ContentType = "CONTENT-TYPE",
         PageLocation = "PAGE-LOCATION",
         Assets =
             {
                 new AssetManifest { Path = "~/asset-a" },
                 new AssetManifest { Path = "~/asset-b" }
             },
         Content = Encoding.UTF8.GetBytes(BundleContent)
     };
     createdBundle = (ScriptBundle)manifest.CreateBundle();
 }
 public ScriptBundleManifest_Tests()
 {
     settings = new CassetteSettings("");
     manifest = new ScriptBundleManifest
     {
         Path = "~",
         Hash = new byte[] { 1, 2, 3 },
         ContentType = "CONTENT-TYPE",
         PageLocation = "PAGE-LOCATION",
         Assets =
             {
                 new AssetManifest { Path = "~/asset-a" },
                 new AssetManifest { Path = "~/asset-b" }
             },
         Content = Encoding.UTF8.GetBytes(BundleContent),
         Html = () => "EXPECTED-HTML"
     };
     createdBundle = (ScriptBundle)manifest.CreateBundle(settings);
 }
Ejemplo n.º 3
0
 public ScriptBundleManifest_Tests()
 {
     settings = new CassetteSettings("");
     manifest = new ScriptBundleManifest
     {
         Path         = "~",
         Hash         = new byte[] { 1, 2, 3 },
         ContentType  = "CONTENT-TYPE",
         PageLocation = "PAGE-LOCATION",
         Assets       =
         {
             new AssetManifest {
                 Path = "~/asset-a"
             },
             new AssetManifest {
                 Path = "~/asset-b"
             }
         },
         Content = Encoding.UTF8.GetBytes(BundleContent),
         Html    = () => "EXPECTED-HTML"
     };
     createdBundle = (ScriptBundle)manifest.CreateBundle(settings);
 }