public void ConfigureAuthentication_ThrowsIfNull()
        {
            var httpClient     = new HttpClient();
            var dicomWebClient = new DicomWebClientClass(httpClient, null);
            var rootUri        = new Uri(BaseUri);

            Assert.Throws <ArgumentNullException>(() => dicomWebClient.ConfigureAuthentication(null));
        }
        public void ConfigureAuthentication_SetsAuthHeader()
        {
            var httpClient     = new HttpClient();
            var dicomWebClient = new DicomWebClientClass(httpClient, null);

            var auth = new AuthenticationHeaderValue("basic", "value");

            dicomWebClient.ConfigureAuthentication(auth);

            Assert.Equal(httpClient.DefaultRequestHeaders.Authorization, auth);
        }