Skip to content

Commit 40538ec

Browse files
ogailogail
authored andcommitted
Migrate Automation project
1 parent 29bfcdf commit 40538ec

File tree

105 files changed

+179
-191
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+179
-191
lines changed

src/ResourceManager/Automation/Commands.Automation.Test/Commands.ResourceManagement.Automation.Test.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@
166166
<Compile Include="UnitTests\UnregisterAzureAutomationScheduledRunbookTest.cs" />
167167
</ItemGroup>
168168
<ItemGroup>
169-
<ProjectReference Include="..\..\..\Common\Commands.Common\Commands.Common.csproj">
170-
<Project>{5ee72c53-1720-4309-b54b-5fb79703195f}</Project>
171-
<Name>Commands.Common</Name>
169+
<ProjectReference Include="..\..\..\Common\Commands.ResourceManager.Common\Commands.ResourceManager.Common.csproj">
170+
<Project>{3819d8a7-c62c-4c47-8ddd-0332d9ce1252}</Project>
171+
<Name>Commands.ResourceManager.Common</Name>
172172
</ProjectReference>
173173
<ProjectReference Include="..\..\..\Common\Commands.ScenarioTests.Common\Commands.ScenarioTests.Common.csproj">
174174
<Project>{c1bda476-a5cc-4394-914d-48b0ec31a710}</Project>

