public SimulationRepository(IConnectionStringProvider connectionStringProvider) { var client = new MongoClient(connectionStringProvider.GetConnectionString()); var database = client.GetDatabase(connectionStringProvider.GetDatabase()); _simulations = database.GetCollection <Simulation>(connectionStringProvider.GetSimulaionCollectionName()); }