@@ -53,7 +53,7 @@ internal SSLLService(string apiUrl, IApiProvider apiProvider)
53
53
_requestModelFactory = new RequestModelFactory ( ) ;
54
54
_urlValidation = new UrlValidation ( ) ;
55
55
_responsePopulation = new ResponsePopulation ( ) ;
56
- ApiUrl = apiUrl ;
56
+ ApiUrl = _urlValidation . Format ( apiUrl ) ;
57
57
}
58
58
59
59
#endregion
@@ -67,10 +67,8 @@ public Info Info()
67
67
68
68
try
69
69
{
70
- // Making Api request and gathering response
70
+ // Making Api request and binding result to model
71
71
var webResponse = _apiProvider . MakeGetRequest ( requestModel ) ;
72
-
73
- // Binding result to model
74
72
infoModel = _responsePopulation . InfoModel ( webResponse , infoModel ) ;
75
73
76
74
if ( infoModel . engineVersion != null )
@@ -114,10 +112,8 @@ public Analyze Analyze(string host, Publish publish, ClearCache clearCache, From
114
112
115
113
try
116
114
{
117
- // Making Api request and gathering response
115
+ // Making Api request and binding result to model
118
116
var webResponse = _apiProvider . MakeGetRequest ( requestModel ) ;
119
-
120
- // Binding result to model
121
117
analyzeModel = _responsePopulation . AnalyzeModel ( webResponse , analyzeModel ) ;
122
118
}
123
119
catch ( Exception ex )
@@ -155,10 +151,8 @@ public Endpoint GetEndpointData(string host, string s, FromCache fromCache)
155
151
156
152
try
157
153
{
158
- // Making Api request and gathering response
154
+ // Making Api request and binding result to model
159
155
var webResponse = _apiProvider . MakeGetRequest ( requestModel ) ;
160
-
161
- // Binding result to model
162
156
endpointModel = _responsePopulation . EndpointModel ( webResponse , endpointModel ) ;
163
157
}
164
158
catch ( Exception ex )
@@ -176,16 +170,12 @@ public Endpoint GetEndpointData(string host, string s, FromCache fromCache)
176
170
public StatusCodes GetStatusCodes ( )
177
171
{
178
172
var statusCodesModel = new StatusCodes ( ) ;
179
-
180
- // Building request model
181
173
var requestModel = _requestModelFactory . NewStatusCodesRequestModel ( ApiUrl , "getStatusCodes" ) ;
182
174
183
175
try
184
176
{
185
- // Making Api request and gathering response
177
+ // Making Api request and binding result to model
186
178
var webResponse = _apiProvider . MakeGetRequest ( requestModel ) ;
187
-
188
- // Binding result to model
189
179
statusCodesModel = _responsePopulation . StatusCodesModel ( webResponse , statusCodesModel ) ;
190
180
}
191
181
catch ( Exception ex )
0 commit comments