public void Accept() { var repository = new MockRepository(); var queryModel = ExpressionHelper.CreateQueryModel <Cook> (); var orderByClause = ExpressionHelper.CreateOrderByClause(); var visitorMock = repository.StrictMock <IQueryModelVisitor>(); visitorMock.VisitOrdering(_ordering, queryModel, orderByClause, 1); repository.ReplayAll(); _ordering.Accept(visitorMock, queryModel, orderByClause, 1); repository.VerifyAll(); }