public MongoDbDataSource(IJmCalculatorConfig config)
        {
            if (config == null)
            {
                throw new ArgumentNullException(nameof(config));
            }

            var client   = new MongoClient(config.ConnectionString);
            var database = client.GetDatabase(config.Name);

            table = database.GetCollection <TModel>(typeof(TModel).Name);

            if (table == null)
            {
                throw new ArgumentNullException(nameof(table));
            }
        }
 public MongoDbOptionDataStorage(IJmCalculatorConfig config) :
     base(config)
 {
 }
 public MongoDbPriceDataStorage(IJmCalculatorConfig config) :
     base(config)
 {
 }