Esempio n. 1
0
        public PostgresStreamStoreDb(string schema, string connectionString)
        {
            _schema = schema;

            _databaseManager = new PostgresDockerDatabaseManager(
                new ConsoleTestoutputHelper(),
                $"test_{Guid.NewGuid():n}");
        }
        public PostgresStreamStoreDb(string schema, ITestOutputHelper testOutputHelper)
        {
            _schema = schema;

            _databaseManager = new PostgresDockerDatabaseManager(
                testOutputHelper,
                $"test_{Guid.NewGuid():n}");
        }
Esempio n. 3
0
 private PostgresStreamStoreFixture(
     string schema,
     ITestOutputHelper testOutputHelper,
     bool createSchema)
 {
     _schema          = schema;
     _createSchema    = createSchema;
     _databaseManager = new PostgresDockerDatabaseManager(
         testOutputHelper,
         $"test_{Guid.NewGuid():n}");
 }
Esempio n. 4
0
 private PostgresStreamStoreFixture(
     string schema,
     ITestOutputHelper testOutputHelper,
     bool createSchema)
 {
     _schema          = schema;
     _createSchema    = createSchema;
     _databaseManager = new PostgresDockerDatabaseManager(
         testOutputHelper,
         $"test_{Guid.NewGuid():n}");
     _settings = new PostgresStreamStoreSettings(ConnectionString)
     {
         Schema    = _schema,
         GetUtcNow = () => GetUtcNow(),
         ScavengeAsynchronously = false
     };
 }
        public PostgresStreamStoreDb(string schema, string connectionString)
        {
            _schema = schema;

            _databaseManager = new PostgresContainer($"test_{Guid.NewGuid():n}");
        }