public void SetUp() { _mockRepository = new MockRepository(); _visitorMock = _mockRepository.StrictMock <TestQueryModelVisitor>(); _bodyClauseMock1 = _mockRepository.StrictMock <IBodyClause>(); _bodyClauseMock2 = _mockRepository.StrictMock <IBodyClause>(); _ordering1 = new Ordering(ExpressionHelper.CreateExpression(), OrderingDirection.Asc); _ordering2 = new Ordering(ExpressionHelper.CreateExpression(), OrderingDirection.Asc); _resultOperator1 = new TestResultOperator(); _resultOperator2 = new TestResultOperator(); _queryModel = ExpressionHelper.CreateQueryModel <Cook>(); _orderByClause = ExpressionHelper.CreateOrderByClause(); _groupJoinClause = ExpressionHelper.CreateGroupJoinClause <Cook>(); }
public void SetUp() { _mockRepository = new MockRepository(); _visitorMock = _mockRepository.StrictMock <QueryModelVisitorBase>(); _testVisitor = new TestQueryModelVisitor(); _bodyClauseMock1 = _mockRepository.StrictMock <WhereClause> (ExpressionHelper.CreateExpression()); _bodyClauseMock2 = _mockRepository.StrictMock <WhereClause> (ExpressionHelper.CreateExpression()); _orderingMock1 = _mockRepository.StrictMock <Ordering> (ExpressionHelper.CreateExpression(), OrderingDirection.Asc); _orderingMock2 = _mockRepository.StrictMock <Ordering> (ExpressionHelper.CreateExpression(), OrderingDirection.Asc); _resultOperatorMock1 = _mockRepository.StrictMock <ResultOperatorBase> (); _resultOperatorMock2 = _mockRepository.StrictMock <ResultOperatorBase> (); _queryModel = ExpressionHelper.CreateQueryModel <Cook> (); _orderByClause = ExpressionHelper.CreateOrderByClause(); _groupJoinClause = ExpressionHelper.CreateGroupJoinClause <Cook> (); }