17
17
18
18
namespace Microsoft . Azure . Commands . CosmosDB . Test . ScenarioTests . ScenarioTest
19
19
{
20
- public class AccountTests
20
+ public class AccountTests : CosmosDBTestRunner
21
21
{
22
- private ServiceManagement . Common . Models . XunitTracingInterceptor _logger ;
23
-
24
- public AccountTests ( Xunit . Abstractions . ITestOutputHelper output )
22
+ public AccountTests ( Xunit . Abstractions . ITestOutputHelper output ) : base ( output )
25
23
{
26
- _logger = new ServiceManagement . Common . Models . XunitTracingInterceptor ( output ) ;
27
- ServiceManagement . Common . Models . XunitTracingInterceptor . AddToContext ( _logger ) ;
28
24
}
29
25
30
26
[ Fact ]
31
27
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
32
28
public void TestAccountRelatedCmdlets ( )
33
29
{
34
- TestController . NewInstance . RunPowerShellTest ( _logger , "Test-AccountRelatedCmdlets" ) ;
30
+ TestRunner . RunTestScript ( "Test-AccountRelatedCmdlets" ) ;
35
31
}
36
32
37
33
[ Fact ]
38
34
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
39
35
public void TestAccountRelatedCmdletsUsingRid ( )
40
36
{
41
- TestController . NewInstance . RunPowerShellTest ( _logger , "Test-AccountRelatedCmdletsUsingRid" ) ;
37
+ TestRunner . RunTestScript ( "Test-AccountRelatedCmdletsUsingRid" ) ;
42
38
}
43
39
44
40
[ Fact ]
45
41
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
46
42
public void TestAccountRelatedCmdletsUsingObject ( )
47
43
{
48
- TestController . NewInstance . RunPowerShellTest ( _logger , "Test-AccountRelatedCmdletsUsingObject" ) ;
44
+ TestRunner . RunTestScript ( "Test-AccountRelatedCmdletsUsingObject" ) ;
49
45
}
50
46
51
47
[ Fact ]
52
48
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
53
49
public void TestAddRegionOperation ( )
54
50
{
55
- TestController . NewInstance . RunPowerShellTest ( _logger , "Test-AddRegionOperation" ) ;
51
+ TestRunner . RunTestScript ( "Test-AddRegionOperation" ) ;
56
52
}
57
53
58
54
[ Fact ]
59
55
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
60
56
public void TestPrivateEndpoint ( )
61
57
{
62
- TestController . NewInstance . RunPowerShellTest ( _logger , "Test-PrivateEndpoint" ) ;
58
+ TestRunner . RunTestScript ( "Test-PrivateEndpoint" ) ;
63
59
}
64
60
65
61
[ Fact ]
66
62
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
67
63
public void TestAnalyticalStorageSchemaTypeNewAccount ( )
68
64
{
69
- TestController . NewInstance . RunPowerShellTest ( _logger , "Test-AnalyticalStorageSchemaTypeNewAccount" ) ;
65
+ TestRunner . RunTestScript ( "Test-AnalyticalStorageSchemaTypeNewAccount" ) ;
70
66
}
71
67
72
68
[ Fact ]
73
69
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
74
70
public void TestAnalyticalStorageSchemaTypeUpdateAccount ( )
75
71
{
76
- TestController . NewInstance . RunPowerShellTest ( _logger , "Test-AnalyticalStorageSchemaTypeUpdateAccount" ) ;
72
+ TestRunner . RunTestScript ( "Test-AnalyticalStorageSchemaTypeUpdateAccount" ) ;
77
73
}
78
74
79
75
[ Fact ]
80
76
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
81
77
public void TestCosmosDBLocations ( )
82
78
{
83
- TestController . NewInstance . RunPowerShellTest ( _logger , "Test-CosmosDBLocations" ) ;
79
+ TestRunner . RunTestScript ( "Test-CosmosDBLocations" ) ;
84
80
}
85
81
}
86
82
}
0 commit comments