DRAG DROP
You are developing an ASP.NET Core MVC web application. The application is configured to use a Startup class.
The /status action must be tested on each check-in to source control.
You need to test the application.
How should you complete the code? To answer, drag the appropriate code segments to the correct locations. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
Select and Place:
TestServer and WebHostBuilder are correct:
TestServer testServer = new TestServer(new WebHostBuilder().UseStartup());
The Startup after UseStartup has been filtered away probably because of the type argument which is seen as HTML.
WebHost does not have constructor with arguments or without arguments – it is a static class
TestServer is designed for integration tests
https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.testhost.testserver?view=aspnetcore-3.0
Build is an extension method for builder so no instance can be created
TestStringParser is something unknown for me and for google
The only two option left for insertion are TestServer and WebHostBuilder, but there is no combination (TW, WT, TT, WW) that makes any sence
This question seems invalid