/// <inheritdoc/>
        public void ConfigureServicePrefix(DicomWebServiceType serviceType, string urlPrefix)
        {
            Guard.Against.NullOrWhiteSpace(urlPrefix, nameof(urlPrefix));

            switch (serviceType)
            {
            case DicomWebServiceType.Wado:
                if (!Wado.TryConfigureServiceUriPrefix(urlPrefix))
                {
                    throw new ArgumentException($"Invalid url prefix specified for {serviceType}: {urlPrefix}");
                }
                break;

            case DicomWebServiceType.Qido:
                if (!Qido.TryConfigureServiceUriPrefix(urlPrefix))
                {
                    throw new ArgumentException($"Invalid url prefix specified for {serviceType}: {urlPrefix}");
                }
                break;

            case DicomWebServiceType.Stow:
                if (!Stow.TryConfigureServiceUriPrefix(urlPrefix))
                {
                    throw new ArgumentException($"Invalid url prefix specified for {serviceType}: {urlPrefix}");
                }
                break;
            }
        }
        public void ConfigureServicePrefix_SetsServicePrefix(DicomWebServiceType serviceType, string prefix)
        {
            var httpClient     = new HttpClient();
            var dicomWebClient = new DicomWebClientClass(httpClient, null);
            var rootUri        = new Uri(BaseUri);

            dicomWebClient.ConfigureServiceUris(rootUri);
            dicomWebClient.ConfigureServicePrefix(serviceType, prefix);
        }
        public void ConfigureServicePrefix_ThrowsMalformedPrefixes(DicomWebServiceType serviceType, string prefix)
        {
            var httpClient     = new HttpClient();
            var dicomWebClient = new DicomWebClientClass(httpClient, null);
            var rootUri        = new Uri(BaseUri);

            dicomWebClient.ConfigureServiceUris(rootUri);
            Assert.Throws <ArgumentException>(() => dicomWebClient.ConfigureServicePrefix(serviceType, prefix));
        }