public void RavenDbSessionShouldUpdateEntityWithStringId() { var entityWithLongId = new EntityWithLongId(); _session.Save(entityWithLongId); entityWithLongId.Id.Should().Be(1L); }
public void entity_with_long_id_can_be_persisted_and_retreieved() { var entityWithLongId = new EntityWithLongId(); SaveGeneric <EntityWithLongId, long>(entityWithLongId); Clear(); var fetchedEntityWithLongId = GetGeneric <EntityWithLongId, long>(entityWithLongId.Id); (fetchedEntityWithLongId == entityWithLongId).ShouldBeTrue(); (fetchedEntityWithLongId.Id == entityWithLongId.Id).ShouldBeTrue(); }
public void entity_with_long_id_can_be_persisted_and_retreieved() { var entityWithLongId = new EntityWithLongId(); UnitOfWork.Save <EntityWithLongId, long>(entityWithLongId); UnitOfWork.Clear(); var fetchedEntityWithLongId = UnitOfWork.Get <EntityWithLongId, long>(entityWithLongId.Id); (fetchedEntityWithLongId == entityWithLongId).ShouldBeTrue(); (fetchedEntityWithLongId.Id == entityWithLongId.Id).ShouldBeTrue(); }