public ExternalScriptBundleManifestWriter_Tests()
        {
            manifest = new ExternalScriptBundleManifest
            {
                Path = "~",
                Hash = new byte[0],
                Url = "http://example.com/",
                FallbackCondition = "condition"
            };

            WriteToElement();
        }
Exemplo n.º 2
0
        public ExternalScriptBundleManifestWriter_Tests()
        {
            manifest = new ExternalScriptBundleManifest
            {
                Path = "~",
                Hash = new byte[0],
                Url  = "http://example.com/",
                FallbackCondition = "condition"
            };

            WriteToElement();
        }
 public ExternalScriptBundleManifest_Tests()
 {
     manifest = new ExternalScriptBundleManifest
     {
         Path = "~",
         Hash = new byte[0],
         Url = "http://example.com/",
         Assets =
             {
                 new AssetManifest { Path = "~/asset-a" },
                 new AssetManifest { Path = "~/asset-b" }
             }
     };
     createdBundle = (ExternalScriptBundle)manifest.CreateBundle();
 }
 public ExternalScriptBundleManifest_Tests()
 {
     settings = new CassetteSettings("");
     manifest = new ExternalScriptBundleManifest
     {
         Path = "~",
         Hash = new byte[0],
         Url = "http://example.com/",
         Html = () => "EXPECTED-HTML",
         Assets =
             {
                 new AssetManifest { Path = "~/asset-a" },
                 new AssetManifest { Path = "~/asset-b" }
             }
     };
     createdBundle = (ExternalScriptBundle)manifest.CreateBundle(settings);
 }
Exemplo n.º 5
0
 public ExternalScriptBundleManifest_Tests()
 {
     settings = new CassetteSettings("");
     manifest = new ExternalScriptBundleManifest
     {
         Path   = "~",
         Hash   = new byte[0],
         Url    = "http://example.com/",
         Html   = () => "EXPECTED-HTML",
         Assets =
         {
             new AssetManifest {
                 Path = "~/asset-a"
             },
             new AssetManifest {
                 Path = "~/asset-b"
             }
         }
     };
     createdBundle = (ExternalScriptBundle)manifest.CreateBundle(settings);
 }
 void ReadManifestFromElement()
 {
     var reader = new ExternalScriptBundleManifestReader(element);
     readManifest = reader.Read();
 }
Exemplo n.º 7
0
        void ReadManifestFromElement()
        {
            var reader = new ExternalScriptBundleManifestReader(element);

            readManifest = reader.Read();
        }