Пример #1
0
 public void Setup()
 {
     var eventStore = new TestEventStore();
     var testEventPublisher = new TestEventPublisher();
     var snapshotStore = new NullSnapshotStore();
     _rep = new Repository<TestAggregate>(eventStore, snapshotStore, testEventPublisher);
 }
 public void Setup()
 {
     var eventStore = new TestEventStore();
     var eventPublisher = new TestEventPublisher();
     var snapshotStore = new NullSnapshotStore();
     var rep = new Repository<TestSnapshotAggreagate>(eventStore, snapshotStore, eventPublisher);
     _aggregate = rep.Get(Guid.NewGuid());
 }
Пример #3
0
 public void Setup()
 {
     _eventStore = new TestEventStore();
     _eventPublisher = new TestEventPublisher();
     var snapshotstore = new NullSnapshotStore();
     _rep = new Repository<TestAggregateNoParameterLessConstructor>(_eventStore, snapshotstore, _eventPublisher);
     _aggregate = new TestAggregateNoParameterLessConstructor(2);
 }
 public void Setup()
 {
     var eventStore = new TestEventStore();
     var eventPublisher = new TestEventPublisher();
     var snapshotStore = new NullSnapshotStore();
     var snapshotStrategy = new DefaultSnapshotStrategy();
     var repository = new SnapshotRepository(snapshotStore, snapshotStrategy, new Repository(eventStore, eventPublisher), eventStore);
     var session = new Session(repository);
     _aggregate = session.Get<TestSnapshotAggregate>(Guid.NewGuid());
 }
 public void Setup()
 {
     _snapshotstore = new NullSnapshotStore();
     _snapshot = new TestSnapshotAggregateSnapshot();
     _snapshotstore.Save(_snapshot);
 }