@@ -103,15 +103,15 @@ public async Task Run_FailsToRetrievePdsRecord_LogsError()
103103 HttpResponseMessage httpResponseMessage = new HttpResponseMessage ( ) ;
104104 httpResponseMessage . StatusCode = HttpStatusCode . OK ;
105105
106- _httpClientFunctionMock . Setup ( x => x . SendGetHttpResponse ( It . IsAny < string > ( ) , It . IsAny < Dictionary < string , string > > ( ) ) ) . ThrowsAsync ( new Exception ( "error" ) ) ;
106+ _httpClientFunctionMock . Setup ( x => x . SendGetResponse ( It . IsAny < string > ( ) , It . IsAny < Dictionary < string , string > > ( ) ) ) . ThrowsAsync ( new Exception ( "error" ) ) ;
107107
108108 // Act
109109 await _sut . Run ( fileStream , _fileName ) ;
110110
111111 // Assert
112112 _fhirPatientDemographicMapperMock . Verify ( x => x . ParseFhirJsonNhsNumber ( It . IsAny < string > ( ) ) , Times . Once ) ;
113113
114- _httpClientFunctionMock . Verify ( x => x . SendGetHttpResponse ( "RetrievePdsDemographic" , It . IsAny < Dictionary < string , string > > ( ) ) , Times . Once ) ;
114+ _httpClientFunctionMock . Verify ( x => x . SendGetResponse ( "RetrievePdsDemographic" , It . IsAny < Dictionary < string , string > > ( ) ) , Times . Once ) ;
115115
116116 _loggerMock . Verify ( x => x . Log (
117117 LogLevel . Error ,
@@ -133,15 +133,15 @@ public async Task Run_NhsNumberFromNemsUpdateFileDoesNotMatchRetrievedPdsRecordN
133133 httpResponseMessage . Content = new StringContent ( JsonSerializer . Serialize ( new PdsDemographic { NhsNumber = "123" } ) ) ;
134134 httpResponseMessage . StatusCode = HttpStatusCode . OK ;
135135
136- _httpClientFunctionMock . Setup ( x => x . SendGetHttpResponse ( It . IsAny < string > ( ) , It . IsAny < Dictionary < string , string > > ( ) ) ) . ReturnsAsync ( httpResponseMessage ) ;
136+ _httpClientFunctionMock . Setup ( x => x . SendGetResponse ( It . IsAny < string > ( ) , It . IsAny < Dictionary < string , string > > ( ) ) ) . ReturnsAsync ( httpResponseMessage ) ;
137137
138138 // Act
139139 await _sut . Run ( fileStream , _fileName ) ;
140140
141141 // Assert
142142 _fhirPatientDemographicMapperMock . Verify ( x => x . ParseFhirJsonNhsNumber ( It . IsAny < string > ( ) ) , Times . Once ) ;
143143
144- _httpClientFunctionMock . Verify ( x => x . SendGetHttpResponse ( "RetrievePdsDemographic" , It . IsAny < Dictionary < string , string > > ( ) ) , Times . Once ) ;
144+ _httpClientFunctionMock . Verify ( x => x . SendGetResponse ( "RetrievePdsDemographic" , It . IsAny < Dictionary < string , string > > ( ) ) , Times . Once ) ;
145145
146146 _loggerMock . Verify ( x => x . Log (
147147 LogLevel . Information ,
@@ -175,7 +175,7 @@ public async Task Run_NhsNumberFromNemsUpdateFileDoesNotMatchRetrievedPdsRecordN
175175 httpResponseMessage . Content = new StringContent ( JsonSerializer . Serialize ( new PdsDemographic { NhsNumber = "123" } ) ) ;
176176 httpResponseMessage . StatusCode = HttpStatusCode . OK ;
177177
178- _httpClientFunctionMock . Setup ( x => x . SendGetHttpResponse ( It . IsAny < string > ( ) , It . IsAny < Dictionary < string , string > > ( ) ) ) . ReturnsAsync ( httpResponseMessage ) ;
178+ _httpClientFunctionMock . Setup ( x => x . SendGetResponse ( It . IsAny < string > ( ) , It . IsAny < Dictionary < string , string > > ( ) ) ) . ReturnsAsync ( httpResponseMessage ) ;
179179
180180 _httpClientFunctionMock . Setup ( x => x . SendPost ( "Unsubscribe" , It . IsAny < string > ( ) ) ) . Throws ( new Exception ( "error" ) ) ;
181181
@@ -185,7 +185,7 @@ public async Task Run_NhsNumberFromNemsUpdateFileDoesNotMatchRetrievedPdsRecordN
185185 // Assert
186186 _fhirPatientDemographicMapperMock . Verify ( x => x . ParseFhirJsonNhsNumber ( It . IsAny < string > ( ) ) , Times . Once ) ;
187187
188- _httpClientFunctionMock . Verify ( x => x . SendGetHttpResponse ( "RetrievePdsDemographic" , It . IsAny < Dictionary < string , string > > ( ) ) , Times . Once ) ;
188+ _httpClientFunctionMock . Verify ( x => x . SendGetResponse ( "RetrievePdsDemographic" , It . IsAny < Dictionary < string , string > > ( ) ) , Times . Once ) ;
189189
190190 _loggerMock . Verify ( x => x . Log (
191191 LogLevel . Information ,
@@ -219,15 +219,15 @@ public async Task Run_NemsUpdateMatchesPdsRecord_ProcessesRecord()
219219 httpResponseMessage . Content = new StringContent ( JsonSerializer . Serialize ( new PdsDemographic { NhsNumber = "9000000009" } ) ) ;
220220 httpResponseMessage . StatusCode = HttpStatusCode . OK ;
221221
222- _httpClientFunctionMock . Setup ( x => x . SendGetHttpResponse ( It . IsAny < string > ( ) , It . IsAny < Dictionary < string , string > > ( ) ) ) . ReturnsAsync ( httpResponseMessage ) ;
222+ _httpClientFunctionMock . Setup ( x => x . SendGetResponse ( It . IsAny < string > ( ) , It . IsAny < Dictionary < string , string > > ( ) ) ) . ReturnsAsync ( httpResponseMessage ) ;
223223
224224 // Act
225225 await _sut . Run ( fileStream , _fileName ) ;
226226
227227 // Assert
228228 _fhirPatientDemographicMapperMock . Verify ( x => x . ParseFhirJsonNhsNumber ( It . IsAny < string > ( ) ) , Times . Once ) ;
229229
230- _httpClientFunctionMock . Verify ( x => x . SendGetHttpResponse ( "RetrievePdsDemographic" , It . IsAny < Dictionary < string , string > > ( ) ) , Times . Once ) ;
230+ _httpClientFunctionMock . Verify ( x => x . SendGetResponse ( "RetrievePdsDemographic" , It . IsAny < Dictionary < string , string > > ( ) ) , Times . Once ) ;
231231
232232
233233 _loggerMock . Verify ( x => x . Log (
@@ -256,14 +256,14 @@ public async Task Run_NhsNumberFromNemsUpdateFileDoesNotMatchRetrievedPdsRecordN
256256 httpResponseMessage . Content = new StringContent ( JsonSerializer . Serialize ( new PdsDemographic { NhsNumber = "123" } ) ) ;
257257 httpResponseMessage . StatusCode = HttpStatusCode . OK ;
258258
259- _httpClientFunctionMock . Setup ( x => x . SendGetHttpResponse ( It . IsAny < string > ( ) , It . IsAny < Dictionary < string , string > > ( ) ) ) . ReturnsAsync ( httpResponseMessage ) ;
259+ _httpClientFunctionMock . Setup ( x => x . SendGetResponse ( It . IsAny < string > ( ) , It . IsAny < Dictionary < string , string > > ( ) ) ) . ReturnsAsync ( httpResponseMessage ) ;
260260
261261 // Act
262262 await _sut . Run ( fileStream , _fileName ) ;
263263
264264 // Assert
265265 _fhirPatientDemographicMapperMock . Verify ( x => x . ParseFhirJsonNhsNumber ( It . IsAny < string > ( ) ) , Times . Once ) ;
266- _httpClientFunctionMock . Verify ( x => x . SendGetHttpResponse ( "RetrievePdsDemographic" , It . IsAny < Dictionary < string , string > > ( ) ) , Times . Once ) ;
266+ _httpClientFunctionMock . Verify ( x => x . SendGetResponse ( "RetrievePdsDemographic" , It . IsAny < Dictionary < string , string > > ( ) ) , Times . Once ) ;
267267
268268
269269
@@ -345,7 +345,7 @@ public async Task Run_ExtractedNhsNumber_PassedToPdsService()
345345 await _sut . Run ( fileStream , _fileName ) ;
346346
347347 // Assert - Verify correct NHS number is passed to PDS service
348- _httpClientFunctionMock . Verify ( x => x . SendGetHttpResponse (
348+ _httpClientFunctionMock . Verify ( x => x . SendGetResponse (
349349 "RetrievePdsDemographic" ,
350350 It . Is < Dictionary < string , string > > ( dict =>
351351 dict . ContainsKey ( "nhsNumber" ) && dict [ "nhsNumber" ] == expectedNhsNumber ) ) ,
@@ -368,7 +368,7 @@ public async Task Run_XmlBundleFile_PassesNhsNumberToPdsService()
368368 await _sut . Run ( fileStream , xmlFileName ) ;
369369
370370 // Assert - Verify correct NHS number is passed to PDS service
371- _httpClientFunctionMock . Verify ( x => x . SendGetHttpResponse (
371+ _httpClientFunctionMock . Verify ( x => x . SendGetResponse (
372372 "RetrievePdsDemographic" ,
373373 It . Is < Dictionary < string , string > > ( dict =>
374374 dict . ContainsKey ( "nhsNumber" ) && dict [ "nhsNumber" ] == expectedNhsNumber ) ) ,
0 commit comments