1
- using System . Text . Json ;
1
+ using System . Text . Json ;
2
2
using Going . Plaid . Converters ;
3
3
using Going . Plaid . Entity ;
4
4
using Going . Plaid . Webhook ;
@@ -8,7 +8,7 @@ namespace Going.Plaid.Tests;
8
8
9
9
public class ProcessorWebhookConverterTests
10
10
{
11
- private static readonly JsonSerializerOptions Options = new ( )
11
+ private static readonly JsonSerializerOptions s_options = new ( )
12
12
{
13
13
Converters =
14
14
{
@@ -24,7 +24,7 @@ public void ParseValidWebhook()
24
24
{"webhook_type":"Transactions","webhook_code":"InitialUpdate","new_transactions":0,"account_id":"","environment":"sandbox"}
25
25
""" ;
26
26
27
- var payload = JsonSerializer . Deserialize < ProcessorWebhookBase > ( ValidJson , Options ) ;
27
+ var payload = JsonSerializer . Deserialize < ProcessorWebhookBase > ( ValidJson , s_options ) ;
28
28
_ = Assert . IsType < ProcessorInitialUpdateWebhook > ( payload ) ;
29
29
Assert . Equal ( ValidJson , payload . RawJson ) ;
30
30
}
@@ -36,7 +36,7 @@ public void ParseUnknownWebhook()
36
36
{"webhook_type":"Transactions","webhook_code":"Unknown","asset_report_id":null,"report_type":null,"environment":"sandbox"}
37
37
""" ;
38
38
39
- var payload = JsonSerializer . Deserialize < ProcessorWebhookBase > ( InvalidJson , Options ) ;
39
+ var payload = JsonSerializer . Deserialize < ProcessorWebhookBase > ( InvalidJson , s_options ) ;
40
40
_ = Assert . IsType < ProcessorUndefinedWebhook > ( payload ) ;
41
41
Assert . Equal ( ProcessorWebhookType . Transactions , payload . WebhookType ) ;
42
42
Assert . Equal ( ProcessorWebhookCode . Undefined , payload . WebhookCode ) ;
0 commit comments