diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2021-04-04 17:33:08 +0200 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2021-04-04 17:33:08 +0200 |
| commit | 010aef0cbb5b3171697b35f4b849d1ff31a1e848 (patch) | |
| tree | 4e3f6c9c71e6ea86f5df591ab3d216b137dfe41c /src/IOL.VippsEcommerce.Tests/Helpers.cs | |
| parent | 5c5ba05c49ff3bacfc5a29b21e3d9683e6396ad5 (diff) | |
| download | dotnet-vipps-ecommerce-010aef0cbb5b3171697b35f4b849d1ff31a1e848.tar.xz dotnet-vipps-ecommerce-010aef0cbb5b3171697b35f4b849d1ff31a1e848.zip | |
add configuration file
Diffstat (limited to 'src/IOL.VippsEcommerce.Tests/Helpers.cs')
| -rw-r--r-- | src/IOL.VippsEcommerce.Tests/Helpers.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/IOL.VippsEcommerce.Tests/Helpers.cs b/src/IOL.VippsEcommerce.Tests/Helpers.cs index 9f89c1a..0553027 100644 --- a/src/IOL.VippsEcommerce.Tests/Helpers.cs +++ b/src/IOL.VippsEcommerce.Tests/Helpers.cs @@ -1,4 +1,6 @@ using System; +using System.Net; +using System.Text.Json; using IOL.VippsEcommerce.Models; using Microsoft.Extensions.DependencyInjection; using Xunit.Sdk; @@ -18,5 +20,11 @@ namespace IOL.VippsEcommerce.Tests return vippsEcommerceService; } + + public static VippsConfiguration GetVippsValidConfiguration() { + var json = System.IO.File.ReadAllText("configuration.json"); + var configuration = JsonSerializer.Deserialize<VippsConfiguration>(json); + return configuration; + } } }
\ No newline at end of file |
