public EmitDataReaderDeserializer_Test()
 {
     _deserializerFactory = new EmitDataReaderDeserializerFactory();
     _smartSqlOptions     = new SmartSqlOptions {
         DataReaderDeserializerFactory = _deserializerFactory
     };
     _smartSqlOptions.Setup();
     _sessionStore    = _smartSqlOptions.DbSessionStore;
     _commandExecuter = new CommandExecuter(LoggerFactory.CreateLogger <CommandExecuter>(), _smartSqlOptions.PreparedCommand);
 }
        public DapperDataReaderDeserializerFactory_Test()
        {
            _deserializerFactory = new DapperDataReaderDeserializerFactory();

            _sessionStore = new DbConnectionSessionStore(LoggerFactory, DbProviderFactory);
            var _configLoader = new LocalFileConfigLoader(SqlMapConfigFilePath, LoggerFactory);
            var config        = _configLoader.Load();

            _smartSqlContext = new SmartSqlContext(LoggerFactory.CreateLogger <SmartSqlContext>(), config);
            _sqlBuilder      = new SqlBuilder(LoggerFactory.CreateLogger <SqlBuilder>(), _smartSqlContext, _configLoader);
            var _preparedCommand = new PreparedCommand(LoggerFactory.CreateLogger <PreparedCommand>(), _smartSqlContext);

            _commandExecuter = new CommandExecuter(LoggerFactory.CreateLogger <CommandExecuter>(), _preparedCommand);
        }