|
12 | 12 | // limitations under the License.
|
13 | 13 | // ----------------------------------------------------------------------------------
|
14 | 14 |
|
15 |
| -using Microsoft.Azure.Commands.Reservations.Test.ScenarioTests.ScenarioTest; |
16 |
| -using Microsoft.Azure.Commands.ScenarioTest; |
17 | 15 | using Microsoft.WindowsAzure.Commands.ScenarioTest;
|
18 | 16 | using Xunit;
|
19 | 17 |
|
20 | 18 | namespace Microsoft.Azure.Commands.Reservations.Test.ScenarioTests
|
21 | 19 | {
|
22 |
| - public class ReservationTests |
| 20 | + public class ReservationTests : ReservationsTestRunner |
23 | 21 | {
|
24 |
| - private ServiceManagement.Common.Models.XunitTracingInterceptor _logger; |
25 |
| - |
26 |
| - public ReservationTests(Xunit.Abstractions.ITestOutputHelper output) |
| 22 | + public ReservationTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) |
27 | 23 | {
|
28 |
| - _logger = new ServiceManagement.Common.Models.XunitTracingInterceptor(output); |
29 |
| - ServiceManagement.Common.Models.XunitTracingInterceptor.AddToContext(_logger); |
30 |
| - TestExecutionHelpers.SetUpSessionAndProfile(); |
31 | 24 | }
|
32 | 25 |
|
33 | 26 | [Fact]
|
34 | 27 | [Trait(Category.AcceptanceType, Category.CheckIn)]
|
35 | 28 | public void TestMergeReservation()
|
36 | 29 | {
|
37 |
| - TestController.NewInstance.RunPowerShellTest(_logger, "Test-MergeReservation"); |
| 30 | + TestRunner.RunTestScript("Test-MergeReservation"); |
38 | 31 | }
|
39 | 32 |
|
40 | 33 | [Fact]
|
41 | 34 | [Trait(Category.AcceptanceType, Category.CheckIn)]
|
42 | 35 | public void TestSplitReservation()
|
43 | 36 | {
|
44 |
| - TestController.NewInstance.RunPowerShellTest(_logger, "Test-SplitReservation"); |
| 37 | + TestRunner.RunTestScript("Test-SplitReservation"); |
45 | 38 | }
|
46 | 39 |
|
47 | 40 | [Fact]
|
48 | 41 | [Trait(Category.AcceptanceType, Category.CheckIn)]
|
49 | 42 | public void TestGetReservation()
|
50 | 43 | {
|
51 |
| - TestController.NewInstance.RunPowerShellTest(_logger, "Test-GetReservation"); |
| 44 | + TestRunner.RunTestScript("Test-GetReservation"); |
52 | 45 | }
|
53 | 46 |
|
54 | 47 | [Fact]
|
55 | 48 | [Trait(Category.AcceptanceType, Category.CheckIn)]
|
56 | 49 | public void TestUpdateReservationToSingle()
|
57 | 50 | {
|
58 |
| - TestController.NewInstance.RunPowerShellTest(_logger, "Test-UpdateReservationToSingle"); |
| 51 | + TestRunner.RunTestScript("Test-UpdateReservationToSingle"); |
59 | 52 | }
|
60 | 53 |
|
61 | 54 | [Fact]
|
62 | 55 | [Trait(Category.AcceptanceType, Category.CheckIn)]
|
63 | 56 | public void TestUpdateReservationToShared()
|
64 | 57 | {
|
65 |
| - TestController.NewInstance.RunPowerShellTest(_logger, "Test-UpdateReservationToShared"); |
| 58 | + TestRunner.RunTestScript("Test-UpdateReservationToShared"); |
66 | 59 | }
|
67 | 60 |
|
68 | 61 | [Fact]
|
69 | 62 | [Trait(Category.AcceptanceType, Category.CheckIn)]
|
70 | 63 | public void TestListReservations()
|
71 | 64 | {
|
72 |
| - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ListReservations"); |
| 65 | + TestRunner.RunTestScript("Test-ListReservations"); |
73 | 66 | }
|
74 | 67 |
|
75 | 68 | [Fact]
|
76 | 69 | [Trait(Category.AcceptanceType, Category.CheckIn)]
|
77 | 70 | public void TestListReservationHistory()
|
78 | 71 | {
|
79 |
| - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ListReservationHistory"); |
| 72 | + TestRunner.RunTestScript("Test-ListReservationHistory"); |
80 | 73 | }
|
81 | 74 |
|
82 | 75 | [Fact]
|
83 | 76 | [Trait(Category.AcceptanceType, Category.CheckIn)]
|
84 | 77 | public void TestGetReservationOrderId()
|
85 | 78 | {
|
86 |
| - TestController.NewInstance.RunPowerShellTest(_logger, "Test-GetReservationOrderId"); |
| 79 | + TestRunner.RunTestScript("Test-GetReservationOrderId"); |
87 | 80 | }
|
88 | 81 |
|
89 | 82 | [Fact]
|
90 | 83 | [Trait(Category.AcceptanceType, Category.CheckIn)]
|
91 | 84 | public void TestGetCatalog()
|
92 | 85 | {
|
93 |
| - TestController.NewInstance.RunPowerShellTest(_logger, "Test-GetCatalog"); |
| 86 | + TestRunner.RunTestScript("Test-GetCatalog"); |
94 | 87 | }
|
95 | 88 |
|
96 | 89 | [Fact]
|
97 | 90 | [Trait(Category.AcceptanceType, Category.CheckIn)]
|
98 | 91 | public void TestCalculatePrice()
|
99 | 92 | {
|
100 |
| - TestController.NewInstance.RunPowerShellTest(_logger, "Test-CalculatePrice"); |
| 93 | + TestRunner.RunTestScript("Test-CalculatePrice"); |
101 | 94 | }
|
102 | 95 |
|
103 | 96 | [Fact]
|
104 | 97 | [Trait(Category.AcceptanceType, Category.CheckIn)]
|
105 | 98 | public void TestPurchase()
|
106 | 99 | {
|
107 |
| - TestController.NewInstance.RunPowerShellTest(_logger, "Test-Purchase"); |
| 100 | + TestRunner.RunTestScript("Test-Purchase"); |
108 | 101 | }
|
109 | 102 | }
|
110 | 103 | }
|
0 commit comments