Skip to content

Commit

Permalink
feat: Add default value for BaseAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
VMelnalksnis committed Jun 16, 2022
1 parent d391cb7 commit e451c57
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ jobs:
--configuration Release
--no-build
env:
Nordigen__BaseAddress: https://ob.nordigen.com/
Nordigen__SecretId: ${{ secrets.NORDIGEN_SECRET_ID }}
Nordigen__SecretKey: ${{ secrets.NORDIGEN_SECRET_KEY }}

Expand Down
2 changes: 1 addition & 1 deletion source/VMelnalksnis.NordigenDotNet/NordigenOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public sealed record NordigenOptions

/// <summary>Gets the base address of the Nordigen API.</summary>
[Required]
public Uri BaseAddress { get; init; } = null!;
public Uri BaseAddress { get; init; } = new("https://ob.nordigen.com/");

/// <summary>Gets the secret ID used to create new access tokens.</summary>
[Required]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ public void AddNordigenDotNet_ShouldRegisterRequiredServices()
var configuration = new ConfigurationBuilder()
.AddInMemoryCollection(new List<KeyValuePair<string, string>>
{
new($"{NordigenOptions.SectionName}:{nameof(NordigenOptions.BaseAddress)}", "https://ob.nordigen.com/"),
new($"{NordigenOptions.SectionName}:{nameof(NordigenOptions.SecretId)}", $"{Guid.NewGuid():D}"),
new($"{NordigenOptions.SectionName}:{nameof(NordigenOptions.SecretKey)}", $"{Guid.NewGuid():N}"),
})
Expand Down

0 comments on commit e451c57

Please sign in to comment.