fixture)
- {
- Client = fixture.Client;
- }
-
- public HttpClient Client { get; }
-
- [Theory]
- [InlineData("http://localhost/di", "Builder Output: Hello from builder.
")]
- [InlineData("http://localhost/basic", "Hello From Basic View
")]
- public async Task AutofacDIContainerCanUseMvc(string url, string expectedResponseBody)
- {
- // Arrange & Act & Assert (does not throw)
- // Make a request to start resolving DI pieces
- var responseText = await Client.GetStringAsync(url);
-
- Assert.Equal(expectedResponseBody, responseText);
- }
- }
-}
diff --git a/test/Microsoft.AspNet.Mvc.FunctionalTests/project.json b/test/Microsoft.AspNet.Mvc.FunctionalTests/project.json
index ba87883a98..98f204f163 100644
--- a/test/Microsoft.AspNet.Mvc.FunctionalTests/project.json
+++ b/test/Microsoft.AspNet.Mvc.FunctionalTests/project.json
@@ -14,7 +14,6 @@
"AntiforgeryTokenWebSite": "1.0.0",
"ApiExplorerWebSite": "1.0.0",
"ApplicationModelWebSite": "1.0.0",
- "AutofacWebSite": "1.0.0",
"BasicWebSite": "1.0.0",
"BestEffortLinkGenerationWebSite": "1.0.0",
"CompositeViewEngineWebSite": "1.0.0",
diff --git a/test/WebSites/AutofacWebSite/AutofacWebSite.xproj b/test/WebSites/AutofacWebSite/AutofacWebSite.xproj
deleted file mode 100644
index 044af8546f..0000000000
--- a/test/WebSites/AutofacWebSite/AutofacWebSite.xproj
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
- 14.0
- $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)
-
-
-
- 07c0e921-fcbb-458c-ac11-3d01ce68b16b
- ..\..\..\artifacts\obj\$(MSBuildProjectName)
- ..\..\..\artifacts\bin\$(MSBuildProjectName)\
-
-
- 2.0
- 49623
-
-
-
\ No newline at end of file
diff --git a/test/WebSites/AutofacWebSite/Controllers/BasicController.cs b/test/WebSites/AutofacWebSite/Controllers/BasicController.cs
deleted file mode 100644
index 4deb3e593f..0000000000
--- a/test/WebSites/AutofacWebSite/Controllers/BasicController.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-// Copyright (c) .NET Foundation. All rights reserved.
-// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
-
-using Microsoft.AspNet.Mvc;
-
-namespace AutofacWebSite.Controllers
-{
- public class BasicController : Controller
- {
- public IActionResult Index()
- {
- return View();
- }
- }
-}
diff --git a/test/WebSites/AutofacWebSite/Controllers/DIController.cs b/test/WebSites/AutofacWebSite/Controllers/DIController.cs
deleted file mode 100644
index 0f085f2ab8..0000000000
--- a/test/WebSites/AutofacWebSite/Controllers/DIController.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-// Copyright (c) .NET Foundation. All rights reserved.
-// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
-
-using Microsoft.AspNet.Mvc;
-
-namespace AutofacWebSite.Controllers
-{
- public class DIController : Controller
- {
- public DIController(HelloWorldBuilder builder)
- {
- Builder = builder;
- }
-
- public HelloWorldBuilder Builder { get; private set; }
-
- public IActionResult Index()
- {
- return View(model: Builder.Build());
- }
- }
-}
diff --git a/test/WebSites/AutofacWebSite/HelloWorldBuilder.cs b/test/WebSites/AutofacWebSite/HelloWorldBuilder.cs
deleted file mode 100644
index 6a94f4ed55..0000000000
--- a/test/WebSites/AutofacWebSite/HelloWorldBuilder.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-// Copyright (c) .NET Foundation. All rights reserved.
-// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
-
-namespace AutofacWebSite
-{
- public class HelloWorldBuilder
- {
- public string Build()
- {
- return "Hello from builder.";
- }
- }
-}
\ No newline at end of file
diff --git a/test/WebSites/AutofacWebSite/Startup.cs b/test/WebSites/AutofacWebSite/Startup.cs
deleted file mode 100644
index fdf2577501..0000000000
--- a/test/WebSites/AutofacWebSite/Startup.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright (c) .NET Foundation. All rights reserved.
-// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
-
-using System;
-using Autofac;
-using Autofac.Framework.DependencyInjection;
-using Microsoft.AspNet.Builder;
-using Microsoft.Framework.DependencyInjection;
-
-namespace AutofacWebSite
-{
- public class Startup
- {
- // Set up application services
- public IServiceProvider ConfigureServices(IServiceCollection services)
- {
- services.AddMvc();
- services.AddTransient();
-
- var builder = new ContainerBuilder();
- builder.Populate(services);
-
- var container = builder.Build();
-
- return container.Resolve();
- }
-
- public void Configure(IApplicationBuilder app)
- {
- app.UseCultureReplacer();
-
- app.UseMvc(routes =>
- {
- // This default route is for running the project directly.
- routes.MapRoute("default", "{controller=DI}/{action=Index}");
- });
- }
- }
-}
diff --git a/test/WebSites/AutofacWebSite/Views/Basic/Index.cshtml b/test/WebSites/AutofacWebSite/Views/Basic/Index.cshtml
deleted file mode 100644
index 2457ac3a83..0000000000
--- a/test/WebSites/AutofacWebSite/Views/Basic/Index.cshtml
+++ /dev/null
@@ -1 +0,0 @@
-Hello From Basic View
\ No newline at end of file
diff --git a/test/WebSites/AutofacWebSite/Views/DI/Index.cshtml b/test/WebSites/AutofacWebSite/Views/DI/Index.cshtml
deleted file mode 100644
index d4c4236f10..0000000000
--- a/test/WebSites/AutofacWebSite/Views/DI/Index.cshtml
+++ /dev/null
@@ -1,3 +0,0 @@
-@model string
-
-Builder Output: @Model
\ No newline at end of file
diff --git a/test/WebSites/AutofacWebSite/project.json b/test/WebSites/AutofacWebSite/project.json
deleted file mode 100644
index ea5b2ec684..0000000000
--- a/test/WebSites/AutofacWebSite/project.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "commands": {
- "web": "Microsoft.AspNet.Hosting server=Microsoft.AspNet.Server.WebListener server.urls=http://localhost:5001",
- "kestrel": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://localhost:5000"
- },
- "dependencies": {
- "Autofac.Framework.DependencyInjection": "4.0.0-beta6-110",
- "Microsoft.AspNet.Server.Kestrel": "1.0.0-*",
- "Microsoft.AspNet.Mvc": "6.0.0-*",
- "Microsoft.AspNet.Mvc.TestConfiguration": "1.0.0",
- "Microsoft.AspNet.Server.IIS": "1.0.0-*",
- "Microsoft.AspNet.Server.WebListener": "1.0.0-*",
- "Microsoft.AspNet.StaticFiles": "1.0.0-*"
- },
- "frameworks": {
- "dnx451": { },
- "dnxcore50": { }
- },
- "webroot": "wwwroot"
-}
diff --git a/test/WebSites/AutofacWebSite/readme.md b/test/WebSites/AutofacWebSite/readme.md
deleted file mode 100644
index c0a1ca6c4e..0000000000
--- a/test/WebSites/AutofacWebSite/readme.md
+++ /dev/null
@@ -1,4 +0,0 @@
-AutofacWebSite
-===
-
-This web site illustrates how to use Autofac as the DI container for an MVC application.
diff --git a/test/WebSites/AutofacWebSite/wwwroot/HelloWorld.htm b/test/WebSites/AutofacWebSite/wwwroot/HelloWorld.htm
deleted file mode 100644
index 3da1ec26e9..0000000000
--- a/test/WebSites/AutofacWebSite/wwwroot/HelloWorld.htm
+++ /dev/null
@@ -1 +0,0 @@
-HelloWorld