12
12
// limitations under the License.
13
13
// ----------------------------------------------------------------------------------
14
14
15
- using Microsoft . Azure . Commands . ScenarioTest ;
16
- using Microsoft . Azure . Commands . Subscription . Test . ScenarioTests . ScenarioTest ;
17
- using Microsoft . Azure . ServiceManagement . Common . Models ;
15
+ using Microsoft . Azure . Commands . Subscription . Test . ScenarioTests ;
18
16
using Microsoft . WindowsAzure . Commands . ScenarioTest ;
19
17
using Xunit ;
20
18
@@ -24,50 +22,45 @@ namespace Subscription.Test.ScenarioTests
24
22
/// The following tests require four subscriptions to be created manually. This can be done by
25
23
/// calling New-AzureRmSubscription. At this time, this can only be done by EA customers.
26
24
/// </summary>
27
- public class SubscriptionTests
25
+ public class SubscriptionTests : SubscriptionTestRunner
28
26
{
29
- private XunitTracingInterceptor _logger ;
30
-
31
- public SubscriptionTests ( Xunit . Abstractions . ITestOutputHelper output )
27
+ public SubscriptionTests ( Xunit . Abstractions . ITestOutputHelper output ) : base ( output )
32
28
{
33
- _logger = new XunitTracingInterceptor ( output ) ;
34
- XunitTracingInterceptor . AddToContext ( _logger ) ;
35
- TestExecutionHelpers . SetUpSessionAndProfile ( ) ;
36
29
}
37
30
38
31
[ Fact ]
39
32
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
40
33
public void TestUpdateRenameSubscription ( )
41
34
{
42
- TestController . NewInstance . RunPowerShellTest ( _logger , "Test-UpdateRenameSubscription" ) ;
35
+ TestRunner . RunTestScript ( "Test-UpdateRenameSubscription" ) ;
43
36
}
44
37
45
38
[ Fact ]
46
39
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
47
40
public void TestUpdateCancelSubscription ( )
48
41
{
49
- TestController . NewInstance . RunPowerShellTest ( _logger , "Test-UpdateCancelSubscription" ) ;
42
+ TestRunner . RunTestScript ( "Test-UpdateCancelSubscription" ) ;
50
43
}
51
44
52
45
[ Fact ]
53
46
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
54
47
public void TestNewSubscriptionAlias ( )
55
48
{
56
- TestController . NewInstance . RunPowerShellTest ( _logger , "Test-NewSubscriptionAlias" ) ;
49
+ TestRunner . RunTestScript ( "Test-NewSubscriptionAlias" ) ;
57
50
}
58
51
59
52
[ Fact ]
60
53
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
61
54
public void TestGetSubscriptionAlias ( )
62
55
{
63
- TestController . NewInstance . RunPowerShellTest ( _logger , "Test-GetSubscriptionAlias" ) ;
56
+ TestRunner . RunTestScript ( "Test-GetSubscriptionAlias" ) ;
64
57
}
65
58
66
59
[ Fact ]
67
60
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
68
61
public void TestRemoveSubscriptionAlias ( )
69
62
{
70
- TestController . NewInstance . RunPowerShellTest ( _logger , "Test-RemoveSubscriptionAlias" ) ;
63
+ TestRunner . RunTestScript ( "Test-RemoveSubscriptionAlias" ) ;
71
64
}
72
65
}
73
66
}
0 commit comments