From 50137b5ac6b232eab8beae26c5fb82e5d5dc6638 Mon Sep 17 00:00:00 2001 From: andy Date: Thu, 30 Dec 2021 22:47:39 +0000 Subject: [PATCH] setting default json serialiser back to newtonsoft --- SpotifyAPI.Web.Tests/Clients/SpotifyClientConfigTest.cs | 4 ++-- SpotifyAPI.Web/Clients/SpotifyClientConfig.cs | 2 +- SpotifyAPI.Web/Http/APIConnector.cs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SpotifyAPI.Web.Tests/Clients/SpotifyClientConfigTest.cs b/SpotifyAPI.Web.Tests/Clients/SpotifyClientConfigTest.cs index 2d30b967..8560ae31 100644 --- a/SpotifyAPI.Web.Tests/Clients/SpotifyClientConfigTest.cs +++ b/SpotifyAPI.Web.Tests/Clients/SpotifyClientConfigTest.cs @@ -15,7 +15,7 @@ namespace SpotifyAPI.Web Assert.IsInstanceOf(typeof(SimplePaginator), defaultConfig.DefaultPaginator); Assert.IsInstanceOf(typeof(NetHttpClient), defaultConfig.HTTPClient); - Assert.IsInstanceOf(typeof(TextJsonSerializer), defaultConfig.JSONSerializer); + Assert.IsInstanceOf(typeof(NewtonsoftJSONSerializer), defaultConfig.JSONSerializer); Assert.AreEqual(SpotifyUrls.APIV1, defaultConfig.BaseAddress); Assert.AreEqual(null, defaultConfig.Authenticator); Assert.AreEqual(null, defaultConfig.HTTPLogger); @@ -32,7 +32,7 @@ namespace SpotifyAPI.Web Assert.IsInstanceOf(typeof(SimplePaginator), defaultConfig.DefaultPaginator); Assert.IsInstanceOf(typeof(NetHttpClient), defaultConfig.HTTPClient); - Assert.IsInstanceOf(typeof(TextJsonSerializer), defaultConfig.JSONSerializer); + Assert.IsInstanceOf(typeof(NewtonsoftJSONSerializer), defaultConfig.JSONSerializer); Assert.AreEqual(SpotifyUrls.APIV1, defaultConfig.BaseAddress); Assert.AreEqual(null, defaultConfig.HTTPLogger); Assert.AreEqual(null, defaultConfig.RetryHandler); diff --git a/SpotifyAPI.Web/Clients/SpotifyClientConfig.cs b/SpotifyAPI.Web/Clients/SpotifyClientConfig.cs index de00eb09..56a419cd 100644 --- a/SpotifyAPI.Web/Clients/SpotifyClientConfig.cs +++ b/SpotifyAPI.Web/Clients/SpotifyClientConfig.cs @@ -187,7 +187,7 @@ namespace SpotifyAPI.Web return new SpotifyClientConfig( SpotifyUrls.APIV1, null, - new TextJsonSerializer(), + new NewtonsoftJSONSerializer(), new NetHttpClient(), null, null, diff --git a/SpotifyAPI.Web/Http/APIConnector.cs b/SpotifyAPI.Web/Http/APIConnector.cs index 12725524..c6945201 100644 --- a/SpotifyAPI.Web/Http/APIConnector.cs +++ b/SpotifyAPI.Web/Http/APIConnector.cs @@ -18,7 +18,7 @@ namespace SpotifyAPI.Web.Http public event EventHandler? ResponseReceived; public APIConnector(Uri baseAddress, IAuthenticator authenticator) : - this(baseAddress, authenticator, new TextJsonSerializer(), new NetHttpClient(), null, null) + this(baseAddress, authenticator, new NewtonsoftJSONSerializer(), new NetHttpClient(), null, null) { } public APIConnector( Uri baseAddress,