Skip to content

Commit 7bde817

Browse files
committed
Fixes for failed unit tests
1 parent 146ad4d commit 7bde817

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

SSLLWrapper/Domain/ResponsePopulation.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Net;
1+
using System;
2+
using System.Net;
23
using Newtonsoft.Json;
34
using SSLLWrapper.Models;
45
using SSLLWrapper.Models.Response;
@@ -18,6 +19,8 @@ public ResponsePopulation()
1819

1920
public Info InfoModel(WebResponseModel webResponse, Info infoModel)
2021
{
22+
if (webResponse.Payloay == null) { throw new Exception("webResponse payload is null. Unable to bind null."); }
23+
2124
infoModel = JsonConvert.DeserializeObject<Info>(webResponse.Payloay, JsonSerializerSettings);
2225
infoModel.Header = PopulateHeader(infoModel.Header, webResponse);
2326

SSLLWrapper/SSLLService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ internal SSLLService(string apiUrl, IApiProvider apiProvider)
6060

6161
public Info Info()
6262
{
63-
var infoModel = new Info();
63+
var infoModel = new Info() {};
6464
var requestModel = _requestModelFactory.NewInfoRequestModel(ApiUrl, "info");
6565

6666
try

0 commit comments

Comments
 (0)