src/ResourceManager/Automation/Commands.Automation.Test/UnitTests/GetAzureAutomationAccountTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
using Microsoft.Azure.Commands.Automation.Model;
1919
using Microsoft.VisualStudio.TestTools.UnitTesting;
2020
using Microsoft.WindowsAzure.Commands.Common.Test.Mocks;
21+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
2122
using Microsoft.WindowsAzure.Commands.Test.Utilities.Common;
2223
using Microsoft.WindowsAzure.Commands.Utilities.Common;
23-
using Moq;
24-
24+
using Moq;
2525
namespace Microsoft.Azure.Commands.ResourceManager.Automation.Test.UnitTests
2626
{
2727
[TestClass]
28-
public class GetAzureAutomationAccountTest : SMTestBase
28+
public class GetAzureAutomationAccountTest : RMTestBase
2929
{
3030
private Mock<IAutomationClient> mockAutomationClient;
3131

src/ResourceManager/Automation/Commands.Automation.Test/UnitTests/GetAzureAutomationCertificateTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using System;
1615
using System.Collections.Generic;
1716
using Microsoft.Azure.Commands.Automation.Cmdlet;
1817
using Microsoft.Azure.Commands.Automation.Common;
1918
using Microsoft.Azure.Commands.Automation.Model;
2019
using Microsoft.VisualStudio.TestTools.UnitTesting;
2120
using Microsoft.WindowsAzure.Commands.Common.Test.Mocks;
21+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
2222
using Microsoft.WindowsAzure.Commands.Test.Utilities.Common;
2323
using Microsoft.WindowsAzure.Commands.Utilities.Common;
2424
using Moq;
2525

2626
namespace Microsoft.Azure.Commands.ResourceManager.Automation.Test.UnitTests
2727
{
2828
[TestClass]
29-
public class GetAzureAutomationCertificateTest : SMTestBase
29+
public class GetAzureAutomationCertificateTest : RMTestBase
3030
{
3131
private Mock<IAutomationClient> mockAutomationClient;
3232

src/ResourceManager/Automation/Commands.Automation.Test/UnitTests/GetAzureAutomationConnectionTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using System;
1615
using System.Collections.Generic;
1716
using Microsoft.Azure.Commands.Automation.Cmdlet;
1817
using Microsoft.Azure.Commands.Automation.Common;
1918
using Microsoft.Azure.Commands.Automation.Model;
2019
using Microsoft.VisualStudio.TestTools.UnitTesting;
2120
using Microsoft.WindowsAzure.Commands.Common.Test.Mocks;
21+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
2222
using Microsoft.WindowsAzure.Commands.Test.Utilities.Common;
2323
using Microsoft.WindowsAzure.Commands.Utilities.Common;
2424
using Moq;
2525

2626
namespace Microsoft.Azure.Commands.ResourceManager.Automation.Test.UnitTests
2727
{
2828
[TestClass]
29-
public class GetAzureAutomationConnectionTest : SMTestBase
29+
public class GetAzureAutomationConnectionTest : RMTestBase
3030
{
3131
private Mock<IAutomationClient> mockAutomationClient;
3232

src/ResourceManager/Automation/Commands.Automation.Test/UnitTests/GetAzureAutomationCredentialTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using System;
1615
using System.Collections.Generic;
1716
using Microsoft.Azure.Commands.Automation.Cmdlet;
1817
using Microsoft.Azure.Commands.Automation.Common;
1918
using Microsoft.Azure.Commands.Automation.Model;
2019
using Microsoft.VisualStudio.TestTools.UnitTesting;
2120
using Microsoft.WindowsAzure.Commands.Common.Test.Mocks;
21+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
2222
using Microsoft.WindowsAzure.Commands.Test.Utilities.Common;
2323
using Moq;
2424

2525
namespace Microsoft.Azure.Commands.ResourceManager.Automation.Test.UnitTests
2626
{
2727
[TestClass]
28-
public class GetAzureAutomationCredentialTest : SMTestBase
28+
public class GetAzureAutomationCredentialTest : RMTestBase
2929
{
3030
private Mock<IAutomationClient> mockAutomationClient;
3131

src/ResourceManager/Automation/Commands.Automation.Test/UnitTests/GetAzureAutomationJobTest.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,18 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using System;
16-
using System.Collections.Generic;
1716
using Microsoft.Azure.Commands.Automation.Cmdlet;
1817
using Microsoft.Azure.Commands.Automation.Common;
19-
using Microsoft.Azure.Commands.Automation.Model;
2018
using Microsoft.VisualStudio.TestTools.UnitTesting;
2119
using Microsoft.WindowsAzure.Commands.Common.Test.Mocks;
20+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
2221
using Microsoft.WindowsAzure.Commands.Test.Utilities.Common;
2322
using Moq;
2423

2524
namespace Microsoft.Azure.Commands.ResourceManager.Automation.Test.UnitTests
2625
{
2726
[TestClass]
28-
public class GetAzureAutomationJobTest : SMTestBase
27+
public class GetAzureAutomationJobTest : RMTestBase
2928
{
3029
private Mock<IAutomationClient> mockAutomationClient;
3130

src/ResourceManager/Automation/Commands.Automation.Test/UnitTests/GetAzureAutomationRunbookTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using System;
1615
using System.Collections.Generic;
1716
using Microsoft.Azure.Commands.Automation.Cmdlet;
1817
using Microsoft.Azure.Commands.Automation.Common;
1918
using Microsoft.Azure.Commands.Automation.Model;
2019
using Microsoft.VisualStudio.TestTools.UnitTesting;
2120
using Microsoft.WindowsAzure.Commands.Common.Test.Mocks;
21+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
2222
using Microsoft.WindowsAzure.Commands.Test.Utilities.Common;
2323
using Microsoft.WindowsAzure.Commands.Utilities.Common;
2424
using Moq;
2525

2626
namespace Microsoft.Azure.Commands.ResourceManager.Automation.Test.UnitTests
2727
{
2828
[TestClass]
29-
public class GetAzureAutomationRunbookTest : SMTestBase
29+
public class GetAzureAutomationRunbookTest : RMTestBase
3030
{
3131
private Mock<IAutomationClient> mockAutomationClient;
3232

src/ResourceManager/Automation/Commands.Automation.Test/UnitTests/GetAzureAutomationScheduleTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using System;
1615
using System.Collections.Generic;
1716
using Microsoft.Azure.Commands.Automation.Cmdlet;
1817
using Microsoft.Azure.Commands.Automation.Common;
1918
using Microsoft.Azure.Commands.Automation.Model;
2019
using Microsoft.VisualStudio.TestTools.UnitTesting;
2120
using Microsoft.WindowsAzure.Commands.Common.Test.Mocks;
21+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
2222
using Microsoft.WindowsAzure.Commands.Test.Utilities.Common;
2323
using Microsoft.WindowsAzure.Commands.Utilities.Common;
2424
using Moq;
2525

2626
namespace Microsoft.Azure.Commands.ResourceManager.Automation.Test.UnitTests
2727
{
2828
[TestClass]
29-
public class GetAzureAutomationScheduleTest : SMTestBase
29+
public class GetAzureAutomationScheduleTest : RMTestBase
3030
{
3131
private Mock<IAutomationClient> mockAutomationClient;
3232

src/ResourceManager/Automation/Commands.Automation.Test/UnitTests/GetAzureAutomationScheduledRunbookTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
using Microsoft.Azure.Commands.Automation.Model;
2020
using Microsoft.VisualStudio.TestTools.UnitTesting;
2121
using Microsoft.WindowsAzure.Commands.Common.Test.Mocks;
22+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
2223
using Microsoft.WindowsAzure.Commands.Test.Utilities.Common;
2324
using Microsoft.WindowsAzure.Commands.Utilities.Common;
24-
using Moq;
25-
25+
using Moq;
2626
namespace Microsoft.Azure.Commands.ResourceManager.Automation.Test.UnitTests
2727
{
2828
[TestClass]
29-
public class GetAzureAutomationScheduledRunbookTest : SMTestBase
29+
public class GetAzureAutomationScheduledRunbookTest : RMTestBase
3030
{
3131
private Mock<IAutomationClient> mockAutomationClient;
3232

src/ResourceManager/Automation/Commands.Automation.Test/UnitTests/GetAzureAutomationVariableTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using System;
1615
using System.Collections.Generic;
1716
using Microsoft.Azure.Commands.Automation.Cmdlet;
1817
using Microsoft.Azure.Commands.Automation.Common;
1918
using Microsoft.Azure.Commands.Automation.Model;
2019
using Microsoft.VisualStudio.TestTools.UnitTesting;
2120
using Microsoft.WindowsAzure.Commands.Common.Test.Mocks;
21+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
2222
using Microsoft.WindowsAzure.Commands.Test.Utilities.Common;
2323
using Microsoft.WindowsAzure.Commands.Utilities.Common;
2424
using Moq;
2525

2626
namespace Microsoft.Azure.Commands.ResourceManager.Automation.Test.UnitTests
2727
{
2828
[TestClass]
29-
public class GetAzureAutomationVariableTest : SMTestBase
29+
public class GetAzureAutomationVariableTest : RMTestBase
3030
{
3131
private Mock<IAutomationClient> mockAutomationClient;
3232

src/ResourceManager/Automation/Commands.Automation.Test/UnitTests/GetAzureAutomationWebhookTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
using Microsoft.Azure.Commands.Automation.Common;
1717
using Microsoft.VisualStudio.TestTools.UnitTesting;
1818
using Microsoft.WindowsAzure.Commands.Common.Test.Mocks;
19+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
1920
using Microsoft.WindowsAzure.Commands.Test.Utilities.Common;
2021
using Microsoft.WindowsAzure.Commands.Utilities.Common;
21-
using Moq;
22-
22+
using Moq;
2323
namespace Microsoft.Azure.Commands.ResourceManager.Automation.Test.UnitTests
2424
{
2525
[TestClass]
26-
public class GetAzureAutomationWebhookTest : SMTestBase
26+
public class GetAzureAutomationWebhookTest : RMTestBase
2727
{
2828
private Mock<IAutomationClient> mockAutomationClient;
2929

src/ResourceManager/Automation/Commands.Automation.Test/UnitTests/NewAzureAutomationAccountTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
using Microsoft.Azure.Commands.Automation.Common;
1717
using Microsoft.VisualStudio.TestTools.UnitTesting;
1818
using Microsoft.WindowsAzure.Commands.Common.Test.Mocks;
19+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
1920
using Microsoft.WindowsAzure.Commands.Test.Utilities.Common;
20-
using Moq;
21-
21+
using Moq;
2222
namespace Microsoft.Azure.Commands.ResourceManager.Automation.Test.UnitTests
2323
{
2424
[TestClass]
25-
public class NewAzureAutomationAccountTest : SMTestBase
25+
public class NewAzureAutomationAccountTest : RMTestBase
2626
{
2727
private Mock<IAutomationClient> mockAutomationClient;
2828

src/ResourceManager/Automation/Commands.Automation.Test/UnitTests/NewAzureAutomationCertificateTest.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,20 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using System.Collections.Generic;
15+
using System;
16+
using System.Security;
1617
using Microsoft.Azure.Commands.Automation.Cmdlet;
1718
using Microsoft.Azure.Commands.Automation.Common;
1819
using Microsoft.VisualStudio.TestTools.UnitTesting;
1920
using Microsoft.WindowsAzure.Commands.Common.Test.Mocks;
21+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
2022
using Microsoft.WindowsAzure.Commands.Test.Utilities.Common;
21-
using Microsoft.WindowsAzure.Commands.Utilities.Common;
2223
using Moq;
23-
using System.Management.Automation;
24-
using System.Security;
25-
using System;
2624

2725
namespace Microsoft.Azure.Commands.ResourceManager.Automation.Test.UnitTests
2826
{
2927
[TestClass]
30-
public class NewAzureAutomationCertificateTest : SMTestBase
28+
public class NewAzureAutomationCertificateTest : RMTestBase
3129
{
3230
private Mock<IAutomationClient> mockAutomationClient;
3331

src/ResourceManager/Automation/Commands.Automation.Test/UnitTests/NewAzureAutomationConnectionTest.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,18 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using System.Collections.Generic;
1615
using Microsoft.Azure.Commands.Automation.Cmdlet;
1716
using Microsoft.Azure.Commands.Automation.Common;
1817
using Microsoft.VisualStudio.TestTools.UnitTesting;
1918
using Microsoft.WindowsAzure.Commands.Common.Test.Mocks;
19+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
2020
using Microsoft.WindowsAzure.Commands.Test.Utilities.Common;
21-
using Microsoft.WindowsAzure.Commands.Utilities.Common;
2221
using Moq;
23-
using System.Management.Automation;
24-
using System.Security;
25-
using System;
2622

2723
namespace Microsoft.Azure.Commands.ResourceManager.Automation.Test.UnitTests
2824
{
2925
[TestClass]
30-
public class NewAzureAutomationConnectionTest : SMTestBase
26+
public class NewAzureAutomationConnectionTest : RMTestBase
3127
{
3228
private Mock<IAutomationClient> mockAutomationClient;
3329

src/ResourceManager/Automation/Commands.Automation.Test/UnitTests/NewAzureAutomationCredentialTest.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,21 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using System.Collections.Generic;
15+
using System;
16+
using System.Management.Automation;
17+
using System.Security;
1618
using Microsoft.Azure.Commands.Automation.Cmdlet;
1719
using Microsoft.Azure.Commands.Automation.Common;
1820
using Microsoft.VisualStudio.TestTools.UnitTesting;
1921
using Microsoft.WindowsAzure.Commands.Common.Test.Mocks;
22+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
2023
using Microsoft.WindowsAzure.Commands.Test.Utilities.Common;
21-
using Microsoft.WindowsAzure.Commands.Utilities.Common;
2224
using Moq;
23-
using System.Management.Automation;
24-
using System.Security;
25-
using System;
2625

2726
namespace Microsoft.Azure.Commands.ResourceManager.Automation.Test.UnitTests
2827
{
2928
[TestClass]
30-
public class NewAzureAutomationCredentialTest : SMTestBase
29+
public class NewAzureAutomationCredentialTest : RMTestBase
3130
{
3231
private Mock<IAutomationClient> mockAutomationClient;
3332

src/ResourceManager/Automation/Commands.Automation.Test/UnitTests/NewAzureAutomationRunbookTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
using Microsoft.Azure.Commands.Automation.Common;
1818
using Microsoft.VisualStudio.TestTools.UnitTesting;
1919
using Microsoft.WindowsAzure.Commands.Common.Test.Mocks;
20+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
2021
using Microsoft.WindowsAzure.Commands.Test.Utilities.Common;
2122
using Microsoft.WindowsAzure.Commands.Utilities.Common;
22-
using Moq;
23-
23+
using Moq;
2424
namespace Microsoft.Azure.Commands.ResourceManager.Automation.Test.UnitTests
2525
{
2626
[TestClass]
27-
public class NewAzureAutomationRunbookTest : SMTestBase
27+
public class NewAzureAutomationRunbookTest : RMTestBase
2828
{
2929
private Mock<IAutomationClient> mockAutomationClient;
3030

src/ResourceManager/Automation/Commands.Automation.Test/UnitTests/NewAzureAutomationScheduleTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
using Microsoft.Azure.Commands.Automation.Model;
2020
using Microsoft.VisualStudio.TestTools.UnitTesting;
2121
using Microsoft.WindowsAzure.Commands.Common.Test.Mocks;
22+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
2223
using Microsoft.WindowsAzure.Commands.Test.Utilities.Common;
2324
using Microsoft.WindowsAzure.Commands.Utilities.Common;
24-
using Moq;
25-
25+
using Moq;
2626
namespace Microsoft.Azure.Commands.ResourceManager.Automation.Test.UnitTests
2727
{
2828
[TestClass]
29-
public class NewAzureAutomationScheduleTest : SMTestBase
29+
public class NewAzureAutomationScheduleTest : RMTestBase
3030
{
3131
private Mock<IAutomationClient> mockAutomationClient;
3232

src/ResourceManager/Automation/Commands.Automation.Test/UnitTests/NewAzureAutomationVariableTest.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,20 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using System;
16-
using System.Linq;
1715
using Microsoft.Azure.Commands.Automation.Cmdlet;
1816
using Microsoft.Azure.Commands.Automation.Common;
1917
using Microsoft.Azure.Commands.Automation.Model;
2018
using Microsoft.VisualStudio.TestTools.UnitTesting;
2119
using Microsoft.WindowsAzure.Commands.Common.Test.Mocks;
20+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
2221
using Microsoft.WindowsAzure.Commands.Test.Utilities.Common;
2322
using Microsoft.WindowsAzure.Commands.Utilities.Common;
2423
using Moq;
2524

2625
namespace Microsoft.Azure.Commands.ResourceManager.Automation.Test.UnitTests
2726
{
2827
[TestClass]
29-
public class NewAzureAutomationVariableTest : SMTestBase
28+
public class NewAzureAutomationVariableTest : RMTestBase
3029
{
3130
private Mock<IAutomationClient> mockAutomationClient;
3231

0 commit comments

Comments
 (0)