@@ -8,15 +8,16 @@ public class AlertServiceTest : TestBase
88 [ Fact ]
99 public async Task Retrieve_Works ( )
1010 {
11- var alert = await this . client . Alerts . Retrieve ( new ( ) { AlertID = "alert_id" } ) ;
11+ var alert = await this . client . Alerts . Retrieve ( "alert_id" ) ;
1212 alert . Validate ( ) ;
1313 }
1414
1515 [ Fact ]
1616 public async Task Update_Works ( )
1717 {
1818 var alert = await this . client . Alerts . Update (
19- new ( ) { AlertConfigurationID = "alert_configuration_id" , Thresholds = [ new ( 0 ) ] }
19+ "alert_configuration_id" ,
20+ new ( ) { Thresholds = [ new ( 0 ) ] }
2021 ) ;
2122 alert . Validate ( ) ;
2223 }
@@ -32,12 +33,8 @@ public async Task List_Works()
3233 public async Task CreateForCustomer_Works ( )
3334 {
3435 var alert = await this . client . Alerts . CreateForCustomer (
35- new ( )
36- {
37- CustomerID = "customer_id" ,
38- Currency = "currency" ,
39- Type = Type . CreditBalanceDepleted ,
40- }
36+ "customer_id" ,
37+ new ( ) { Currency = "currency" , Type = Type . CreditBalanceDepleted }
4138 ) ;
4239 alert . Validate ( ) ;
4340 }
@@ -46,12 +43,8 @@ public async Task CreateForCustomer_Works()
4643 public async Task CreateForExternalCustomer_Works ( )
4744 {
4845 var alert = await this . client . Alerts . CreateForExternalCustomer (
49- new ( )
50- {
51- ExternalCustomerID = "external_customer_id" ,
52- Currency = "currency" ,
53- Type = TypeModel . CreditBalanceDepleted ,
54- }
46+ "external_customer_id" ,
47+ new ( ) { Currency = "currency" , Type = TypeModel . CreditBalanceDepleted }
5548 ) ;
5649 alert . Validate ( ) ;
5750 }
@@ -60,31 +53,23 @@ public async Task CreateForExternalCustomer_Works()
6053 public async Task CreateForSubscription_Works ( )
6154 {
6255 var alert = await this . client . Alerts . CreateForSubscription (
63- new ( )
64- {
65- SubscriptionID = "subscription_id" ,
66- Thresholds = [ new ( 0 ) ] ,
67- Type = Type1 . UsageExceeded ,
68- }
56+ "subscription_id" ,
57+ new ( ) { Thresholds = [ new ( 0 ) ] , Type = Type1 . UsageExceeded }
6958 ) ;
7059 alert . Validate ( ) ;
7160 }
7261
7362 [ Fact ]
7463 public async Task Disable_Works ( )
7564 {
76- var alert = await this . client . Alerts . Disable (
77- new ( ) { AlertConfigurationID = "alert_configuration_id" }
78- ) ;
65+ var alert = await this . client . Alerts . Disable ( "alert_configuration_id" ) ;
7966 alert . Validate ( ) ;
8067 }
8168
8269 [ Fact ]
8370 public async Task Enable_Works ( )
8471 {
85- var alert = await this . client . Alerts . Enable (
86- new ( ) { AlertConfigurationID = "alert_configuration_id" }
87- ) ;
72+ var alert = await this . client . Alerts . Enable ( "alert_configuration_id" ) ;
8873 alert . Validate ( ) ;
8974 }
9075}
0 commit comments