public void TestOffsetLimitClauseAccept() { Mock <KoraliumSqlVisitor> mock = new Mock <KoraliumSqlVisitor>(); OffsetLimitClause offsetLimitClause = new OffsetLimitClause(); offsetLimitClause.Accept(mock.Object); mock.Verify(x => x.VisitOffsetLimitClause(offsetLimitClause)); }
public static OffsetStage GetOffsetStage(IQueryStage previousStage, OffsetLimitClause offsetClause, VisitorMetadata visitorMetadata) { OffsetVisitor offsetVisitor = new OffsetVisitor(visitorMetadata); offsetClause.Accept(offsetVisitor); return(new OffsetStage( previousStage.TypeInfo, previousStage.ParameterExpression, previousStage.CurrentType, previousStage.FromAliases, offsetVisitor.OffsetCount, offsetVisitor.TakeCount )); }