Esempio n. 1
0
        /// <summary>
        /// Constructs the renderer with required dependencies
        /// </summary>
        /// <param name="functionRepository">The function repository</param>
        /// <param name="collectionRenderer">The block collection renderer</param>
        public ForEachLoopRenderer
        (
            IFunctionRepository functionRepository,
            BlockCollectionRenderer collectionRenderer
        )

            : base(functionRepository)
        {
            Validate.IsNotNull(collectionRenderer);

            _collectionRenderer = collectionRenderer;
        }
Esempio n. 2
0
        /// <summary>
        /// Constructs the renderer with required dependencies
        /// </summary>
        /// <param name="functionRepository">The function repository</param>
        /// <param name="templateRepository">The template repository</param>
        /// <param name="collectionRenderer">The block collection renderer</param>
        public PartialRenderer
        (
            IFunctionRepository functionRepository,
            IRegisteredTemplateRepository templateRepository,
            BlockCollectionRenderer collectionRenderer
        )

            : base(functionRepository)
        {
            Validate.IsNotNull(templateRepository);
            Validate.IsNotNull(collectionRenderer);

            _templateRepository = templateRepository;
            _collectionRenderer = collectionRenderer;
        }
Esempio n. 3
0
        /// <summary>
        /// Constructs the renderer with required dependencies
        /// </summary>
        /// <param name="functionRepository">The function repository</param>
        /// <param name="expressionEvaluator">The expression evaluator</param>
        /// <param name="collectionRenderer">The block collection renderer</param>
        public WhileLoopRenderer
        (
            IFunctionRepository functionRepository,
            BooleanExpressionEvaluator expressionEvaluator,
            BlockCollectionRenderer collectionRenderer
        )

            : base(functionRepository)
        {
            Validate.IsNotNull(expressionEvaluator);
            Validate.IsNotNull(collectionRenderer);

            _expressionEvaluator = expressionEvaluator;
            _collectionRenderer  = collectionRenderer;
        }
Esempio n. 4
0
        /// <summary>
        /// Constructs the renderer with required dependencies
        /// </summary>
        /// <param name="functionRepository">The function repository</param>
        /// <param name="templateRepository">The template repository</param>
        public TemplateRenderer
        (
            IFunctionRepository functionRepository,
            IRegisteredTemplateRepository templateRepository
        )

            : base(functionRepository)
        {
            Validate.IsNotNull(templateRepository);

            _collectionRenderer = new BlockCollectionRenderer
                                  (
                functionRepository,
                templateRepository
                                  );
        }