Skip to content

Commit b08fece

Browse files
author
Hovsep Mkrtchyan
committed
Changed all ARM tests to use Xunit 2.0 logging
1 parent 9e3ec5d commit b08fece

File tree

341 files changed

+1558
-247
lines changed

Some content is hidden

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

341 files changed

+1558
-247
lines changed

src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/ScenarioTests/ApiManagementTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ public class ApiManagementTests : RMTestBase
3333
{
3434
private readonly EnvironmentSetupHelper _helper;
3535

36-
public ApiManagementTests()
36+
public ApiManagementTests(Xunit.Abstractions.ITestOutputHelper output)
3737
{
38+
ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output));
3839
_helper = new EnvironmentSetupHelper();
3940
}
4041

src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/UnitTests/PsApiManagementTests.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ namespace Microsoft.Azure.Commands.ApiManagement.Test.UnitTests
1010
{
1111
public class PsApiManagementTests
1212
{
13+
public PsApiManagementTests(Xunit.Abstractions.ITestOutputHelper output)
14+
{
15+
ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output));
16+
}
17+
1318
[Fact]
1419
[Trait(Category.AcceptanceType, Category.CheckIn)]
1520
public void TestCtor()

src/ResourceManager/Automation/Commands.Automation.Test/ScenarioTests/AutomationTests.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ namespace Microsoft.Azure.Commands.Automation.Test
1919
{
2020
public class AutomationTests : AutomationScenarioTestsBase
2121
{
22+
public AutomationTests(Xunit.Abstractions.ITestOutputHelper output)
23+
{
24+
ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output));
25+
}
26+
2227
[Fact(Skip = "Need x64 test framework.")]
2328
[Trait(Category.AcceptanceType, Category.CheckIn)]
2429
[Trait(Category.Service, Category.Automation)]

src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupContainerTests.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ namespace Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests
1919
{
2020
public class AzureBackupContainerTests : AzureBackupTestsBase
2121
{
22+
public AzureBackupContainerTests(Xunit.Abstractions.ITestOutputHelper output)
23+
{
24+
ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output));
25+
}
26+
2227
[Fact]
2328
[Trait(Category.AcceptanceType, Category.CheckIn)]
2429
public void AzureBackupMarsContainerScenarioTests()

src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupItemTestCases.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ namespace Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests
1919
{
2020
public class AzureBackupItemTestCases : AzureBackupTestsBase
2121
{
22+
public AzureBackupItemTestCases(Xunit.Abstractions.ITestOutputHelper output)
23+
{
24+
ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output));
25+
}
26+
2227
[Fact]
2328
[Trait(Category.AcceptanceType, Category.CheckIn)]
2429
public void ListAzureBackupItemTests()

src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupJobTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ namespace Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests
1919
{
2020
public class AzureBackupJobTests : AzureBackupTestsBase
2121
{
22+
public AzureBackupJobTests(Xunit.Abstractions.ITestOutputHelper output)
23+
{
24+
ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output));
25+
}
2226

2327
[Fact]
2428
[Trait(Category.AcceptanceType, Category.CheckIn)]

src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupPolicyTests.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ namespace Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests
1919
{
2020
public class AzureBackupPolicyTests : AzureBackupTestsBase
2121
{
22+
public AzureBackupPolicyTests(Xunit.Abstractions.ITestOutputHelper output)
23+
{
24+
ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output));
25+
}
26+
2227
[Fact]
2328
[Trait(Category.AcceptanceType, Category.CheckIn)]
2429
public void ListProtectionPolicyTests()

src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupVaultTests.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ namespace Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests
1919
{
2020
public class AzureBackupVaultTests : AzureBackupTestsBase
2121
{
22+
public AzureBackupVaultTests(Xunit.Abstractions.ITestOutputHelper output)
23+
{
24+
ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output));
25+
}
26+
2227
[Fact]
2328
[Trait(Category.AcceptanceType, Category.CheckIn)]
2429
public void AzureBackupVaultScenarioTests()

