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

            WriteToElement();
        }
Пример #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);
 }
Пример #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();
 }
Пример #7
0
        void ReadManifestFromElement()
        {
            var reader = new ExternalScriptBundleManifestReader(element);

            readManifest = reader.Read();
        }