public void DumpConfigurationSettings()
        {
            //arrange
            FinOpsRSS finOpsRSS = RSSUtil.CreateRssFromConfig();

            //act
            TC.WriteLine("ActiveDirectoryClientAppId '{0}'", finOpsRSS.ActiveDirectoryClientAppId);
            TC.WriteLine("ActiveDirectoryResource '{0}'", finOpsRSS.ActiveDirectoryResource);
            TC.WriteLine("ActiveDirectoryTenant '{0}'", finOpsRSS.ActiveDirectoryTenant);
            TC.WriteLine("AzureSecret '{0}'", finOpsRSS.AzureSecret);
        }
示例#2
0
        public void GivenTheHaveBeenCreated(string p0)
        {
            JObject rss = null;

            if (!FeatureContext.Current.Keys.Contains(ScenarioContext.Current.ScenarioInfo.Title + "rss"))
            {
                FinOpsRSS finOpsRSS = RSSUtil.CreateRssFromConfig();
                rss = finOpsRSS.GetJsonRss(p0);
                FeatureContext.Current.Add(ScenarioContext.Current.ScenarioInfo.Title + "rss", rss);
            }
        }
        public void CreateSpecFlowExamples()
        {
            //arrange
            FinOpsRSS finOpsRSS = RSSUtil.CreateRssFromConfig();
            //act
            JObject rss = finOpsRSS.GetJsonRss("MainAccounts");
            int     numberOfCustomers = 0;
            var     customers         = from a in rss["value"]
                                        select(string) a["Name"];

            foreach (var customer in customers)
            {
                numberOfCustomers++;
                TC.WriteLine("\t| {0} |", customer);
            }
            //assert
            Assert.IsTrue(numberOfCustomers > 0);
        }
        public void FinOpsRSSTest()
        {
            //arrange
            FinOpsRSS finOpsRSS = RSSUtil.CreateRssFromConfig();
            //act
            JObject rss = finOpsRSS.GetJsonRss("Customers");
            int     numberOfCustomers = 0;
            var     customers         = from a in rss["value"]
                                        select(string) a["Name"];

            foreach (var customer in customers)
            {
                numberOfCustomers++;
                TC.WriteLine("Customer Name: {0}", customer);
            }
            //assert
            Assert.IsTrue(numberOfCustomers > 0);
        }