src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/BackupItemTests.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ namespace Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests
1919
{
2020
public class BackupItemTests : AzureBackupTestsBase
2121
{
22+
public BackupItemTests(Xunit.Abstractions.ITestOutputHelper output)
23+
{
24+
ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output));
25+
}
26+
2227
[Fact]
2328
[Trait(Category.AcceptanceType, Category.CheckIn)]
2429
public void BackUpAzureBackUpItem()

src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/RecoveryPointTests.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ namespace Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests
1919
{
2020
public class RecoveryPointTests : AzureBackupTestsBase
2121
{
22+
public RecoveryPointTests(Xunit.Abstractions.ITestOutputHelper output)
23+
{
24+
ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output));
25+
}
26+
2227
[Fact]
2328
[Trait(Category.AcceptanceType, Category.CheckIn)]
2429
public void GetRecoveryPointsTests()

src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/RestoreItemTests.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ namespace Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests
1919
{
2020
public class RestoreItemTests : AzureBackupTestsBase
2121
{
22+
public RestoreItemTests(Xunit.Abstractions.ITestOutputHelper output)
23+
{
24+
ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output));
25+
}
26+
2227
[Fact]
2328
[Trait(Category.AcceptanceType, Category.CheckIn)]
2429
public void RestoreAzureBackUpItem()

src/ResourceManager/AzureBatch/Commands.Batch.Test/Accounts/GetBatchAccountCommandTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ public class GetBatchAccountCommandTests : RMTestBase
2929
private Mock<BatchClient> batchClientMock;
3030
private Mock<ICommandRuntime> commandRuntimeMock;
3131

32-
public GetBatchAccountCommandTests()
32+
public GetBatchAccountCommandTests(Xunit.Abstractions.ITestOutputHelper output)
3333
{
34+
ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output));
3435
batchClientMock = new Mock<BatchClient>();
3536
commandRuntimeMock = new Mock<ICommandRuntime>();
3637
cmdlet = new GetBatchAccountCommand()

src/ResourceManager/AzureBatch/Commands.Batch.Test/Accounts/GetBatchAccountKeysCommandTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ public class GetBatchAccountKeysCommandTests : WindowsAzure.Commands.Test.Utilit
2828
private Mock<BatchClient> batchClientMock;
2929
private Mock<ICommandRuntime> commandRuntimeMock;
3030

31-
public GetBatchAccountKeysCommandTests()
31+
public GetBatchAccountKeysCommandTests(Xunit.Abstractions.ITestOutputHelper output)
3232
{
33+
ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output));
3334
batchClientMock = new Mock<BatchClient>();
3435
commandRuntimeMock = new Mock<ICommandRuntime>();
3536
cmdlet = new GetBatchAccountKeysCommand()

src/ResourceManager/AzureBatch/Commands.Batch.Test/Accounts/GetBatchNodeAgentSkusCommandTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ public class GetBatchNodeAgentSkusCommandTests : WindowsAzure.Commands.Test.Util
3434
private Mock<BatchClient> batchClientMock;
3535
private Mock<ICommandRuntime> commandRuntimeMock;
3636

37-
public GetBatchNodeAgentSkusCommandTests()
37+
public GetBatchNodeAgentSkusCommandTests(Xunit.Abstractions.ITestOutputHelper output)
3838
{
39+
ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output));
3940
batchClientMock = new Mock<BatchClient>();
4041
commandRuntimeMock = new Mock<ICommandRuntime>();
4142
cmdlet = new GetBatchAccountNodeAgentSkuCommand()

src/ResourceManager/AzureBatch/Commands.Batch.Test/Accounts/NewBatchAccountCommandTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ public class NewBatchAccountCommandTests : WindowsAzure.Commands.Test.Utilities.
2929
private Mock<BatchClient> batchClientMock;
3030
private Mock<ICommandRuntime> commandRuntimeMock;
3131

32-
public NewBatchAccountCommandTests()
32+
public NewBatchAccountCommandTests(Xunit.Abstractions.ITestOutputHelper output)
3333
{
34+
ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output));
3435
batchClientMock = new Mock<BatchClient>();
3536
commandRuntimeMock = new Mock<ICommandRuntime>();
3637
cmdlet = new NewBatchAccountCommand()

