private void SetupManagementClients(MockContext context)
        {
            NewResourceManagementClient            = context.GetServiceClient <NewResourceManagementClient>(TestEnvironmentFactory.GetTestEnvironment());
            MachineLearningComputeManagementClient = context.GetServiceClient <MachineLearningComputeManagementClient>();

            _helper.SetupManagementClients(
                NewResourceManagementClient,
                MachineLearningComputeManagementClient);
        }
 private void SetupManagementClients(MockContext context)
 {
     ResourceManagementClient         = GetResourceManagementClient();
     InternalResourceManagementClient = GetInternalResourceManagementClient(context);
     ManagedServiceIdentityClient     = GetManagedServiceIdentityClient(context);
     _helper.SetupManagementClients(
         ResourceManagementClient,
         InternalResourceManagementClient,
         ManagedServiceIdentityClient);
 }
Esempio n. 3
0
        private void SetupManagementClients(MockContext context)
        {
            IStorageAdminManagementClient storageAdminClient = GetStorageManagementClient();

            Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient internalResourceManagementClient = GetInternalResourceManagementClient(context);
            Microsoft.Azure.Management.ResourceManager.ResourceManagementClient    legacyResourceManagementClient   = GetLegacyResourceManagementClient(context);
            GalleryClient galleryClient = GetGalleryClient();
            AuthorizationManagementClient authorizationManagementClient = this.GetAuthorizationManagementClient();

            helper.SetupManagementClients(storageAdminClient, internalResourceManagementClient, legacyResourceManagementClient, galleryClient, authorizationManagementClient);
        }