Renamed inMemoryRepository to repository and changed type to IChainLinkRepository and extracted methods in the inMemoryRepository to the interface
Changed MongoDbRepository type to IChainLinkRepository
Changed InMemoryRepository type to IChainLinkRepository