public async Task RehydrateAggregate_WithSnapshot()
 {
     var store = new EFEventStore(
         GetConfig(new BasicSnapshotBehaviorProvider(
                       new Dictionary <Type, ISnapshotBehavior>()
     {
         { typeof(TestEvent), new NumericSnapshotBehavior(10) }
     })));
     var agg = await store.GetRehydratedAggregateAsync <TestAggregate>(AggregateId);
 }
 public async Task RehydrateAggregate()
 {
     var store = new EFEventStore(GetConfig());
     var agg   = await store.GetRehydratedAggregateAsync <TestAggregate>(AggregateId);
 }