public BuildDistinctPart ( |
||
sqlStatement | ||
commandBuilder | ISqlCommandBuilder | |
return | void |
public void BuildDistinctPart() { var sqlStatement = SqlStatementModelObjectMother.CreateMinimalSqlStatement(new SqlStatementBuilder { IsDistinctQuery = true }); _generator.BuildDistinctPart(sqlStatement, _commandBuilder); Assert.That(_commandBuilder.GetCommandText(), Is.EqualTo("DISTINCT ")); _stageMock.VerifyAllExpectations(); }
public void BuildDistinctPart() { var sqlStatement = new SqlStatement( new TestStreamedValueInfo(typeof(int)), _entityExpression, new[] { _sqlTable }, null, null, new Ordering[] { }, null, true, null, null); _generator.BuildDistinctPart(sqlStatement, _commandBuilder); Assert.That(_commandBuilder.GetCommandText(), Is.EqualTo("DISTINCT ")); _stageMock.VerifyAllExpectations(); }