コード例 #1
0
        public static async Task SyncEncodeTbfsData(string databaseName)
        {
            var mongoConnection = new MongoRepository(databaseName);
            var sync = new EncodeWebDataSynchronizer(new JsonWrapper(), mongoConnection, new HttpWebRequestWrapper());

            await sync.SyncTbfs();
        }
コード例 #2
0
        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
        }