コード例 #1
0
 private static AuthorizationManagementClient GetAuthorizationManagementClient(MockContext context)
 {
     return(context.GetServiceClient <AuthorizationManagementClient>(TestEnvironmentFactory.GetTestEnvironment()));
 }
コード例 #2
0
 private Azure.Management.ResourceManager.ResourceManagementClient GetResourceManagerResourceManagementClient(MockContext context)
 {
     return(context.GetServiceClient <Azure.Management.ResourceManager.ResourceManagementClient>(TestEnvironmentFactory.GetTestEnvironment()));
 }
コード例 #3
0
 private Internal.Subscriptions.SubscriptionClient GetSubscriptionClient(MockContext context)
 {
     return(context.GetServiceClient <Internal.Subscriptions.SubscriptionClient>(TestEnvironmentFactory.GetTestEnvironment()));
 }
コード例 #4
0
 private static EventHubManagementClient GetEHClient(MockContext context)
 {
     return(context.GetServiceClient <EventHubManagementClient>(TestEnvironmentFactory.GetTestEnvironment()));
 }
コード例 #5
0
 private static ResourceManagementClientInternal GetResourceManagementClientInternal(MockContext context)
 {
     return(context.GetServiceClient <ResourceManagementClientInternal>(TestEnvironmentFactory.GetTestEnvironment()));
 }
コード例 #6
0
        private void SetupManagementClients(MockContext context)
        {
            ResourceManagementClient               = LegacyTest.TestBase.GetServiceClient <ResourceManagementClient>(this.csmTestFactory);
            NewResourceManagementClient            = context.GetServiceClient <NewResourceManagementClient>(TestEnvironmentFactory.GetTestEnvironment());
            MachineLearningComputeManagementClient = context.GetServiceClient <MachineLearningComputeManagementClient>();

            helper.SetupManagementClients(
                this.ResourceManagementClient,
                this.NewResourceManagementClient,
                this.MachineLearningComputeManagementClient);
        }
コード例 #7
0
 private AnalysisServicesManagementClient GetAnalysisServicesManagementClient(MockContext context)
 {
     return(context.GetServiceClient <AnalysisServicesManagementClient>(TestEnvironmentFactory.GetTestEnvironment()));
 }
コード例 #8
0
 private CdnManagementClient GetCdnManagementClient(MockContext context)
 {
     return
         (context.GetServiceClient <CdnManagementClient>(TestEnvironmentFactory.GetTestEnvironment()));
 }
コード例 #9
0
 private LegacyResourceManagementClient GetLegacyResourceManagementClient(MockContext context)
 {
     return(context.GetServiceClient <LegacyResourceManagementClient>(TestEnvironmentFactory.GetTestEnvironment()));
 }
コード例 #10
0
 private PolicyInsightsClient GetPolicyInsightsClient(MockContext context)
 {
     return(context.GetServiceClient <PolicyInsightsClient>(TestEnvironmentFactory.GetTestEnvironment()));
 }
コード例 #11
0
 private ApplicationInsightsManagementClient GetApplicationInsightsManagementClient(MockContext context)
 {
     return(context.GetServiceClient <ApplicationInsightsManagementClient>(TestEnvironmentFactory.GetTestEnvironment()));
 }
コード例 #12
0
 private Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient GetNewResourceManagementClient(MockContext context)
 {
     return(context.GetServiceClient <Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient>(TestEnvironmentFactory.GetTestEnvironment()));
 }
コード例 #13
0
 private KeyVaultManagementClient GetKeyVaultManagementClient(MockContext context)
 {
     return(context.GetServiceClient <KeyVaultManagementClient>(TestEnvironmentFactory.GetTestEnvironment()));
 }
コード例 #14
0
 private DataLakeStoreAccountManagementClient GetDataLakeStoreAccountManagementClient(MockContext context)
 {
     return context.GetServiceClient<DataLakeStoreAccountManagementClient>(TestEnvironmentFactory.GetTestEnvironment());
 }
