public static ResourceManagementClient GetResourceManagementClient(MockContext context, RecordedDelegatingHandler handler)
        {
            handler.IsPassThrough = true;
            var client = context.GetServiceClient <ResourceManagementClient>(handlers: handler);

            return(client);
        }
        public static AzureDigitalTwinsManagementClient GetDigitalTwinsClient(MockContext context, RecordedDelegatingHandler handler = null)
        {
            if (handler != null)
            {
                handler.IsPassThrough = true;
            }

            return(context.GetServiceClient <AzureDigitalTwinsManagementClient>(handlers: handler ?? new RecordedDelegatingHandler {
                StatusCodeToReturn = HttpStatusCode.OK
            }));
        }