public BalanceCalculator(IDatabaseInteraction databaseInteraction)
 {
     _databaseInteraction = databaseInteraction;
 }
示例#2
0
 public UpdateVideos(IDatabaseInteraction databaseInteractions = null, YoutubeOperations youtubeOperations = null)
 {
     _youtubeOperations = youtubeOperations ?? new YoutubeOperations();
     _databaseInteraction = databaseInteractions ?? new MongoDbInteraction(new MongoDbConnection { CollectionName = "videos", DatabaseName = "StrawHatEntertainment" },
                                                      new MongoClient("mongodb://localhost"));
 }