From 77c64b50bbb966a6f39992e1e4528396a52899cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20M=C3=B6rner?= Date: Tue, 25 Jun 2024 09:03:10 +0200 Subject: [PATCH] Update InvalidXMLTests.cs fix test --- src/SoapCore.Tests/InvalidXMLTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SoapCore.Tests/InvalidXMLTests.cs b/src/SoapCore.Tests/InvalidXMLTests.cs index 65d7d716..ace93c76 100644 --- a/src/SoapCore.Tests/InvalidXMLTests.cs +++ b/src/SoapCore.Tests/InvalidXMLTests.cs @@ -164,7 +164,7 @@ public async Task InvalidSoapActionContentType(string contentType) SoapSerializer = SoapSerializer.XmlSerializer }; - var soapCore = new SoapEndpointMiddleware(logger, _ => Task.CompletedTask, options); + var soapCore = new SoapEndpointMiddleware(logger, _ => Task.CompletedTask, options, serviceCollection.BuildServiceProvider()); var context = new DefaultHttpContext(); context.Request.Path = new PathString("/Service.asmx"); @@ -184,7 +184,7 @@ public async Task InvalidSoapActionContentType(string contentType) context.Request.Body = new MemoryStream(Encoding.UTF8.GetBytes(request), false); context.Request.ContentType = contentType; - await soapCore.Invoke(context, serviceCollection.BuildServiceProvider()); + await soapCore.Invoke(context); // Assert context.Response.Body.Seek(0, SeekOrigin.Begin);