public ExternalScriptBundleDeserializer_Tests() { element = new XElement( "ExternalScriptBundle", new XAttribute("Path", "~"), new XAttribute("Hash", "010203"), new XAttribute("Url", "http://example.com/"), new XAttribute("FallbackCondition", "CONDITION") ); directory = new FakeFileSystem { { "~/script/010203.js", "content" } }; var urlModifier = new VirtualDirectoryPrepender("/"); reader = new ExternalScriptBundleDeserializer(urlModifier); DeserializeToBundle(); }
public ExternalScriptBundleDeserializer_Tests() { element = new XElement( "ExternalScriptBundle", new XAttribute("Path", "~"), new XAttribute("Hash", "010203"), new XAttribute("Url", "http://example.com/"), new XAttribute("FallbackCondition", "CONDITION"), new XAttribute("Renderer", typeof(ExternalScriptBundle.ExternalScriptBundleRenderer).AssemblyQualifiedName), new XAttribute("FallbackRenderer", typeof(ScriptBundleHtmlRenderer).AssemblyQualifiedName) ); directory = new FakeFileSystem { { "~/script/010203.js", "content" } }; var container = new TinyIoCContainer(); container.Register(Mock.Of <IUrlGenerator>()); reader = new ExternalScriptBundleDeserializer(container); DeserializeToBundle(); }