// ReSharper disable once StringLiteralTypo // This is the name of the collection without separator - according to MongoDB naming conventions. public ArticleTrendingEventsDal(IMongoConfig config, TrendingDatabase database) : base(config, database, CollectionNameOf(database)) { }
// ReSharper disable StringLiteralTypo // This is the name of the collection without separator - according to MongoDB naming conventions. private static string CollectionNameOf(TrendingDatabase database) => database == TrendingDatabase.Operational ? "articleevents" : "articleeventscopy";
protected TrendingDal(IMongoConfig config, TrendingDatabase database, string collectionName) { _dbName = database == TrendingDatabase.Operational ? OperationalDbName : ReportingDbName; _config = config; _collectionName = collectionName; }