private void GetRepos(string dbName, out MongoRepository mongoRepo, out CachingRepository cachingRepo) { mongoRepo = new MongoRepository(databaseName: dbName); mongoRepo.AddType <TestMonkey>(); cachingRepo = new CachingRepository(mongoRepo); }