Beispiel #1
0
 public PreparedCommand_Test()
 {
     _smartSqlOptions = new SmartSqlOptions();
     _smartSqlOptions.Setup();
     _sessionStore    = _smartSqlOptions.DbSessionStore;
     _preparedCommand = new PreparedCommand(LoggerFactory.CreateLogger <PreparedCommand>(), _smartSqlOptions.SmartSqlContext);
 }
Beispiel #2
0
 public CommandExecuter_Test()
 {
     _smartSqlOptions = new SmartSqlOptions();
     _smartSqlOptions.Setup();
     _sessionStore    = _smartSqlOptions.DbSessionStore;
     _commandExecuter = new CommandExecuter(LoggerFactory.CreateLogger <CommandExecuter>(), _smartSqlOptions.PreparedCommand);
 }
Beispiel #3
0
 public SqlBuilder_Test()
 {
     _sqlBuilder      = new SqlBuilder(LoggerFactory.CreateLogger <SqlBuilder>());
     _smartSqlOptions = new SmartSqlOptions
     {
         SqlBuilder = _sqlBuilder
     };
     _smartSqlOptions.Setup();
 }
 public EmitDataReaderDeserializer_Test()
 {
     _deserializerFactory = new EmitDataReaderDeserializerFactory();
     _smartSqlOptions     = new SmartSqlOptions {
         DataReaderDeserializerFactory = _deserializerFactory
     };
     _smartSqlOptions.Setup();
     _sessionStore    = _smartSqlOptions.DbSessionStore;
     _commandExecuter = new CommandExecuter(LoggerFactory.CreateLogger <CommandExecuter>(), _smartSqlOptions.PreparedCommand);
 }