private AzureTermList SetupBadWordList()
        {
            var fact     = new AzureTermListFactory(AzureTermListApi);
            var allLists = fact.GetAllExistingAsync().Result;
            var bwLst    = allLists.FirstOrDefault(x => x.Name == "ContentModerationServiceIntgTest");

            if (bwLst == null)
            {
                bwLst = fact.CreateNewAsync("ContentModerationServiceIntgTest", "list for intg tests").Result;
                bwLst.AddTerm("BadWord1").Wait();
                bwLst.AddTerm("BadWord2").Wait();
            }

            return(bwLst);
        }
        public void OneTimeSetup()
        {
            var cfg = new ConfigurationProvider();

            cfg.LoadNamedConfiguration("INTGTEST");

            var api = new AzureTermListApi(cfg);

            Factory = new AzureTermListFactory(api);
            var lst = Factory.GetAllExistingAsync().Result;

            foreach (var item in lst)
            {
                if (item.Name == LocalListName)
                {
                    sut = item;
                }
            }

            if (sut == null)
            {
                sut = Factory.CreateNewAsync(LocalListName, "list for intg tests").Result;
            }
        }