public HtmlTemplatePipeline_Tests() { bundle = new HtmlTemplateBundle("~"); var container = new TinyIoCContainer(); container.Register <IHtmlTemplateIdStrategy>(new HtmlTemplateIdBuilder()); pipeline = new HtmlTemplatePipeline(container); }
public void WhenProcess_ThenItAssignsInlineHtmlTemplateBundleRenderer() { var bundle = new HtmlTemplateBundle("~"); var pipeline = new HtmlTemplatePipeline(); pipeline.Process(bundle, new CassetteSettings("")); bundle.Renderer.ShouldBeType <InlineHtmlTemplateBundleRenderer>(); }
public void WhenProcessBundle_ThenHashIsAssigned() { var pipeline = new HtmlTemplatePipeline(); var bundle = new HtmlTemplateBundle("~"); pipeline.Process(bundle, new CassetteSettings("")); bundle.Hash.ShouldNotBeNull(); }
public void CreateBundleAssignsSettingsDefaultProcessor() { var processor = new HtmlTemplatePipeline(); settings.SetDefaultBundleProcessor(processor); var bundle = factory.CreateBundle("~", Enumerable.Empty <IFile>(), new BundleDescriptor { AssetFilenames = { "*" } }); bundle.Processor.ShouldBeSameAs(processor); }
public HtmlTemplateBundle(string applicationRelativePath) : base(applicationRelativePath) { ContentType = "text/html"; Processor = new HtmlTemplatePipeline(); }
public HtmlTemplatePipeline_Tests() { bundle = new HtmlTemplateBundle("~"); pipeline = new HtmlTemplatePipeline(new TinyIoCContainer()); }