auto id generation for InMemoryRepository addressing issue #1