Skip to content

Commit

Permalink
Fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
viceroypenguin committed Nov 14, 2024
1 parent 4b4eb85 commit dfbf467
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions tests/Plaid.Tests/ProcessorWebhookConverterTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Text.Json;
using System.Text.Json;
using Going.Plaid.Converters;
using Going.Plaid.Entity;
using Going.Plaid.Webhook;
Expand All @@ -8,7 +8,7 @@ namespace Going.Plaid.Tests;

public class ProcessorWebhookConverterTests
{
private static readonly JsonSerializerOptions Options = new()
private static readonly JsonSerializerOptions s_options = new()
{
Converters =
{
Expand All @@ -24,7 +24,7 @@ public void ParseValidWebhook()
{"webhook_type":"Transactions","webhook_code":"InitialUpdate","new_transactions":0,"account_id":"","environment":"sandbox"}
""";

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

var payload = JsonSerializer.Deserialize<ProcessorWebhookBase>(InvalidJson, Options);
var payload = JsonSerializer.Deserialize<ProcessorWebhookBase>(InvalidJson, s_options);
_ = Assert.IsType<ProcessorUndefinedWebhook>(payload);
Assert.Equal(ProcessorWebhookType.Transactions, payload.WebhookType);
Assert.Equal(ProcessorWebhookCode.Undefined, payload.WebhookCode);
Expand Down
8 changes: 4 additions & 4 deletions tests/Plaid.Tests/WebhookConverterTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Text.Json;
using System.Text.Json;
using Going.Plaid.Converters;
using Going.Plaid.Entity;
using Going.Plaid.Webhook;
Expand All @@ -8,7 +8,7 @@ namespace Going.Plaid.Tests;

public class WebhookConverterTests
{
private static readonly JsonSerializerOptions Options = new()
private static readonly JsonSerializerOptions s_options = new()
{
Converters =
{
Expand All @@ -24,7 +24,7 @@ public void ParseValidWebhook()
{"webhook_type":"Assets","webhook_code":"ProductReady","asset_report_id":null,"report_type":null,"environment":"sandbox"}
""";

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

var payload = JsonSerializer.Deserialize<WebhookBase>(InvalidJson, Options);
var payload = JsonSerializer.Deserialize<WebhookBase>(InvalidJson, s_options);
_ = Assert.IsType<UndefinedWebhook>(payload);
Assert.Equal(WebhookType.Assets, payload.WebhookType);
Assert.Equal(WebhookCode.Undefined, payload.WebhookCode);
Expand Down

0 comments on commit dfbf467

Please sign in to comment.