@@ -8,7 +8,11 @@ public class AlertServiceTest : TestBase
88 [ Fact ]
99 public async Task Retrieve_Works ( )
1010 {
11- var alert = await this . client . Alerts . Retrieve ( "alert_id" ) ;
11+ var alert = await this . client . Alerts . Retrieve (
12+ "alert_id" ,
13+ new ( ) ,
14+ TestContext . Current . CancellationToken
15+ ) ;
1216 alert . Validate ( ) ;
1317 }
1418
@@ -17,15 +21,16 @@ public async Task Update_Works()
1721 {
1822 var alert = await this . client . Alerts . Update (
1923 "alert_configuration_id" ,
20- new ( ) { Thresholds = [ new ( 0 ) ] }
24+ new ( ) { Thresholds = [ new ( 0 ) ] } ,
25+ TestContext . Current . CancellationToken
2126 ) ;
2227 alert . Validate ( ) ;
2328 }
2429
2530 [ Fact ( Skip = "plan_version=0 breaks Prism" ) ]
2631 public async Task List_Works ( )
2732 {
28- var page = await this . client . Alerts . List ( ) ;
33+ var page = await this . client . Alerts . List ( new ( ) , TestContext . Current . CancellationToken ) ;
2934 page . Validate ( ) ;
3035 }
3136
@@ -34,7 +39,8 @@ public async Task CreateForCustomer_Works()
3439 {
3540 var alert = await this . client . Alerts . CreateForCustomer (
3641 "customer_id" ,
37- new ( ) { Currency = "currency" , Type = Type . CreditBalanceDepleted }
42+ new ( ) { Currency = "currency" , Type = Type . CreditBalanceDepleted } ,
43+ TestContext . Current . CancellationToken
3844 ) ;
3945 alert . Validate ( ) ;
4046 }
@@ -48,7 +54,8 @@ public async Task CreateForExternalCustomer_Works()
4854 {
4955 Currency = "currency" ,
5056 Type = AlertCreateForExternalCustomerParamsType . CreditBalanceDepleted ,
51- }
57+ } ,
58+ TestContext . Current . CancellationToken
5259 ) ;
5360 alert . Validate ( ) ;
5461 }
@@ -62,22 +69,31 @@ public async Task CreateForSubscription_Works()
6269 {
6370 Thresholds = [ new ( 0 ) ] ,
6471 Type = AlertCreateForSubscriptionParamsType . UsageExceeded ,
65- }
72+ } ,
73+ TestContext . Current . CancellationToken
6674 ) ;
6775 alert . Validate ( ) ;
6876 }
6977
7078 [ Fact ]
7179 public async Task Disable_Works ( )
7280 {
73- var alert = await this . client . Alerts . Disable ( "alert_configuration_id" ) ;
81+ var alert = await this . client . Alerts . Disable (
82+ "alert_configuration_id" ,
83+ new ( ) ,
84+ TestContext . Current . CancellationToken
85+ ) ;
7486 alert . Validate ( ) ;
7587 }
7688
7789 [ Fact ]
7890 public async Task Enable_Works ( )
7991 {
80- var alert = await this . client . Alerts . Enable ( "alert_configuration_id" ) ;
92+ var alert = await this . client . Alerts . Enable (
93+ "alert_configuration_id" ,
94+ new ( ) ,
95+ TestContext . Current . CancellationToken
96+ ) ;
8197 alert . Validate ( ) ;
8298 }
8399}
0 commit comments