1212// limitations under the License.
1313// ----------------------------------------------------------------------------------
1414
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 ;
1816using Microsoft . WindowsAzure . Commands . ScenarioTest ;
1917using Xunit ;
2018
@@ -24,50 +22,45 @@ namespace Subscription.Test.ScenarioTests
2422 /// The following tests require four subscriptions to be created manually. This can be done by
2523 /// calling New-AzureRmSubscription. At this time, this can only be done by EA customers.
2624 /// </summary>
27- public class SubscriptionTests
25+ public class SubscriptionTests : SubscriptionTestRunner
2826 {
29- private XunitTracingInterceptor _logger ;
30-
31- public SubscriptionTests ( Xunit . Abstractions . ITestOutputHelper output )
27+ public SubscriptionTests ( Xunit . Abstractions . ITestOutputHelper output ) : base ( output )
3228 {
33- _logger = new XunitTracingInterceptor ( output ) ;
34- XunitTracingInterceptor . AddToContext ( _logger ) ;
35- TestExecutionHelpers . SetUpSessionAndProfile ( ) ;
3629 }
3730
3831 [ Fact ]
3932 [ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
4033 public void TestUpdateRenameSubscription ( )
4134 {
42- TestController . NewInstance . RunPowerShellTest ( _logger , "Test-UpdateRenameSubscription" ) ;
35+ TestRunner . RunTestScript ( "Test-UpdateRenameSubscription" ) ;
4336 }
4437
4538 [ Fact ]
4639 [ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
4740 public void TestUpdateCancelSubscription ( )
4841 {
49- TestController . NewInstance . RunPowerShellTest ( _logger , "Test-UpdateCancelSubscription" ) ;
42+ TestRunner . RunTestScript ( "Test-UpdateCancelSubscription" ) ;
5043 }
5144
5245 [ Fact ]
5346 [ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
5447 public void TestNewSubscriptionAlias ( )
5548 {
56- TestController . NewInstance . RunPowerShellTest ( _logger , "Test-NewSubscriptionAlias" ) ;
49+ TestRunner . RunTestScript ( "Test-NewSubscriptionAlias" ) ;
5750 }
5851
5952 [ Fact ]
6053 [ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
6154 public void TestGetSubscriptionAlias ( )
6255 {
63- TestController . NewInstance . RunPowerShellTest ( _logger , "Test-GetSubscriptionAlias" ) ;
56+ TestRunner . RunTestScript ( "Test-GetSubscriptionAlias" ) ;
6457 }
6558
6659 [ Fact ]
6760 [ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
6861 public void TestRemoveSubscriptionAlias ( )
6962 {
70- TestController . NewInstance . RunPowerShellTest ( _logger , "Test-RemoveSubscriptionAlias" ) ;
63+ TestRunner . RunTestScript ( "Test-RemoveSubscriptionAlias" ) ;
7164 }
7265 }
7366}
0 commit comments