GenerateTextForSqlStatement() public method

public GenerateTextForSqlStatement ( ISqlCommandBuilder commandBuilder, SqlStatement sqlStatement ) : void
commandBuilder ISqlCommandBuilder
sqlStatement Remotion.Linq.SqlBackend.SqlStatementModel.SqlStatement
return void
    public void GenerateTextForSqlStatement ()
    {
      var sqlStatement = SqlStatementModelObjectMother.CreateSqlStatement (
          _entityExpression, new[] { new SqlTable (new ResolvedSimpleTableInfo (typeof (int), "Table", "t"), JoinSemantics.Inner) });

      var stage = new DefaultSqlGenerationStage();

      stage.GenerateTextForSqlStatement (_commandBuilder, sqlStatement);

      Assert.That (_commandBuilder.GetCommandText(), Is.EqualTo ("SELECT [t].[ID],[t].[Name],[t].[City] FROM [Table] AS [t]"));
    }