public WorldRepository(IWereldstoreDatabaseSettings set) { var client = new MongoClient(set.ConnectionString); var database = client.GetDatabase(set.DatabaseName); _worlds = database.GetCollection <World>(set.WorldCollectionName); }
public UserRepository(IWereldstoreDatabaseSettings set) { var client = new MongoClient(set.ConnectionString); var database = client.GetDatabase(set.DatabaseName); _users = database.GetCollection <User>(set.UserCollectionName); }