public void BasicHttpClientHandler_Fail_Test(string user, string password)
 {
     Assert.ThrowsAny <ArgumentException>(() =>
     {
         var httpHandler = new BasicHttpClientHandler(user, password);
     });
 }
        public async Task BasicHttpClientHandler_Success_Test(string user, string password, string expected)
        {
            using (var httpHandler = new BasicHttpClientHandler(user, password))
                using (var httpClient = new HttpClient(httpHandler))
                {
                    var response = await httpClient.GetAsync("http://zammad.com");

                    Assert.Equal("Basic", response.RequestMessage.Headers.Authorization.Scheme);
                    Assert.Equal(expected, response.RequestMessage.Headers.Authorization.Parameter);
                }
        }