@@ -286,18 +286,17 @@ public override async Task StartContainersForScenarioRun(String scenarioName)
286286 String FileProcessorBaseAddressResolver ( String api ) => $ "http://127.0.0.1:{ this . FileProcessorPort } ";
287287 String EstateReportingBaseAddressResolver ( String api ) => $ "http://127.0.0.1:{ this . EstateReportingApiPort } ";
288288
289- HttpClientHandler clientHandler = new HttpClientHandler
290- {
291- ServerCertificateCustomValidationCallback = ( message ,
292- certificate2 ,
293- arg3 ,
294- arg4 ) =>
295- {
296- return true ;
297- }
298-
299- } ;
300- HttpClient httpClient = new HttpClient ( clientHandler ) ;
289+ var httpMessageHandler = new SocketsHttpHandler
290+ {
291+ SslOptions =
292+ {
293+ RemoteCertificateValidationCallback = ( sender ,
294+ certificate ,
295+ chain ,
296+ errors ) => true ,
297+ }
298+ } ;
299+ HttpClient httpClient = new HttpClient ( httpMessageHandler ) ;
301300 this . EstateClient = new EstateClient ( EstateManagementBaseAddressResolver , httpClient ) ;
302301 this . SecurityServiceClient = new SecurityServiceClient ( SecurityServiceBaseAddressResolver , httpClient ) ;
303302 this . EstateReportingClient = new EstateReportingClient ( EstateReportingBaseAddressResolver , httpClient ) ;
@@ -391,16 +390,6 @@ public async Task PopulateSubscriptionServiceConfiguration(String estateName, Bo
391390 await this . PopulateSubscriptionServiceConfiguration ( this . EventStoreHttpPort , subscriptions , isSecureEventStore ) ;
392391 }
393392
394- public string ReplaceFirst ( string text , string search , string replace )
395- {
396- int pos = text . IndexOf ( search ) ;
397- if ( pos < 0 )
398- {
399- return text ;
400- }
401- return text . Substring ( 0 , pos ) + replace + text . Substring ( pos + search . Length ) ;
402- }
403-
404393 private async Task RemoveEstateReadModel ( )
405394 {
406395 List < Guid > estateIdList = this . TestingContext . GetAllEstateIds ( ) ;
0 commit comments