Teach InMemoryDatabase to use in-memory repositories

Change-Id: Iec9aad1de3f0604b60698bb7c9945e936299dbec
2 files changed