public void recorded_command_should_include_executable_version_of_sql_logged_by_nhibernate()
 {
     var command = Recording.Commands.Single();
     string executableSql = new SqlCommandProcessor().CreateExecutableSql(command.LoggedSql);
     Assert.AreEqual(executableSql, command.ExecutableSql);
 }
 public string when_creating_executable_sql_from_log_message(string original)
 {
     string sql = new SqlCommandProcessor().CreateExecutableSql(original);
     return sql;
 }
Example #3
0
 internal Executer(CommandType commandType, bool suppressConnectionDispose, SqlCommandProcessor <T> processor)
 {
     this.commandType = commandType;
     this.processor   = processor;
     this.suppressConnectionDispose = suppressConnectionDispose;
 }