public AggregateSnapshotter_Tests()
 {
     _aggregateSnapshotSaver = ObjectContainer.Resolve <IAggregateSnapshotSaver>();
     _aggregateSnapshotStore = ObjectContainer.Resolve <IAggregateSnapshotStore>();
     _aggregateSnapshotter   = ObjectContainer.Resolve <IAggregateSnapshotter>();
     _typeNameProvider       = ObjectContainer.Resolve <ITypeNameProvider>();
 }
예제 #2
0
 public EventSourcingAggregateStorage(
     IAggregateRootFactory aggregateRootFactory,
     IEventStore eventStore,
     IAggregateSnapshotter aggregateSnapshotter,
     ITypeNameProvider typeNameProvider)
 {
     _aggregateRootFactory = aggregateRootFactory;
     _eventStore           = eventStore;
     _aggregateSnapshotter = aggregateSnapshotter;
     _typeNameProvider     = typeNameProvider;
 }
 public EventSourcingAggregateStorage(
     IAggregateRootFactory aggregateRootFactory,
     IEventStore eventStore,
     IAggregateSnapshotter aggregateSnapshotter,
     ITypeNameProvider typeNameProvider)
 {
     _aggregateRootFactory = aggregateRootFactory;
     _eventStore = eventStore;
     _aggregateSnapshotter = aggregateSnapshotter;
     _typeNameProvider = typeNameProvider;
 }
예제 #4
0
 public DomainRepository(IAggregateRootCreationStrategy aggregateRootCreationStrategy, IAggregateSnapshotter aggregateSnapshotter)
 {
     _aggregateRootCreator = aggregateRootCreationStrategy;
     _aggregateSnapshotter = aggregateSnapshotter;
 }
 public AggregateSnapshotter_Tests()
 {
     _aggregateSnapshotter        = ObjectContainer.Resolve <IAggregateSnapshotter>();
     _savableAggregateSnapshotter = ObjectContainer.Resolve <ISavableAggregateSnapshotter>();
 }
 public SnapshotOnlyAggregateStorage(IAggregateSnapshotter aggregateSnapshotter)
 {
     _aggregateSnapshotter = aggregateSnapshotter;
 }
예제 #7
0
 public DomainRepository(IAggregateRootCreationStrategy aggregateRootCreationStrategy, IAggregateSnapshotter aggregateSnapshotter)
 {
     _aggregateRootCreator = aggregateRootCreationStrategy;
     _aggregateSnapshotter = aggregateSnapshotter;
 }
예제 #8
0
 public SnapshotOnlyAggregateStorage(IAggregateSnapshotter aggregateSnapshotter)
 {
     _aggregateSnapshotter = aggregateSnapshotter;
 }
예제 #9
0
 public SnapshotOnlyAggregateStorage(IAggregateSnapshotter aggregateSnapshotter, IOHelper ioHelper)
 {
     _aggregateSnapshotter = aggregateSnapshotter;
     _ioHelper             = ioHelper;
 }