public static async Task SyncEncodeTbfsData(string databaseName) { var mongoConnection = new MongoRepository(databaseName); var sync = new EncodeWebDataSynchronizer(new JsonWrapper(), mongoConnection, new HttpWebRequestWrapper()); await sync.SyncTbfs(); }
public async Task Sync_TestDeleteManyCalledEnoughTimesWhenOverwrite([Frozen]IMongoRepository mongoRepository, EncodeWebDataSynchronizer target) { await target.SyncTbfs(); #pragma warning disable 4014 mongoRepository.Received().DropCollection("encode.tbfs-peaks"); #pragma warning restore 4014 }