public void store_by_version()
        {
            var target  = Target.Random();
            var version = Guid.NewGuid();

            theIdentityMap.Store(target.Id, target, version);

            theIdentityMap.Versions.Version <Target>(target.Id)
            .ShouldBe(version);
        }
Esempio n. 2
0
 public void Store(IIdentityMap map, object id, object entity)
 {
     map.Store <T>(id, (T)entity);
 }
Esempio n. 3
0
 public void Store(IIdentityMap map, object id, object entity)
 {
     map.Store(id, entity.As <EventStream>());
 }