Ejemplo n.º 1
0
		public Acceptance(PostgresFixture fixture)
			: base(new PostgresEventStore(PostgresFixture.ConnectionString))
		{
			_fixture = fixture;
			var snapshotted = new CreateGuidAggregateTablesCommand(PostgresFixture.ConnectionString);
			snapshotted.Execute(SnapshotStream.StreamName);

			var normal = new CreateGuidAggregateTablesCommand(PostgresFixture.ConnectionString);
			normal.Execute(DefaultStream.StreamName);

			fixture.DropOnDispose(SnapshotStream.StreamName);
			fixture.DropOnDispose(DefaultStream.StreamName);
		}
		public SnapshotSaveLoadTests(PostgresFixture fixture)
		{
			_store = new PostgresEventStore(PostgresFixture.ConnectionString);
			_stamper = new IncrementingStamper();
		}
		public PostgresStoreReaderTests(PostgresFixture fixture)
		{
			_store = new PostgresEventStore(PostgresFixture.ConnectionString);

			fixture.DropOnDispose(StreamName);
		}
		public PostgresStoreWriterTests(PostgresFixture fixture)
		{
			_store = new PostgresEventStore(PostgresFixture.ConnectionString);
		}