public static IHtmlString Render(string bundleName) { var orchestrator = new BundleResolver(); var scripts = orchestrator.BuildScripts(bundleName); return new HtmlString(scripts); }
public void BuildScriptsShouldGetDebugScripts() { var manager = new Mock<IAppManager>(); var markupBuilder = new Mock<IMarkupBuilder>(); manager.Setup(x => x.IsDebugging).Returns(true); var resolver = new BundleResolver(manager.Object, markupBuilder.Object); resolver.BuildScripts(""); markupBuilder.Verify(x => x.GetScriptsForDebugging(""), Times.Once); }