public void SetUp () { _dataInfo = new StreamedScalarValueInfo (typeof (int)); _resolvedElementExpressionReference = new SqlColumnDefinitionExpression (typeof (string), "q0", "element", false); _resolvedSelectProjection = new NamedExpression ( null, new AggregationExpression (typeof (int), _resolvedElementExpressionReference, AggregationModifier.Min)); _associatedGroupingSelectExpression = new SqlGroupingSelectExpression ( new NamedExpression ("key", Expression.Constant ("k")), new NamedExpression ("element", Expression.Constant ("e"))); _resolvedJoinedGroupingSubStatement = SqlStatementModelObjectMother.CreateSqlStatement (_associatedGroupingSelectExpression); _resolvedJoinedGroupingTable = new SqlTable ( new ResolvedJoinedGroupingTableInfo ( "q1", _resolvedJoinedGroupingSubStatement, _associatedGroupingSelectExpression, "q0"), JoinSemantics.Inner); _simplifiableResolvedSqlStatement = new SqlStatement ( _dataInfo, _resolvedSelectProjection, new[] { _resolvedJoinedGroupingTable }, null, null, new Ordering[0], null, false, Expression.Constant (0), Expression.Constant (0)); _simplifiableUnresolvedProjection = new AggregationExpression ( typeof (int), new SqlTableReferenceExpression (_resolvedJoinedGroupingTable), AggregationModifier.Count); _stageMock = MockRepository.GenerateStrictMock<IMappingResolutionStage> (); _context = new MappingResolutionContext(); _groupAggregateSimplifier = new GroupAggregateSimplifier (_stageMock, _context); }
public void SetUp() { _dataInfo = new StreamedScalarValueInfo(typeof(int)); _resolvedElementExpressionReference = new SqlColumnDefinitionExpression(typeof(string), "q0", "element", false); _resolvedSelectProjection = new NamedExpression( null, new AggregationExpression(typeof(int), _resolvedElementExpressionReference, AggregationModifier.Min)); _associatedGroupingSelectExpression = new SqlGroupingSelectExpression( new NamedExpression("key", Expression.Constant("k")), new NamedExpression("element", Expression.Constant("e"))); _resolvedJoinedGroupingSubStatement = SqlStatementModelObjectMother.CreateSqlStatement(_associatedGroupingSelectExpression); _resolvedJoinedGroupingTable = new SqlTable( new ResolvedJoinedGroupingTableInfo( "q1", _resolvedJoinedGroupingSubStatement, _associatedGroupingSelectExpression, "q0"), JoinSemantics.Inner); _simplifiableResolvedSqlStatement = new SqlStatement( _dataInfo, _resolvedSelectProjection, new[] { _resolvedJoinedGroupingTable }, null, null, new Ordering[0], null, false, Expression.Constant(0), Expression.Constant(0)); _simplifiableUnresolvedProjection = new AggregationExpression( typeof(int), new SqlTableReferenceExpression(_resolvedJoinedGroupingTable), AggregationModifier.Count); _stageMock = MockRepository.GenerateStrictMock <IMappingResolutionStage> (); _context = new MappingResolutionContext(); _groupAggregateSimplifier = new GroupAggregateSimplifier(_stageMock, _context); }
public void GetOutputDataInfo_InvalidInputType() { var input = new StreamedScalarValueInfo(typeof(int)); _resultOperator.GetOutputDataInfo(input); }
public void GetOutputDataInfo_InvalidInputType () { var input = new StreamedScalarValueInfo (typeof (int)); _resultOperator.GetOutputDataInfo (input); }
public void GetOutputDataInfo_InvalidInput () { var input = new StreamedScalarValueInfo (typeof (Cook)); _resultOperatorWithResultSelector.GetOutputDataInfo (input); }
public void GetOutputDataInfo_InvalidInput () { var input = new StreamedScalarValueInfo (typeof (Cook)); _resultOperatorNoDefaultWhenEmpty.GetOutputDataInfo (input); }
public void SetUp() { _streamedScalarValueInfo = new StreamedScalarValueInfo(typeof(int)); }
public void GetOutputDataInfo_InvalidInput() { var input = new StreamedScalarValueInfo(typeof(Cook)); _resultOperatorWithResultSelector.GetOutputDataInfo(input); }
public void SetUp () { _streamedScalarValueInfo = new StreamedScalarValueInfo (typeof (int)); }
public void GetOutputDataInfo_InvalidInput() { var input = new StreamedScalarValueInfo(typeof(Cook)); _resultOperatorNoDefaultWhenEmpty.GetOutputDataInfo(input); }