Skip to content

Commit b045828

Browse files
committed
Removing the un-needed resource library in management storage test project
1 parent a3f7b7e commit b045828

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

src/ResourceManager/Storage/Stack/Commands.Management.Storage.Test/Commands.Management.Storage.Test.csproj

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,6 @@
5151
<Reference Include="Microsoft.Azure.Management.Authorization">
5252
<HintPath>..\..\..\..\packages\Microsoft.Azure.Management.Authorization.2.0.0\lib\net40\Microsoft.Azure.Management.Authorization.dll</HintPath>
5353
</Reference>
54-
<!-- <Reference Include="Microsoft.Azure.Management.Storage, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
55-
<HintPath>..\..\..\..\packages\Microsoft.Azure.Management.Storage.6.4.0-preview\lib\net452\Microsoft.Azure.Management.Storage.dll</HintPath>
56-
</Reference> -->
57-
<Reference Include="Microsoft.Azure.ResourceManager, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
58-
<SpecificVersion>False</SpecificVersion>
59-
<HintPath>..\..\..\..\packages\Microsoft.Azure.Management.Resources.2.20.0-preview\lib\net40\Microsoft.Azure.ResourceManager.dll</HintPath>
60-
</Reference>
6154
<Reference Include="Microsoft.Azure.Management.ResourceManager">
6255
<HintPath>..\..\..\..\packages\Microsoft.Azure.Management.ResourceManager.1.6.0-preview\lib\net452\Microsoft.Azure.Management.ResourceManager.dll</HintPath>
6356
</Reference>

src/ResourceManager/Storage/Stack/Commands.Management.Storage.Test/TestController.cs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818
using Microsoft.Azure.Commands.Common.Authentication;
1919
using Microsoft.Azure.Gallery;
2020
using Microsoft.Azure.Management.Authorization;
21-
using Microsoft.Azure.Management.Resources;
2221
using Microsoft.Azure.Management.Storage;
23-
using Microsoft.Azure.Subscriptions;
2422
using Microsoft.Azure.Test;
2523
using Microsoft.Azure.Test.HttpRecorder;
2624
using Microsoft.Rest.ClientRuntime.Azure.TestFramework;
@@ -35,20 +33,14 @@ public class TestController
3533
private CSMTestEnvironmentFactory csmTestFactory;
3634
private EnvironmentSetupHelper helper;
3735

38-
public ResourceManagementClient ResourceManagementClient { get; private set; }
3936
public Microsoft.Azure.Management.ResourceManager.ResourceManagementClient LegacyResourceManagementClient { get; private set; }
4037

41-
public SubscriptionClient SubscriptionClient { get; private set; }
42-
4338
public AuthorizationManagementClient AuthorizationManagementClient { get; private set; }
4439

4540
public StorageManagementClient StorageClient { get; private set; }
4641

4742
public GalleryClient GalleryClient { get; private set; }
4843

49-
50-
public string UserDomain { get; private set; }
51-
5244
public static TestController NewInstance
5345
{
5446
get
@@ -145,36 +137,23 @@ public void RunPsTestWorkflow(
145137

146138
private void SetupManagementClients(MockContext context)
147139
{
148-
ResourceManagementClient = GetResourceManagementClient();
149140
LegacyResourceManagementClient = GetLegacyResourceManagementClient(context);
150-
SubscriptionClient = GetSubscriptionClient();
151141
StorageClient = GetStorageManagementClient();
152142
GalleryClient = GetGalleryClient();
153143
AuthorizationManagementClient = GetAuthorizationManagementClient();
154144

155145
helper.SetupManagementClients(
156-
ResourceManagementClient,
157146
LegacyResourceManagementClient,
158-
SubscriptionClient,
159147
StorageClient,
160148
GalleryClient,
161149
AuthorizationManagementClient);
162150
}
163151

164-
private ResourceManagementClient GetResourceManagementClient()
165-
{
166-
return TestBase.GetServiceClient<ResourceManagementClient>(this.csmTestFactory);
167-
}
168152
private Microsoft.Azure.Management.ResourceManager.ResourceManagementClient GetLegacyResourceManagementClient(MockContext context)
169153
{
170154
return context.GetServiceClient<Microsoft.Azure.Management.ResourceManager.ResourceManagementClient>(Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestEnvironmentFactory.GetTestEnvironment());
171155
}
172156

173-
private SubscriptionClient GetSubscriptionClient()
174-
{
175-
return TestBase.GetServiceClient<SubscriptionClient>(this.csmTestFactory);
176-
}
177-
178157
private AuthorizationManagementClient GetAuthorizationManagementClient()
179158
{
180159
return TestBase.GetServiceClient<AuthorizationManagementClient>(this.csmTestFactory);

0 commit comments

Comments
 (0)