Ejemplo n.º 1
0
 public void SetUp()
 {
     _generator           = new UniqueIdentifierGenerator();
     _stage               = new DefaultSqlPreparationStage(CompoundMethodCallTransformerProvider.CreateDefault(), ResultOperatorHandlerRegistry.CreateDefault(), _generator);
     _handler             = new TestableAggregationResultOperatorHandler();
     _sqlStatementBuilder = new SqlStatementBuilder(SqlStatementModelObjectMother.CreateSqlStatement())
     {
         DataInfo         = new StreamedSequenceInfo(typeof(int[]), Expression.Constant(5)),
         SelectProjection = new NamedExpression(null, Expression.Constant(0))
     };
     _context = SqlStatementModelObjectMother.CreateSqlPreparationContext();
 }
        public override void SetUp()
        {
            base.SetUp();

            _stage               = CreateDefaultSqlPreparationStage();
            _handler             = new TestableAggregationResultOperatorHandler();
            _sqlStatementBuilder = new SqlStatementBuilder(SqlStatementModelObjectMother.CreateSqlStatement())
            {
                DataInfo         = new StreamedSequenceInfo(typeof(int[]), Expression.Constant(5)),
                SelectProjection = new NamedExpression(null, Expression.Constant(0))
            };
            _context = SqlStatementModelObjectMother.CreateSqlPreparationContext();
        }