예제 #1
0
        /// <summary>
        /// Inits Event Store
        /// </summary>
        public Exercise03CreateAppendEventFunction()
        {
            databaseConnection = PostgresDbConnectionProvider.GetFreshDbConnection();
            schemaProvider     = new PostgresSchemaProvider(databaseConnection);

            // Create Event Store
            eventStore = new EventStore(databaseConnection);

            // Initialize Event Store
            eventStore.Init();
        }
        /// <summary>
        /// Inits Event Store
        /// </summary>
        public Exercise01CreateStreamsTable()
        {
            databaseConnection = PostgresDbConnectionProvider.GetFreshDbConnection();
            schemaProvider     = new PostgresSchemaProvider(databaseConnection);

            // Create Event Store
            var eventStore = new EventStore(databaseConnection);

            // Initialize Event Store
            eventStore.Init();
        }
        /// <summary>
        /// Inits Event Store
        /// </summary>
        public Exercise03OptimisticConcurrency()
        {
            databaseConnection = PostgresDbConnectionProvider.GetFreshDbConnection();
            schemaProvider     = new PostgresSchemaProvider(databaseConnection);

            // Create Event Store
            eventStore = new EventStore(databaseConnection);

            // Initialize Event Store
            eventStore.Init();
        }