|
16 | 16 | using Microsoft.Azure.Commands.ScenarioTest;
|
17 | 17 | using Microsoft.WindowsAzure.Commands.ScenarioTest;
|
18 | 18 | using Xunit;
|
| 19 | +using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; |
| 20 | +using Xunit.Abstractions; |
| 21 | +using Microsoft.Azure.ServiceManagemenet.Common.Models; |
19 | 22 |
|
20 | 23 | namespace Microsoft.Azure.Commands.Consumption.Test.ScenarioTests
|
21 | 24 | {
|
22 |
| - public class UsageDetailsTests |
| 25 | + public class UsageDetailsTests : RMTestBase |
23 | 26 | {
|
24 |
| - private ServiceManagemenet.Common.Models.XunitTracingInterceptor _logger; |
25 |
| - |
26 |
| - public UsageDetailsTests(Xunit.Abstractions.ITestOutputHelper output) |
| 27 | + public UsageDetailsTests(ITestOutputHelper output) |
27 | 28 | {
|
28 |
| - _logger = new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output); |
29 |
| - ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(_logger); |
| 29 | + XunitTracingInterceptor.AddToContext(new XunitTracingInterceptor(output)); |
30 | 30 | TestExecutionHelpers.SetUpSessionAndProfile();
|
31 | 31 | }
|
32 | 32 |
|
33 | 33 | [Fact]
|
34 | 34 | [Trait(Category.AcceptanceType, Category.CheckIn)]
|
35 | 35 | public void TestListUsageDetails()
|
36 | 36 | {
|
37 |
| - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ListUsageDetails"); |
38 |
| - } |
39 |
| - |
40 |
| - [Fact] |
41 |
| - [Trait(Category.AcceptanceType, Category.CheckIn)] |
42 |
| - public void TestListUsageDetailsWithExpand() |
43 |
| - { |
44 |
| - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ListUsageDetailsWithExpand"); |
45 |
| - } |
46 |
| - |
47 |
| - [Fact] |
48 |
| - [Trait(Category.AcceptanceType, Category.CheckIn)] |
49 |
| - public void TestListUsageDetailsWithFilter() |
50 |
| - { |
51 |
| - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ListUsageDetailsWithFilter"); |
52 |
| - } |
53 |
| - |
54 |
| - [Fact] |
55 |
| - [Trait(Category.AcceptanceType, Category.CheckIn)] |
56 |
| - public void TestListInvoiceUsageDetails() |
57 |
| - { |
58 |
| - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ListInvoiceUsageDetails"); |
| 37 | + TestController.NewInstance.RunPowerShellTest("Test-ListUsageDetails"); |
59 | 38 | }
|
60 | 39 |
|
61 | 40 | [Fact]
|
62 | 41 | [Trait(Category.AcceptanceType, Category.CheckIn)]
|
63 |
| - public void TestListInvoiceUsageDetailsWithExpand() |
| 42 | + public void TestListUsageDetailsWithMeterDetailsExpand() |
64 | 43 | {
|
65 |
| - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ListInvoiceUsageDetailsWithExpand"); |
| 44 | + TestController.NewInstance.RunPowerShellTest("Test-ListUsageDetailsWithMeterDetailsExpand"); |
66 | 45 | }
|
67 | 46 |
|
68 | 47 | [Fact]
|
69 | 48 | [Trait(Category.AcceptanceType, Category.CheckIn)]
|
70 |
| - public void TestListInvoiceUsageDetailsWithFilter() |
| 49 | + public void TestListUsageDetailsWithDateFilter() |
71 | 50 | {
|
72 |
| - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ListInvoiceUsageDetailsWithFilter"); |
| 51 | + TestController.NewInstance.RunPowerShellTest("Test-ListUsageDetailsWithDateFilter"); |
73 | 52 | }
|
74 | 53 |
|
75 | 54 | [Fact]
|
76 | 55 | [Trait(Category.AcceptanceType, Category.CheckIn)]
|
77 | 56 | public void TestListBillingPeriodUsageDetails()
|
78 | 57 | {
|
79 |
| - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ListBillingPeriodUsageDetails"); |
| 58 | + TestController.NewInstance.RunPowerShellTest("Test-ListBillingPeriodUsageDetails"); |
80 | 59 | }
|
81 | 60 |
|
82 | 61 | [Fact]
|
83 | 62 | [Trait(Category.AcceptanceType, Category.CheckIn)]
|
84 |
| - public void TestListBillingPeriodUsageDetailsWithExpand() |
| 63 | + public void TestListBillingPeriodUsageDetailsWithFilterOnInstanceName() |
85 | 64 | {
|
86 |
| - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ListBillingPeriodUsageDetailsWithExpand"); |
| 65 | + TestController.NewInstance.RunPowerShellTest("Test-ListBillingPeriodUsageDetailsWithFilterOnInstanceName"); |
87 | 66 | }
|
88 | 67 |
|
89 | 68 | [Fact]
|
90 | 69 | [Trait(Category.AcceptanceType, Category.CheckIn)]
|
91 |
| - public void TestListBillingPeriodUsageDetailsWithFilter() |
| 70 | + public void TestListBillingPeriodUsageDetailsWithDateFilter() |
92 | 71 | {
|
93 |
| - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ListBillingPeriodUsageDetailsWithFilter"); |
| 72 | + TestController.NewInstance.RunPowerShellTest("Test-ListBillingPeriodUsageDetailsWithDateFilter"); |
94 | 73 | }
|
95 | 74 |
|
96 | 75 | }
|
|
0 commit comments