public RenderingService(IContentRepository contentRepository, IWidgetSpecificationRepository widgetSpecificationRepository, IComponentSpecificationLibrary componentLibrary, IPluginContextProvider pluginContextProvider) { this.contentRepository = contentRepository; this.widgetSpecificationRepository = widgetSpecificationRepository; this.componentLibrary = componentLibrary; this.pluginContextProvider = pluginContextProvider; }
public void ApplyAmendments(IComponentSpecificationLibrary componentLibrary, bool reset = false) { var visitor = new AmendmentApplyingVisitor(this, componentLibrary); foreach (var amendment in this.amendments) { amendment.Accept(visitor); } if (reset) { this.amendments.Clear(); } }
public void SetUpBase() { this.ComponentLibrary = MockRepository.GenerateMock <IComponentSpecificationLibrary>(); var bootstrapper = new ConfigurableBootstrapper( with => { with.Dependency(this.ComponentLibrary); with.Dependency <ComponentSpecificationsResourceBuilder>(); with.ResponseProcessor <ComponentSpecificationsJsonResultProcessor>(); with.Dependency <ComponentSpecificationService>(); with.Module <ComponentTypeModule>(); }); this.Browser = new Browser(bootstrapper); }
public ComponentSpecificationService(IComponentSpecificationLibrary componentLibrary) { this.componentLibrary = componentLibrary; }
public AmendmentApplyingVisitor(IComponentCollection componentCollection, IComponentSpecificationLibrary specificationLibrary) { this.componentCollection = componentCollection; this.specificationLibrary = specificationLibrary; }
public Builder(IRenderingInstructions renderingInstructions, Func <string, WidgetSpecification> widgetSpecificationFinder, IComponentSpecificationLibrary componentLibrary) { this.renderingInstructions = renderingInstructions; this.widgetSpecificationFinder = widgetSpecificationFinder; this.componentLibrary = componentLibrary; }
public WidgetSpecificationService(IWidgetSpecificationRepository widgetSpecificationRepository, IComponentSpecificationLibrary componentLibrary) { this.widgetSpecificationRepository = widgetSpecificationRepository; this.componentLibrary = componentLibrary; }
public ComponentRefreshingVisitor(IComponentSpecificationLibrary componentLibrary) { this.componentLibrary = componentLibrary; }
public TemplateService(IContentRepository contentRepository, IComponentSpecificationLibrary componentLibrary, IPathInstanceBuilder pathInstanceBuilder) { this.contentRepository = contentRepository; this.componentLibrary = componentLibrary; this.pathInstanceBuilder = pathInstanceBuilder; }
public Builder(IRenderingInstructions renderingInstructions, Func<string, WidgetSpecification> widgetSpecificationFinder, IComponentSpecificationLibrary componentLibrary) { this.renderingInstructions = renderingInstructions; this.widgetSpecificationFinder = widgetSpecificationFinder; this.componentLibrary = componentLibrary; }