src/ResourceManager/AzureBatch/Commands.Batch.Test/Accounts/RegenBatchAccountKeyCommandTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ public class RegenBatchAccountKeyCommandTests : WindowsAzure.Commands.Test.Utili
2828
private Mock<BatchClient> batchClientMock;
2929
private Mock<ICommandRuntime> commandRuntimeMock;
3030

31-
public RegenBatchAccountKeyCommandTests()
31+
public RegenBatchAccountKeyCommandTests(Xunit.Abstractions.ITestOutputHelper output)
3232
{
33+
ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output));
3334
batchClientMock = new Mock<BatchClient>();
3435
commandRuntimeMock = new Mock<ICommandRuntime>();
3536
cmdlet = new RegenBatchAccountKeyCommand()

src/ResourceManager/AzureBatch/Commands.Batch.Test/Accounts/RemoveBatchAccountCommandTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ public class RemoveBatchAccountCommandTests : WindowsAzure.Commands.Test.Utiliti
2727
private Mock<BatchClient> batchClientMock;
2828
private Mock<ICommandRuntime> commandRuntimeMock;
2929

30-
public RemoveBatchAccountCommandTests()
30+
public RemoveBatchAccountCommandTests(Xunit.Abstractions.ITestOutputHelper output)
3131
{
32+
ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output));
3233
batchClientMock = new Mock<BatchClient>();
3334
commandRuntimeMock = new Mock<ICommandRuntime>();
3435
cmdlet = new RemoveBatchAccountCommand()

src/ResourceManager/AzureBatch/Commands.Batch.Test/Accounts/SetBatchAccountCommandTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ public class SetBatchAccountCommandTests : WindowsAzure.Commands.Test.Utilities.
2929
private Mock<BatchClient> batchClientMock;
3030
private Mock<ICommandRuntime> commandRuntimeMock;
3131

32-
public SetBatchAccountCommandTests()
32+
public SetBatchAccountCommandTests(Xunit.Abstractions.ITestOutputHelper output)
3333
{
34+
ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output));
3435
batchClientMock = new Mock<BatchClient>();
3536
commandRuntimeMock = new Mock<ICommandRuntime>();
3637
cmdlet = new SetBatchAccountCommand()

src/ResourceManager/AzureBatch/Commands.Batch.Test/Certificates/GetBatchCertificateCommandTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ public class GetBatchCertificateCommandTests : WindowsAzure.Commands.Test.Utilit
3535
private Mock<BatchClient> batchClientMock;
3636
private Mock<ICommandRuntime> commandRuntimeMock;
3737

38-
public GetBatchCertificateCommandTests()
38+
public GetBatchCertificateCommandTests(Xunit.Abstractions.ITestOutputHelper output)
3939
{
40+
ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output));
4041
batchClientMock = new Mock<BatchClient>();
4142
commandRuntimeMock = new Mock<ICommandRuntime>();
4243
cmdlet = new GetBatchCertificateCommand()

src/ResourceManager/AzureBatch/Commands.Batch.Test/Certificates/NewBatchCertificateCommandTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ public class NewBatchCertificateCommandTests : WindowsAzure.Commands.Test.Utilit
3434
private Mock<BatchClient> batchClientMock;
3535
private Mock<ICommandRuntime> commandRuntimeMock;
3636

37-
public NewBatchCertificateCommandTests()
37+
public NewBatchCertificateCommandTests(Xunit.Abstractions.ITestOutputHelper output)
3838
{
39+
ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output));
3940
batchClientMock = new Mock<BatchClient>();
4041
commandRuntimeMock = new Mock<ICommandRuntime>();
4142
cmdlet = new NewBatchCertificateCommand()

src/ResourceManager/AzureBatch/Commands.Batch.Test/Certificates/RemoveBatchCertificateCommandTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ public class RemoveBatchCertificateCommandTests : WindowsAzure.Commands.Test.Uti
3232
private Mock<BatchClient> batchClientMock;
3333
private Mock<ICommandRuntime> commandRuntimeMock;
3434

