public CityRepository(LocationMongoConnector mongoConnector) { if (mongoConnector == null) { throw new ArgumentNullException(nameof(mongoConnector)); } cityCollection = mongoConnector.GetCollection <City>(CollectionName); }
public CountryRepository(LocationMongoConnector mongoConnector) { CountryCollection = mongoConnector.GetCollection <Country>(CollectionName); }