コード例 #15
0
        private void SetupManagementClients(MockContext context)
        {
            NewResourceManagementClient            = context.GetServiceClient <NewResourceManagementClient>(TestEnvironmentFactory.GetTestEnvironment());
            MachineLearningComputeManagementClient = context.GetServiceClient <MachineLearningComputeManagementClient>();

            _helper.SetupManagementClients(
                NewResourceManagementClient,
                MachineLearningComputeManagementClient);
        }
コード例 #16
0
 private static ResourceGraphClient GetResourceGraphClient(MockContext context)
 {
     return(context.GetServiceClient <ResourceGraphClient>(TestEnvironmentFactory.GetTestEnvironment()));
 }
コード例 #17
0
 private static AlertsManagementClient GetBillingManagementClient(MockContext context)
 {
     return(context.GetServiceClient <AlertsManagementClient>(TestEnvironmentFactory.GetTestEnvironment()));
 }
コード例 #18
0
 private static ManagementGroupsAPIClient GetManagementGroupsApiClient(MockContext context)
 {
     return(context.GetServiceClient <ManagementGroupsAPIClient>(TestEnvironmentFactory.GetTestEnvironment()));
 }
コード例 #19
0
 public static ApiManagementClient GetApiManagementClient(MockContext context)
 {
     return(context.GetServiceClient <ApiManagementClient>(TestEnvironmentFactory.GetTestEnvironment()));
 }
コード例 #20
0
 private static NetworkManagementClientInternal GetNetworkManagementClientInternal(MockContext context)
 {
     return(context.GetServiceClient <NetworkManagementClientInternal>(TestEnvironmentFactory.GetTestEnvironment()));
 }
コード例 #21
0
 private static Management.Internal.Resources.ResourceManagementClient GetResourceManagementClient(MockContext context)
 {
     return(context.GetServiceClient <Management.Internal.Resources.ResourceManagementClient>(TestEnvironmentFactory.GetTestEnvironment()));
 }
コード例 #22
0
 protected NetworkManagementClient GetNetworkManagementClient(MockContext context)
 {
     return(context.GetServiceClient <NetworkManagementClient>(TestEnvironmentFactory.GetTestEnvironment()));
 }
コード例 #23
0
 private static AzureNetAppFilesManagementClient GetNetAppFilesManagementClient(MockContext context)
 {
     return(context.GetServiceClient <AzureNetAppFilesManagementClient>(TestEnvironmentFactory.GetTestEnvironment()));
 }
コード例 #24
0
 protected ResourceManagementClient GetResourceManagementClient(MockContext context)
 {
     return(context.GetServiceClient <ResourceManagementClient>(TestEnvironmentFactory.GetTestEnvironment()));
 }
コード例 #25
0
 /// <summary>
 /// Creates WebSiteManagementClient instance  based on mode setting
 /// </summary>
 /// <param name="context">Mock undocontext</param>
 /// <returns>WebSiteManagementClient instance</returns>
 private WebSiteManagementClient GetWebsiteManagementClient(MockContext context)
 {
     return(context.GetServiceClient <WebSiteManagementClient>(TestEnvironmentFactory.GetTestEnvironment()));
 }
コード例 #26
0
 private static StorageManagementClient GetStorageManagementClient(MockContext context)
 {
     return(context.GetServiceClient <StorageManagementClient>(TestEnvironmentFactory.GetTestEnvironment()));
 }
コード例 #27
0
 private NewResourceManagementClient GetNewResourceManagementClient(MockContext context)
 {
     return context.GetServiceClient<NewResourceManagementClient>(TestEnvironmentFactory.GetTestEnvironment());
 }
コード例 #28
0
 private static FeatureClient GetFeatureClient(MockContext context)
 {
     return(context.GetServiceClient <FeatureClient>(TestEnvironmentFactory.GetTestEnvironment()));
 }
コード例 #29
0
 private GraphRbacManagementClient GetGraphRbacManagementClient(MockContext context)
 {
     return(context.GetGraphServiceClient <GraphRbacManagementClient>(TestEnvironmentFactory.GetTestEnvironment()));
 }