35-
public RemoveBatchCertificateCommandTests()
35+
public RemoveBatchCertificateCommandTests(Xunit.Abstractions.ITestOutputHelper output)
3636
{
37+
ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output));
3738
batchClientMock = new Mock<BatchClient>();
3839
commandRuntimeMock = new Mock<ICommandRuntime>();
3940
cmdlet = new RemoveBatchCertificateCommand()

src/ResourceManager/AzureBatch/Commands.Batch.Test/Certificates/StopBatchCertificateDeletionCommandTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ public class StopBatchCertificateDeletionCommandTests : WindowsAzure.Commands.Te
3232
private Mock<BatchClient> batchClientMock;
3333
private Mock<ICommandRuntime> commandRuntimeMock;
3434

35-
public StopBatchCertificateDeletionCommandTests()
35+
public StopBatchCertificateDeletionCommandTests(Xunit.Abstractions.ITestOutputHelper output)
3636
{
37+
ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output));
3738
batchClientMock = new Mock<BatchClient>();
3839
commandRuntimeMock = new Mock<ICommandRuntime>();
3940
cmdlet = new StopBatchCertificateDeletionCommand()

src/ResourceManager/AzureBatch/Commands.Batch.Test/ComputeNodeUsers/NewBatchComputeNodeUserCommandTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ public class NewBatchComputeNodeUserCommandTests : WindowsAzure.Commands.Test.Ut
3232
private Mock<BatchClient> batchClientMock;
3333
private Mock<ICommandRuntime> commandRuntimeMock;
3434

35-
public NewBatchComputeNodeUserCommandTests()
35+
public NewBatchComputeNodeUserCommandTests(Xunit.Abstractions.ITestOutputHelper output)
3636
{
37+
ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output));
3738
batchClientMock = new Mock<BatchClient>();
3839
commandRuntimeMock = new Mock<ICommandRuntime>();
3940
cmdlet = new NewBatchComputeNodeUserCommand()

src/ResourceManager/AzureBatch/Commands.Batch.Test/ComputeNodeUsers/RemoveBatchComputeNodeUserCommandTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ public class RemoveBatchComputeNodeUserCommandTests : WindowsAzure.Commands.Test
3232
private Mock<BatchClient> batchClientMock;
3333
private Mock<ICommandRuntime> commandRuntimeMock;
3434

35-
public RemoveBatchComputeNodeUserCommandTests()
35+
public RemoveBatchComputeNodeUserCommandTests(Xunit.Abstractions.ITestOutputHelper output)
3636
{
37+
ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output));
3738
batchClientMock = new Mock<BatchClient>();
3839
commandRuntimeMock = new Mock<ICommandRuntime>();
3940
cmdlet = new RemoveBatchComputeNodeUserCommand()

src/ResourceManager/AzureBatch/Commands.Batch.Test/ComputeNodeUsers/SetBatchComputeNoderUserCommandTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ public class SetBatchComputeNodeUserCommandTests
3434
private Mock<BatchClient> batchClientMock;
3535
private Mock<ICommandRuntime> commandRuntimeMock;
3636

37-
public SetBatchComputeNodeUserCommandTests()
37+
public SetBatchComputeNodeUserCommandTests(Xunit.Abstractions.ITestOutputHelper output)
3838
{
39+
ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output));
3940
batchClientMock = new Mock<BatchClient>();
4041
commandRuntimeMock = new Mock<ICommandRuntime>();
4142
cmdlet = new SetBatchComputeNodeUserCommand()

src/ResourceManager/AzureBatch/Commands.Batch.Test/ComputeNodes/DisableBatchComputeNodeSchedulingCommandTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ public class DisableBatchComputeNodeSchedulingCommandTests : WindowsAzure.Comman
3535
private Mock<BatchClient> batchClientMock;
3636
private Mock<ICommandRuntime> commandRuntimeMock;
3737

38-
public DisableBatchComputeNodeSchedulingCommandTests()
38+
public DisableBatchComputeNodeSchedulingCommandTests(Xunit.Abstractions.ITestOutputHelper output)
3939
{
40+
ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output));
4041
batchClientMock = new Mock<BatchClient>();
4142
commandRuntimeMock = new Mock<ICommandRuntime>();
4243
cmdlet = new DisableBatchComputeNodeSchedulingCommand()

