14
14
15
15
namespace Microsoft . Azure . Commands . Peering . Test . ScenarioTests
16
16
{
17
- using Microsoft . Azure . ServiceManagement . Common . Models ;
18
17
using Microsoft . WindowsAzure . Commands . ScenarioTest ;
19
18
20
19
using Xunit ;
@@ -23,23 +22,16 @@ namespace Microsoft.Azure.Commands.Peering.Test.ScenarioTests
23
22
/// <summary>
24
23
/// The create new direct connection tests.
25
24
/// </summary>
26
- public class CreateNewDirectConnectionTests
25
+ public class CreateNewDirectConnectionTests : PeeringTestRunner
27
26
{
28
- /// <summary>
29
- /// The logger.
30
- /// </summary>
31
- private XunitTracingInterceptor logger ;
32
-
33
27
/// <summary>
34
28
/// Initializes a new instance of the <see cref="CreateNewDirectConnectionTests"/> class.
35
29
/// </summary>
36
30
/// <param name="output">
37
31
/// The output.
38
32
/// </param>
39
- public CreateNewDirectConnectionTests ( ITestOutputHelper output )
33
+ public CreateNewDirectConnectionTests ( ITestOutputHelper output ) : base ( output )
40
34
{
41
- this . logger = new XunitTracingInterceptor ( output ) ;
42
- XunitTracingInterceptor . AddToContext ( this . logger ) ;
43
35
}
44
36
45
37
/// <summary>
@@ -49,7 +41,7 @@ public CreateNewDirectConnectionTests(ITestOutputHelper output)
49
41
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
50
42
public void TestNewDirectConnectionHighBandwidth ( )
51
43
{
52
- TestController . NewInstance . RunPowerShellTest ( this . logger , "Test-NewDirectConnectionHighBandwidth" ) ;
44
+ TestRunner . RunTestScript ( "Test-NewDirectConnectionHighBandwidth" ) ;
53
45
}
54
46
55
47
/// <summary>
@@ -59,7 +51,7 @@ public void TestNewDirectConnectionHighBandwidth()
59
51
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
60
52
public void TestNewDirectConnectionLowBandwidth ( )
61
53
{
62
- TestController . NewInstance . RunPowerShellTest ( this . logger , "Test-NewDirectConnectionLowBandwidth" ) ;
54
+ TestRunner . RunTestScript ( "Test-NewDirectConnectionLowBandwidth" ) ;
63
55
}
64
56
65
57
/// <summary>
@@ -69,7 +61,7 @@ public void TestNewDirectConnectionLowBandwidth()
69
61
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
70
62
public void TestNewDirectConnectionNoSession ( )
71
63
{
72
- TestController . NewInstance . RunPowerShellTest ( this . logger , "Test-NewDirectConnectionNoSession" ) ;
64
+ TestRunner . RunTestScript ( "Test-NewDirectConnectionNoSession" ) ;
73
65
}
74
66
75
67
/// <summary>
@@ -79,7 +71,7 @@ public void TestNewDirectConnectionNoSession()
79
71
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
80
72
public void TestNewDirectConnectionWithV4 ( )
81
73
{
82
- TestController . NewInstance . RunPowerShellTest ( this . logger , "Test-NewDirectConnectionWithV4" ) ;
74
+ TestRunner . RunTestScript ( "Test-NewDirectConnectionWithV4" ) ;
83
75
}
84
76
85
77
/// <summary>
@@ -89,7 +81,7 @@ public void TestNewDirectConnectionWithV4()
89
81
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
90
82
public void TestNewDirectConnectionWithV4V6 ( )
91
83
{
92
- TestController . NewInstance . RunPowerShellTest ( this . logger , "Test-NewDirectConnectionWithV4V6" ) ;
84
+ TestRunner . RunTestScript ( "Test-NewDirectConnectionWithV4V6" ) ;
93
85
}
94
86
95
87
/// <summary>
@@ -99,7 +91,7 @@ public void TestNewDirectConnectionWithV4V6()
99
91
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
100
92
public void TestNewDirectConnectionWithV6 ( )
101
93
{
102
- TestController . NewInstance . RunPowerShellTest ( this . logger , "Test-NewDirectConnectionWithV6" ) ;
94
+ TestRunner . RunTestScript ( "Test-NewDirectConnectionWithV6" ) ;
103
95
}
104
96
105
97
/// <summary>
@@ -109,7 +101,7 @@ public void TestNewDirectConnectionWithV6()
109
101
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
110
102
public void TestNewDirectConnectionWrongV4 ( )
111
103
{
112
- TestController . NewInstance . RunPowerShellTest ( this . logger , "Test-NewDirectConnectionWrongV4" ) ;
104
+ TestRunner . RunTestScript ( "Test-NewDirectConnectionWrongV4" ) ;
113
105
}
114
106
115
107
/// <summary>
@@ -119,7 +111,7 @@ public void TestNewDirectConnectionWrongV4()
119
111
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
120
112
public void TestNewDirectConnectionWrongV6 ( )
121
113
{
122
- TestController . NewInstance . RunPowerShellTest ( this . logger , "Test-NewDirectConnectionWrongV6" ) ;
114
+ TestRunner . RunTestScript ( "Test-NewDirectConnectionWrongV6" ) ;
123
115
}
124
116
125
117
/// <summary>
@@ -129,7 +121,7 @@ public void TestNewDirectConnectionWrongV6()
129
121
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
130
122
public void TestNewDirectConnectionWithMicrosoftSession ( )
131
123
{
132
- TestController . NewInstance . RunPowerShellTest ( this . logger , "Test-NewDirectConnectionWithMicrosoftSession" ) ;
124
+ TestRunner . RunTestScript ( "Test-NewDirectConnectionWithMicrosoftSession" ) ;
133
125
}
134
126
135
127
/// <summary>
@@ -139,7 +131,7 @@ public void TestNewDirectConnectionWithMicrosoftSession()
139
131
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
140
132
public void TestNewDirectConnectionWithMicrosoftSessionWithPeeringService ( )
141
133
{
142
- TestController . NewInstance . RunPowerShellTest ( this . logger , "Test-NewDirectConnectionWithMicrosoftSessionWithPeeringService" ) ;
134
+ TestRunner . RunTestScript ( "Test-NewDirectConnectionWithMicrosoftSessionWithPeeringService" ) ;
143
135
}
144
136
145
137
/// <summary>
@@ -149,7 +141,7 @@ public void TestNewDirectConnectionWithMicrosoftSessionWithPeeringService()
149
141
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
150
142
public void TestNewDirectConnectionWithMicrosoftSessionInvalidV4 ( )
151
143
{
152
- TestController . NewInstance . RunPowerShellTest ( this . logger , "Test-NewDirectConnectionWithMicrosoftSessionInvalidV4" ) ;
144
+ TestRunner . RunTestScript ( "Test-NewDirectConnectionWithMicrosoftSessionInvalidV4" ) ;
153
145
}
154
146
155
147
/// <summary>
@@ -159,7 +151,7 @@ public void TestNewDirectConnectionWithMicrosoftSessionInvalidV4()
159
151
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
160
152
public void TestNewDirectConnectionWithMicrosoftSessionInvalidV6 ( )
161
153
{
162
- TestController . NewInstance . RunPowerShellTest ( this . logger , "Test-NewDirectConnectionWithMicrosoftSessionInvalidV6" ) ;
154
+ TestRunner . RunTestScript ( "Test-NewDirectConnectionWithMicrosoftSessionInvalidV6" ) ;
163
155
}
164
156
165
157
/// <summary>
@@ -169,7 +161,7 @@ public void TestNewDirectConnectionWithMicrosoftSessionInvalidV6()
169
161
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
170
162
public void TestNewDirectConnectionWithNoPeeringFacility ( )
171
163
{
172
- TestController . NewInstance . RunPowerShellTest ( this . logger , "Test-NewDirectConnectionWithNoPeeringFacility" ) ;
164
+ TestRunner . RunTestScript ( "Test-NewDirectConnectionWithNoPeeringFacility" ) ;
173
165
}
174
166
175
167
/// <summary>
@@ -179,7 +171,7 @@ public void TestNewDirectConnectionWithNoPeeringFacility()
179
171
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
180
172
public void TestNewDirectConnectionWithNoBgpSession ( )
181
173
{
182
- TestController . NewInstance . RunPowerShellTest ( this . logger , "Test-NewDirectConnectionWithNoBgpSession" ) ;
174
+ TestRunner . RunTestScript ( "Test-NewDirectConnectionWithNoBgpSession" ) ;
183
175
}
184
176
185
177
/// <summary>
@@ -189,7 +181,7 @@ public void TestNewDirectConnectionWithNoBgpSession()
189
181
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
190
182
public void TestNewDirectConnectionWithMicrosoftIpProvidedAddress ( )
191
183
{
192
- TestController . NewInstance . RunPowerShellTest ( this . logger , "Test-NewDirectConnectionWithMicrosoftIpProvidedAddress" ) ;
184
+ TestRunner . RunTestScript ( "Test-NewDirectConnectionWithMicrosoftIpProvidedAddress" ) ;
193
185
}
194
186
}
195
187
}
0 commit comments