@@ -379,7 +379,7 @@ public async Task TestIgnoreElementsFailMatch()
379379
380380 // record baseline request first
381381 var client = HttpClients . NewHttpClient ( cassette , Mode . Record ) ;
382- var _ = await client . PostAsync ( FakeDataService . GetPreparedIPAddressDataUrl ( "json" ) , bodyData1 ) ;
382+ var _ = await client . PostAsync ( FakeDataService . GetPostManPostEchoServiceUrl ( ) , bodyData1 ) ;
383383
384384 // try to replay the request with different body data
385385 client = HttpClients . NewHttpClient ( cassette , Mode . Replay , new AdvancedSettings
@@ -388,7 +388,7 @@ public async Task TestIgnoreElementsFailMatch()
388388 } ) ;
389389
390390 // should fail since we're strictly in replay mode and there's no exact match
391- await Assert . ThrowsExceptionAsync < VCRException > ( async ( ) => await client . PostAsync ( FakeDataService . GetPreparedIPAddressDataUrl ( "json" ) , bodyData2 ) ) ;
391+ await Assert . ThrowsExceptionAsync < VCRException > ( async ( ) => await client . PostAsync ( FakeDataService . GetPostManPostEchoServiceUrl ( ) , bodyData2 ) ) ;
392392 }
393393
394394 [ TestMethod ]
@@ -402,7 +402,7 @@ public async Task TestCustomMatchRule()
402402
403403 // record baseline request first
404404 var client = HttpClients . NewHttpClient ( cassette , Mode . Record ) ;
405- var _ = await client . PostAsync ( FakeDataService . GetPreparedIPAddressDataUrl ( "json" ) , bodyData1 ) ;
405+ var _ = await client . PostAsync ( FakeDataService . GetPostManPostEchoServiceUrl ( ) , bodyData1 ) ;
406406
407407 // try to replay the request with no custom match rule
408408 client = HttpClients . NewHttpClient ( cassette , Mode . Replay , new AdvancedSettings ( )
@@ -411,7 +411,7 @@ public async Task TestCustomMatchRule()
411411 } ) ;
412412
413413 // should pass since it passes the default match rules
414- await client . PostAsync ( FakeDataService . GetPreparedIPAddressDataUrl ( "json" ) , bodyData1 ) ;
414+ await client . PostAsync ( FakeDataService . GetPostManPostEchoServiceUrl ( ) , bodyData1 ) ;
415415
416416 // try to replay the request with a custom match rule
417417 client = HttpClients . NewHttpClient ( cassette , Mode . Replay , new AdvancedSettings
@@ -420,7 +420,7 @@ public async Task TestCustomMatchRule()
420420 } ) ;
421421
422422 // should fail since the custom match rule always returns false and there's never a match
423- await Assert . ThrowsExceptionAsync < VCRException > ( async ( ) => await client . PostAsync ( FakeDataService . GetPreparedIPAddressDataUrl ( "json" ) , bodyData2 ) ) ;
423+ await Assert . ThrowsExceptionAsync < VCRException > ( async ( ) => await client . PostAsync ( FakeDataService . GetPostManPostEchoServiceUrl ( ) , bodyData2 ) ) ;
424424 }
425425
426426 [ TestMethod ]
@@ -434,7 +434,7 @@ public async Task TestIgnoreElementsPassMatch()
434434
435435 // record baseline request first
436436 var client = HttpClients . NewHttpClient ( cassette , Mode . Record ) ;
437- var _ = await client . PostAsync ( FakeDataService . GetPreparedIPAddressDataUrl ( "json" ) , bodyData1 ) ;
437+ var _ = await client . PostAsync ( FakeDataService . GetPostManPostEchoServiceUrl ( ) , bodyData1 ) ;
438438
439439 // try to replay the request with different body data, but ignoring the differences
440440 var ignoreElements = new List < CensorElement >
@@ -447,7 +447,7 @@ public async Task TestIgnoreElementsPassMatch()
447447 } ) ;
448448
449449 // should succeed since we're ignoring the differences
450- var response = await client . PostAsync ( FakeDataService . GetPreparedIPAddressDataUrl ( "json" ) , bodyData2 ) ;
450+ var response = await client . PostAsync ( FakeDataService . GetPostManPostEchoServiceUrl ( ) , bodyData2 ) ;
451451 Assert . IsNotNull ( response ) ;
452452 Assert . IsTrue ( Utilities . ResponseCameFromRecording ( response ) ) ;
453453 }
0 commit comments