src/ResourceManager/AzureBatch/Commands.Batch.Test/ComputeNodes/EnableBatchComputeNodeSchedulingCommandTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ public class EnableBatchComputeNodeSchedulingCommandTests : WindowsAzure.Command
3232
private Mock<BatchClient> batchClientMock;
3333
private Mock<ICommandRuntime> commandRuntimeMock;
3434

35-
public EnableBatchComputeNodeSchedulingCommandTests()
35+
public EnableBatchComputeNodeSchedulingCommandTests(Xunit.Abstractions.ITestOutputHelper output)
3636
{
37+
ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output));
3738
batchClientMock = new Mock<BatchClient>();
3839
commandRuntimeMock = new Mock<ICommandRuntime>();
3940
cmdlet = new EnableBatchComputeNodeSchedulingCommand()

src/ResourceManager/AzureBatch/Commands.Batch.Test/ComputeNodes/GetBatchComputeNodeCommandTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ public class GetBatchComputeNodeCommandTests : WindowsAzure.Commands.Test.Utilit
3535
private Mock<BatchClient> batchClientMock;
3636
private Mock<ICommandRuntime> commandRuntimeMock;
3737

38-
public GetBatchComputeNodeCommandTests()
38+
public GetBatchComputeNodeCommandTests(Xunit.Abstractions.ITestOutputHelper output)
3939
{
40+
ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output));
4041
batchClientMock = new Mock<BatchClient>();
4142
commandRuntimeMock = new Mock<ICommandRuntime>();
4243
cmdlet = new GetBatchComputeNodeCommand()

src/ResourceManager/AzureBatch/Commands.Batch.Test/ComputeNodes/GetBatchComputeNodeLoginSettingsCommandTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ public class GetBatchComputeNodeLoginSettingsCommandTests : WindowsAzure.Command
3434
private Mock<BatchClient> batchClientMock;
3535
private Mock<ICommandRuntime> commandRuntimeMock;
3636

37-
public GetBatchComputeNodeLoginSettingsCommandTests()
37+
public GetBatchComputeNodeLoginSettingsCommandTests(Xunit.Abstractions.ITestOutputHelper output)
3838
{
39+
ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output));
3940
batchClientMock = new Mock<BatchClient>();
4041
commandRuntimeMock = new Mock<ICommandRuntime>();
4142
cmdlet = new GetBatchComputeNodeRemoteLoginSettingsCommand()

src/ResourceManager/AzureBatch/Commands.Batch.Test/ComputeNodes/RemoveBatchComputeNodeCommandTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ public class RemoveBatchComputeNodeCommandTests : WindowsAzure.Commands.Test.Uti
3535
private Mock<BatchClient> batchClientMock;
3636
private Mock<ICommandRuntime> commandRuntimeMock;
3737

38-
public RemoveBatchComputeNodeCommandTests()
38+
public RemoveBatchComputeNodeCommandTests(Xunit.Abstractions.ITestOutputHelper output)
3939
{
40+
ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output));
4041
batchClientMock = new Mock<BatchClient>();
4142
commandRuntimeMock = new Mock<ICommandRuntime>();
4243
cmdlet = new RemoveBatchComputeNodeCommand()

src/ResourceManager/AzureBatch/Commands.Batch.Test/ComputeNodes/ResetBatchComputeNodeCommandTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ public class ResetBatchComputeNodeCommandTests : WindowsAzure.Commands.Test.Util
3535
private Mock<BatchClient> batchClientMock;
3636
private Mock<ICommandRuntime> commandRuntimeMock;
3737

38-
public ResetBatchComputeNodeCommandTests()
38+
public ResetBatchComputeNodeCommandTests(Xunit.Abstractions.ITestOutputHelper output)
3939
{
40+
ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output));
4041
batchClientMock = new Mock<BatchClient>();
4142
commandRuntimeMock = new Mock<ICommandRuntime>();
4243
cmdlet = new ResetBatchComputeNodeCommand()

0 commit comments

Comments
 (0)