static void Main()

in aspnet/Microsoft.Samples.XMLA.HTTP/Tester/Program.cs [27:84]


        static void Main(string[] args)
        {

            var host = ConfigurationManager.AppSettings["Host"];
            var httpPort = int.Parse(ConfigurationManager.AppSettings["HttpPort"]);
            var httpsPort = int.Parse(ConfigurationManager.AppSettings["HttpsPort"]);
            string clientId = ConfigurationManager.AppSettings["ClientID"];
            string clientSecret = ConfigurationManager.AppSettings["ClientSecret"];
            string tenantId = ConfigurationManager.AppSettings["TenantID"];
            string query = ConfigurationManager.AppSettings["Query"];

            string aas = "asazure://centralus.asazure.windows.net/dbrowneaas";
            string pbi = "powerbi://api.powerbi.com/v1.0/myorg/HttpEndpoint";

            InteractiveLoginTest("dbrowne@dbrowne.onmicrosoft.com", pbi, "AdventureWorksDW");

            string token = GetBearerTokenAsync(clientId, clientSecret, tenantId).Result;

            var tests = new List<Test>() {
                new Test() { Host = host, HttpPort = httpPort, HttpsPort = httpsPort, Query = query, GZip = true },
                new Test() { Host = host, HttpPort = httpPort, HttpsPort = httpsPort, Query = query, GZip = false } };

            var basicHttpsTest = tests.First().Clone();
            basicHttpsTest.AuthScheme = "basic";
            basicHttpsTest.UseHttps = true;
            tests.Add(basicHttpsTest);

            var basicHttpTest = tests.First().Clone();
            basicHttpTest.AuthScheme = "basic";
            basicHttpTest.UseHttps = false;
            basicHttpTest.ExpectedResponse = HttpStatusCode.BadRequest;
            tests.Add(basicHttpTest);

            var post = tests.First().Clone();
            post.HttpMethod = "post";
            tests.Add(post);

            var noneTest = tests.First().Clone();
            noneTest.AuthScheme = "";
            noneTest.ExpectedResponse = HttpStatusCode.Unauthorized;
            tests.Add(noneTest);

            

            while (true)
            {
                RunTests(tests, token, clientId, clientSecret);

                //DumpTables(token, basicHttpsTest.RequestUri);

                Console.WriteLine("Hit 'q' to exit or any other key to rerun tests.");
                var k = Console.ReadKey();
                if (k.KeyChar == 'q')
                {
                    break;
                }
            }
        }