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); }
public void Store(IIdentityMap map, object id, object entity) { map.Store <T>(id, (T)entity); }
public void Store(IIdentityMap map, object id, object entity) { map.Store(id, entity.As <EventStream>()); }