public void CreateTableCount_WithSpecifiedColumn_ShouldReturnExpectedString() { var column = new ColumnValue(BookVersionEntityInfo, BookVersion.IdColumnName); var select = Aggregable.CreateTableCount(column); Assert.AreEqual("SELECT COUNT(*) AS count, [BookVersion].[id] AS BookVersionid", select.SelectStatement()); }
public void CreateTableCount_ShouldReturnExpectedSqlString() { var select = Aggregable.CreateTableCount(); Assert.AreEqual("SELECT COUNT(*) AS count", select.SelectStatement()); }