Skip to content

Commit dfbf467

Browse files
Fix build issue
1 parent 4b4eb85 commit dfbf467

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

tests/Plaid.Tests/ProcessorWebhookConverterTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.Text.Json;
1+
using System.Text.Json;
22
using Going.Plaid.Converters;
33
using Going.Plaid.Entity;
44
using Going.Plaid.Webhook;
@@ -8,7 +8,7 @@ namespace Going.Plaid.Tests;
88

99
public class ProcessorWebhookConverterTests
1010
{
11-
private static readonly JsonSerializerOptions Options = new()
11+
private static readonly JsonSerializerOptions s_options = new()
1212
{
1313
Converters =
1414
{
@@ -24,7 +24,7 @@ public void ParseValidWebhook()
2424
{"webhook_type":"Transactions","webhook_code":"InitialUpdate","new_transactions":0,"account_id":"","environment":"sandbox"}
2525
""";
2626

27-
var payload = JsonSerializer.Deserialize<ProcessorWebhookBase>(ValidJson, Options);
27+
var payload = JsonSerializer.Deserialize<ProcessorWebhookBase>(ValidJson, s_options);
2828
_ = Assert.IsType<ProcessorInitialUpdateWebhook>(payload);
2929
Assert.Equal(ValidJson, payload.RawJson);
3030
}
@@ -36,7 +36,7 @@ public void ParseUnknownWebhook()
3636
{"webhook_type":"Transactions","webhook_code":"Unknown","asset_report_id":null,"report_type":null,"environment":"sandbox"}
3737
""";
3838

39-
var payload = JsonSerializer.Deserialize<ProcessorWebhookBase>(InvalidJson, Options);
39+
var payload = JsonSerializer.Deserialize<ProcessorWebhookBase>(InvalidJson, s_options);
4040
_ = Assert.IsType<ProcessorUndefinedWebhook>(payload);
4141
Assert.Equal(ProcessorWebhookType.Transactions, payload.WebhookType);
4242
Assert.Equal(ProcessorWebhookCode.Undefined, payload.WebhookCode);

tests/Plaid.Tests/WebhookConverterTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.Text.Json;
1+
using System.Text.Json;
22
using Going.Plaid.Converters;
33
using Going.Plaid.Entity;
44
using Going.Plaid.Webhook;
@@ -8,7 +8,7 @@ namespace Going.Plaid.Tests;
88

99
public class WebhookConverterTests
1010
{
11-
private static readonly JsonSerializerOptions Options = new()
11+
private static readonly JsonSerializerOptions s_options = new()
1212
{
1313
Converters =
1414
{
@@ -24,7 +24,7 @@ public void ParseValidWebhook()
2424
{"webhook_type":"Assets","webhook_code":"ProductReady","asset_report_id":null,"report_type":null,"environment":"sandbox"}
2525
""";
2626

27-
var payload = JsonSerializer.Deserialize<WebhookBase>(ValidJson, Options);
27+
var payload = JsonSerializer.Deserialize<WebhookBase>(ValidJson, s_options);
2828
_ = Assert.IsType<AssetsProductReadyWebhook>(payload);
2929
Assert.Equal(ValidJson, payload.RawJson);
3030
}
@@ -36,7 +36,7 @@ public void ParseUnknownWebhook()
3636
{"webhook_type":"Assets","webhook_code":"ProductTesting","asset_report_id":null,"report_type":null,"environment":"sandbox"}
3737
""";
3838

39-
var payload = JsonSerializer.Deserialize<WebhookBase>(InvalidJson, Options);
39+
var payload = JsonSerializer.Deserialize<WebhookBase>(InvalidJson, s_options);
4040
_ = Assert.IsType<UndefinedWebhook>(payload);
4141
Assert.Equal(WebhookType.Assets, payload.WebhookType);
4242
Assert.Equal(WebhookCode.Undefined, payload.WebhookCode);

0 commit comments

Comments
 (0)