Example #1
0
        public async void DownloadDictionaryTest_NoExistedFile()
        {
            System.IO.File.Delete(DICTIONARY_AU);
            await DictionaryUtil.UpdateDictionary("AU");

            Assert.AreEqual(true, System.IO.File.Exists(DICTIONARY_AU));
        }
Example #2
0
 public Task Handle(GetPublicationOnlineEvent evt)
 {
     return(Task.Run(() =>
     {
         DictionaryUtil.UpdateDictionary("AU").ContinueWith((t) =>
         {
             DictionaryUtil.UpdateDictionary("NZ");
         });
     }));
 }
Example #3
0
        public async void DownloadDictionaryTest_UpdateToNewVersion()
        {
            await DictionaryUtil.UpdateDictionary("NZ");

            Assert.AreEqual(true, System.IO.File.Exists(DICTIONARY_AU));
        }