コード例 #1
0
ファイル: RenderingService.cs プロジェクト: mr-sandy/kola
 public RenderingService(IContentRepository contentRepository, IWidgetSpecificationRepository widgetSpecificationRepository, IComponentSpecificationLibrary componentLibrary, IPluginContextProvider pluginContextProvider)
 {
     this.contentRepository = contentRepository;
     this.widgetSpecificationRepository = widgetSpecificationRepository;
     this.componentLibrary = componentLibrary;
     this.pluginContextProvider = pluginContextProvider;
 }
コード例 #2
0
 public RenderingService(IContentRepository contentRepository, IWidgetSpecificationRepository widgetSpecificationRepository, IComponentSpecificationLibrary componentLibrary, IPluginContextProvider pluginContextProvider)
 {
     this.contentRepository             = contentRepository;
     this.widgetSpecificationRepository = widgetSpecificationRepository;
     this.componentLibrary      = componentLibrary;
     this.pluginContextProvider = pluginContextProvider;
 }
コード例 #3
0
        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();
            }
        }
コード例 #4
0
        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);
        }
コード例 #5
0
 public ComponentSpecificationService(IComponentSpecificationLibrary componentLibrary)
 {
     this.componentLibrary = componentLibrary;
 }
コード例 #6
0
 public AmendmentApplyingVisitor(IComponentCollection componentCollection, IComponentSpecificationLibrary specificationLibrary)
 {
     this.componentCollection  = componentCollection;
     this.specificationLibrary = specificationLibrary;
 }
コード例 #7
0
 public Builder(IRenderingInstructions renderingInstructions, Func <string, WidgetSpecification> widgetSpecificationFinder, IComponentSpecificationLibrary componentLibrary)
 {
     this.renderingInstructions     = renderingInstructions;
     this.widgetSpecificationFinder = widgetSpecificationFinder;
     this.componentLibrary          = componentLibrary;
 }
コード例 #8
0
 public WidgetSpecificationService(IWidgetSpecificationRepository widgetSpecificationRepository, IComponentSpecificationLibrary componentLibrary)
 {
     this.widgetSpecificationRepository = widgetSpecificationRepository;
     this.componentLibrary = componentLibrary;
 }
コード例 #9
0
 public ComponentRefreshingVisitor(IComponentSpecificationLibrary componentLibrary)
 {
     this.componentLibrary = componentLibrary;
 }
コード例 #10
0
 public ComponentSpecificationService(IComponentSpecificationLibrary componentLibrary)
 {
     this.componentLibrary = componentLibrary;
 }
コード例 #11
0
ファイル: TemplateService.cs プロジェクト: mr-sandy/kola
 public TemplateService(IContentRepository contentRepository, IComponentSpecificationLibrary componentLibrary, IPathInstanceBuilder pathInstanceBuilder)
 {
     this.contentRepository = contentRepository;
     this.componentLibrary = componentLibrary;
     this.pathInstanceBuilder = pathInstanceBuilder;
 }
コード例 #12
0
 public WidgetSpecificationService(IWidgetSpecificationRepository widgetSpecificationRepository, IComponentSpecificationLibrary componentLibrary)
 {
     this.widgetSpecificationRepository = widgetSpecificationRepository;
     this.componentLibrary = componentLibrary;
 }
コード例 #13
0
ファイル: TemplateService.cs プロジェクト: mr-sandy/kola
 public TemplateService(IContentRepository contentRepository, IComponentSpecificationLibrary componentLibrary, IPathInstanceBuilder pathInstanceBuilder)
 {
     this.contentRepository   = contentRepository;
     this.componentLibrary    = componentLibrary;
     this.pathInstanceBuilder = pathInstanceBuilder;
 }
コード例 #14
0
 public AmendmentApplyingVisitor(IComponentCollection componentCollection, IComponentSpecificationLibrary specificationLibrary)
 {
     this.componentCollection = componentCollection;
     this.specificationLibrary = specificationLibrary;
 }
コード例 #15
0
 public ComponentRefreshingVisitor(IComponentSpecificationLibrary componentLibrary)
 {
     this.componentLibrary = componentLibrary;
 }
コード例 #16
0
 public Builder(IRenderingInstructions renderingInstructions, Func<string, WidgetSpecification> widgetSpecificationFinder, IComponentSpecificationLibrary componentLibrary)
 {
     this.renderingInstructions = renderingInstructions;
     this.widgetSpecificationFinder = widgetSpecificationFinder;
     this.componentLibrary = componentLibrary;
 }