public static KeyVaultManagementClient GetKeyVaultManagementClient(MockContext context, RecordedDelegatingHandler handler)
        {
            if (handler != null)
            {
                handler.IsPassThrough = true;
                KeyVaultManagementClient keyValutManagementClient = context.GetServiceClient <KeyVaultManagementClient>(handlers: handler);
                return(keyValutManagementClient);
            }

            return(null);
        }
        public static ResourceManagementClient GetResourceManagementClient(MockContext context, RecordedDelegatingHandler handler)
        {
            if (handler != null)
            {
                handler.IsPassThrough = true;
                ResourceManagementClient rManagementClient = context.GetServiceClient <ResourceManagementClient>(handlers: handler);
                return(rManagementClient);
            }

            return(null);
        }
        public static EventHubManagementClient GetEventHubManagementClient(MockContext context, RecordedDelegatingHandler handler)
        {
            if (handler != null)
            {
                handler.IsPassThrough = true;
                EventHubManagementClient nhManagementClient = context.GetServiceClient <EventHubManagementClient>(handlers: handler);

                return(nhManagementClient);
            }

            return(null);
        }