public async Task CustomRouting_NameSpaceRouting()
        {
            // Arrange
            var builder = new WebApplicationBuilder().UseStartup(typeof(NamespaceRouting.Startup));
            var client = new TestServer(builder).CreateClient();

            // Act
            var result = await client.GetAsync("MySite/Inventory/Products/List");

            // Assert
            Assert.Equal(HttpStatusCode.OK, result.StatusCode);
            var contentString = await result.Content.ReadAsStringAsync();
            Assert.Contains("Hello from ProductsController", contentString);
        }
        public async Task SwaggerRequest_ReturnsValidSwaggerJson(
            Type startupType,
            string swaggerRequestUri)
        {
            var client = new TestServer(TestServer.CreateBuilder()
                .UseStartup(startupType)
                // Use a Convention to only surface ApiDescriptions if action belongs to test app assembly
                .UseServices(services =>
                    services.Configure<MvcOptions>(c => c.Conventions.Add(new TestAppActionModel(startupType.Assembly)))
                ))
                .CreateClient();

            var swaggerResponse = await client.GetAsync(swaggerRequestUri);

            swaggerResponse.EnsureSuccessStatusCode();
            await AssertValidSwaggerAsync(swaggerResponse);
        }