Ejemplo n.º 1
0
        public static MediaServicesManagementClient GetMediaManagementClient(MockContext context, RecordedDelegatingHandler handler)
        {
            MediaServicesManagementClient mediaClient;

            if (IsTestTenant)
            {
                return(null);
            }
            else
            {
                handler.IsPassThrough = true;
                mediaClient           = context.GetServiceClient <MediaServicesManagementClient>(handlers: handler);
            }
            return(mediaClient);
        }
Ejemplo n.º 2
0
 public static StorageManagementClient GetStorageManagementClient(MockContext context, RecordedDelegatingHandler handler)
 {
     if (IsTestTenant)
     {
         return(null);
     }
     else
     {
         handler.IsPassThrough = true;
         StorageManagementClient storageClient = context.GetServiceClient <StorageManagementClient>(handlers: handler);
         return(storageClient);
     }
 }
Ejemplo n.º 3
0
 public static ResourceManagementClient GetResourceManagementClient(MockContext context, RecordedDelegatingHandler handler)
 {
     if (IsTestTenant)
     {
         return(null);
     }
     else
     {
         handler.IsPassThrough = true;
         ResourceManagementClient resourcesClient = context.GetServiceClient <ResourceManagementClient>(handlers: handler);
         return(resourcesClient);
     }
 }