Beispiel #1
0
        public async Task <bool> Make_a_request_that_will_return_true_for_identity_server()
        {
            var test_url = new Identity_server();
            var url      = $"{test_url.DefaultGateway}admin/get/all/activityParents";

            return(await Access_service_via_the_default_Gateway(url));
        }
Beispiel #2
0
        public async Task <string> Return_identity_appsettings_connectionstrings_async()
        {
            var test_url = new Identity_server();
            var client   = new HttpClient();
            var response = await client.GetStringAsync($"{test_url.Backend}test_response/indentity_server/get/connectionstring");

            return(response);
        }
Beispiel #3
0
        public async Task <bool> Return_identity_server_operatons_async()
        {
            var test_url = new Identity_server();
            var client   = new HttpClient();
            var conn_str = await client.GetStringAsync($"{test_url.Backend}test_response/indentity_server/get/connectionstring");

            return(Read_operations_data(conn_str));
        }
        private async Task <string> GetJWTAsync(HttpClient client)
        {
            var testurl = new Identity_server();

            try
            {
                var response = await client.PostAsJsonAsync($"{testurl.Backend}api/v1/identity/login",
                                                            new Login
                {
                    UserName = "******",
                    Password = "******"
                });

                var registrationResponse = await response.Content.ReadAsAsync <AuthResponse>();

                return(registrationResponse.Token);
            }
            catch (System.Exception)
            {
                throw;
            }
        }