18
18
using Microsoft . Azure . Commands . Common . Authentication ;
19
19
using Microsoft . Azure . Gallery ;
20
20
using Microsoft . Azure . Management . Authorization ;
21
- using Microsoft . Azure . Management . Resources ;
22
21
using Microsoft . Azure . Management . Storage ;
23
- using Microsoft . Azure . Subscriptions ;
24
22
using Microsoft . Azure . Test ;
25
23
using Microsoft . Azure . Test . HttpRecorder ;
26
24
using Microsoft . Rest . ClientRuntime . Azure . TestFramework ;
@@ -35,20 +33,14 @@ public class TestController
35
33
private CSMTestEnvironmentFactory csmTestFactory ;
36
34
private EnvironmentSetupHelper helper ;
37
35
38
- public ResourceManagementClient ResourceManagementClient { get ; private set ; }
39
36
public Microsoft . Azure . Management . ResourceManager . ResourceManagementClient LegacyResourceManagementClient { get ; private set ; }
40
37
41
- public SubscriptionClient SubscriptionClient { get ; private set ; }
42
-
43
38
public AuthorizationManagementClient AuthorizationManagementClient { get ; private set ; }
44
39
45
40
public StorageManagementClient StorageClient { get ; private set ; }
46
41
47
42
public GalleryClient GalleryClient { get ; private set ; }
48
43
49
-
50
- public string UserDomain { get ; private set ; }
51
-
52
44
public static TestController NewInstance
53
45
{
54
46
get
@@ -145,36 +137,23 @@ public void RunPsTestWorkflow(
145
137
146
138
private void SetupManagementClients ( MockContext context )
147
139
{
148
- ResourceManagementClient = GetResourceManagementClient ( ) ;
149
140
LegacyResourceManagementClient = GetLegacyResourceManagementClient ( context ) ;
150
- SubscriptionClient = GetSubscriptionClient ( ) ;
151
141
StorageClient = GetStorageManagementClient ( ) ;
152
142
GalleryClient = GetGalleryClient ( ) ;
153
143
AuthorizationManagementClient = GetAuthorizationManagementClient ( ) ;
154
144
155
145
helper . SetupManagementClients (
156
- ResourceManagementClient ,
157
146
LegacyResourceManagementClient ,
158
- SubscriptionClient ,
159
147
StorageClient ,
160
148
GalleryClient ,
161
149
AuthorizationManagementClient ) ;
162
150
}
163
151
164
- private ResourceManagementClient GetResourceManagementClient ( )
165
- {
166
- return TestBase . GetServiceClient < ResourceManagementClient > ( this . csmTestFactory ) ;
167
- }
168
152
private Microsoft . Azure . Management . ResourceManager . ResourceManagementClient GetLegacyResourceManagementClient ( MockContext context )
169
153
{
170
154
return context . GetServiceClient < Microsoft . Azure . Management . ResourceManager . ResourceManagementClient > ( Microsoft . Rest . ClientRuntime . Azure . TestFramework . TestEnvironmentFactory . GetTestEnvironment ( ) ) ;
171
155
}
172
156
173
- private SubscriptionClient GetSubscriptionClient ( )
174
- {
175
- return TestBase . GetServiceClient < SubscriptionClient > ( this . csmTestFactory ) ;
176
- }
177
-
178
157
private AuthorizationManagementClient GetAuthorizationManagementClient ( )
179
158
{
180
159
return TestBase . GetServiceClient < AuthorizationManagementClient > ( this . csmTestFactory ) ;
0 commit comments