protected SpecificationRunnerBase(
     IExpressionRunner runner,
     ISpecificationFinder finder,
     IConsoleFormatter formatter)
 {
     this.runner = runner;
     this.finder = finder;
     this.formatter = formatter;
 }
 protected SpecificationRunnerBase(
     IExpressionRunner runner,
     ISpecificationFinder finder,
     IConsoleFormatter formatter)
 {
     this.runner    = runner;
     this.finder    = finder;
     this.formatter = formatter;
 }
 public ISpecificationRunner CreateSpecificationRunner(bool parrallel, 
                                                       IExpressionRunner runner, 
                                                       ISpecificationFinder finder, 
                                                       IConsoleFormatter formatter)
 {
     if (parrallel) {
         return new ParallelSpecificationRunner(runner, finder, formatter);
     }
     
     return new DefaultSpecificationRunner(runner, finder, formatter);
 }
        public ISpecificationRunner CreateSpecificationRunner(bool parrallel,
                                                              IExpressionRunner runner,
                                                              ISpecificationFinder finder,
                                                              IConsoleFormatter formatter)
        {
            if (parrallel)
            {
                return(new ParallelSpecificationRunner(runner, finder, formatter));
            }

            return(new DefaultSpecificationRunner(runner, finder, formatter));
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="metadataProvider">The calculated field metadata provider.</param>
        /// <param name="expressionRunner">Runner that gets used by the field evaluator that will be generated with the metadata.</param>
        /// <param name="entityRepository">Source of entity data, both for the calculated field metadata, and also passed into the evaluator for actual data.</param>
        public CalculatedFieldProvider(ICalculatedFieldMetadataProvider metadataProvider, IExpressionRunner expressionRunner, IEntityRepository entityRepository)
        {
            if (metadataProvider == null)
            {
                throw new ArgumentNullException("metadataProvider");
            }
            if (expressionRunner == null)
            {
                throw new ArgumentNullException("expressionRunner");
            }
            if (entityRepository == null)
            {
                throw new ArgumentNullException("entityRepository");
            }

            _metadataProvider = metadataProvider;
            _expressionRunner = expressionRunner;
            _entityRepository = entityRepository;
        }
Ejemplo n.º 6
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="entityRepository">Entity repository.</param>
        /// <param name="expressionCompiler">The expression compiler.</param>
        /// <param name="scriptNameResolver">Script name resolver.</param>
        /// <param name="expressionRunner">Expression runner.</param>
        /// <exception cref="System.ArgumentNullException">
        /// entityRepository
        /// or
        /// expressionCompiler
        /// or
        /// expressionRunner
        /// or
        /// scriptNameResolver
        /// </exception>
        public ExternalServices(IEntityRepository entityRepository, IExpressionParseTreeCompiler expressionCompiler, IScriptNameResolver scriptNameResolver, IExpressionRunner expressionRunner)
        {
            if (entityRepository == null)
            {
                throw new ArgumentNullException("entityRepository");
            }
            if (expressionCompiler == null)
            {
                throw new ArgumentNullException("expressionCompiler");
            }
            if (expressionRunner == null)
            {
                throw new ArgumentNullException("expressionRunner");
            }
            if (scriptNameResolver == null)
            {
                throw new ArgumentNullException("scriptNameResolver");
            }

            EntityRepository   = entityRepository;
            ExpressionCompiler = expressionCompiler;
            ExpressionRunner   = expressionRunner;
            ScriptNameResolver = scriptNameResolver;
        }
Ejemplo n.º 7
0
        public void ExpressionRunner_Instance( )
        {
            IExpressionRunner instance = Factory.ExpressionRunner;

            Assert.That(instance, Is.Not.Null);
        }
 public ParallelSpecificationRunner(IExpressionRunner runner, 
                                    ISpecificationFinder finder, 
                                    IConsoleFormatter formatter) : base(runner, finder, formatter)
 {
 }
 public ParallelSpecificationRunner(IExpressionRunner runner,
                                    ISpecificationFinder finder,
                                    IConsoleFormatter formatter) : base(runner, finder, formatter)
 {
 }