diff --git a/test/Core.Test/AutoFixture/HttpClientFixtures.cs b/test/Core.Test/AutoFixture/HttpClientFixtures.cs index 55dd5c6e6..2b97de752 100644 --- a/test/Core.Test/AutoFixture/HttpClientFixtures.cs +++ b/test/Core.Test/AutoFixture/HttpClientFixtures.cs @@ -18,7 +18,7 @@ public class HttpClientFactoryBuilder : ISpecimenBuilder { var handler = context.Create(); var httpClientFactory = Substitute.For(); - httpClientFactory.CreateClient(Arg.Any()).Returns(handler.ToHttpClient()); + httpClientFactory.CreateClient(Arg.Any()).Returns(_ => handler.ToHttpClient()); return httpClientFactory; }