Handle IBuilder rename to IApplicationBuilder.
This commit is contained in:
parent
cde1a95d49
commit
85ad1aeb96
|
|
@ -17,7 +17,7 @@ namespace MvcSample.Web
|
||||||
{
|
{
|
||||||
public class Startup
|
public class Startup
|
||||||
{
|
{
|
||||||
public void Configure(IBuilder app)
|
public void Configure(IApplicationBuilder app)
|
||||||
{
|
{
|
||||||
app.UseFileServer();
|
app.UseFileServer();
|
||||||
#if ASPNET50
|
#if ASPNET50
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ namespace Microsoft.AspNet.Mvc.Internal
|
||||||
if (services.GetServiceOrNull(typeof(MvcMarkerService)) == null)
|
if (services.GetServiceOrNull(typeof(MvcMarkerService)) == null)
|
||||||
{
|
{
|
||||||
throw new InvalidOperationException(Resources.FormatUnableToFindServices(
|
throw new InvalidOperationException(Resources.FormatUnableToFindServices(
|
||||||
"IServiceCollection.AddMvc()", "IBuilder.UseServices(...)", "IBuilder.UseMvc(...)"));
|
"IServiceCollection.AddMvc()", "IApplicationBuilder.UseServices(...)", "IApplicationBuilder.UseMvc(...)"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ namespace Microsoft.AspNet.Builder
|
||||||
{
|
{
|
||||||
public static class BuilderExtensions
|
public static class BuilderExtensions
|
||||||
{
|
{
|
||||||
public static IBuilder UseMvc([NotNull] this IBuilder app)
|
public static IApplicationBuilder UseMvc([NotNull] this IApplicationBuilder app)
|
||||||
{
|
{
|
||||||
return app.UseMvc(routes =>
|
return app.UseMvc(routes =>
|
||||||
{
|
{
|
||||||
|
|
@ -23,7 +23,7 @@ namespace Microsoft.AspNet.Builder
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public static IBuilder UseMvc([NotNull] this IBuilder app, [NotNull] Action<IRouteBuilder> configureRoutes)
|
public static IApplicationBuilder UseMvc([NotNull] this IApplicationBuilder app, [NotNull] Action<IRouteBuilder> configureRoutes)
|
||||||
{
|
{
|
||||||
// Verify if AddMvc was done before calling UseMvc
|
// Verify if AddMvc was done before calling UseMvc
|
||||||
// We use the MvcMarkerService to make sure if all the services were added.
|
// We use the MvcMarkerService to make sure if all the services were added.
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,8 @@ namespace Microsoft.AspNet.Mvc
|
||||||
services.Setup(o => o.GetService(typeof(IEnumerable<MvcMarkerService>)))
|
services.Setup(o => o.GetService(typeof(IEnumerable<MvcMarkerService>)))
|
||||||
.Returns(new List<MvcMarkerService>());
|
.Returns(new List<MvcMarkerService>());
|
||||||
var expectedMessage = "Unable to find the required services. Please add all the required " +
|
var expectedMessage = "Unable to find the required services. Please add all the required " +
|
||||||
"services by calling 'IServiceCollection.AddMvc()' inside the call to 'IBuilder.UseServices(...)' " +
|
"services by calling 'IServiceCollection.AddMvc()' inside the call to 'IApplicationBuilder.UseServices(...)' " +
|
||||||
"or 'IBuilder.UseMvc(...)' in the application startup code.";
|
"or 'IApplicationBuilder.UseMvc(...)' in the application startup code.";
|
||||||
|
|
||||||
// Act & Assert
|
// Act & Assert
|
||||||
var ex = Assert.Throws<InvalidOperationException>(
|
var ex = Assert.Throws<InvalidOperationException>(
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
|
||||||
public class ActivatorTests
|
public class ActivatorTests
|
||||||
{
|
{
|
||||||
private readonly IServiceProvider _provider = TestHelper.CreateServices("ActivatorWebSite");
|
private readonly IServiceProvider _provider = TestHelper.CreateServices("ActivatorWebSite");
|
||||||
private readonly Action<IBuilder> _app = new Startup().Configure;
|
private readonly Action<IApplicationBuilder> _app = new Startup().Configure;
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public async Task ControllerThatCannotBeActivated_ThrowsWhenAttemptedToBeInvoked()
|
public async Task ControllerThatCannotBeActivated_ThrowsWhenAttemptedToBeInvoked()
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
|
||||||
public class AntiForgeryTests
|
public class AntiForgeryTests
|
||||||
{
|
{
|
||||||
private readonly IServiceProvider _services = TestHelper.CreateServices("AntiForgeryWebSite");
|
private readonly IServiceProvider _services = TestHelper.CreateServices("AntiForgeryWebSite");
|
||||||
private readonly Action<IBuilder> _app = new AntiForgeryWebSite.Startup().Configure;
|
private readonly Action<IApplicationBuilder> _app = new AntiForgeryWebSite.Startup().Configure;
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public async Task MultipleAFTokensWithinTheSamePage_AreAllowed()
|
public async Task MultipleAFTokensWithinTheSamePage_AreAllowed()
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
|
||||||
public class BasicTests
|
public class BasicTests
|
||||||
{
|
{
|
||||||
private readonly IServiceProvider _provider = TestHelper.CreateServices("BasicWebSite");
|
private readonly IServiceProvider _provider = TestHelper.CreateServices("BasicWebSite");
|
||||||
private readonly Action<IBuilder> _app = new Startup().Configure;
|
private readonly Action<IApplicationBuilder> _app = new Startup().Configure;
|
||||||
|
|
||||||
// Some tests require comparing the actual response body against an expected response baseline
|
// Some tests require comparing the actual response body against an expected response baseline
|
||||||
// so they require a reference to the assembly on which the resources are located, in order to
|
// so they require a reference to the assembly on which the resources are located, in order to
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
|
||||||
public class CompositeViewEngineTests
|
public class CompositeViewEngineTests
|
||||||
{
|
{
|
||||||
private readonly IServiceProvider _services = TestHelper.CreateServices("CompositeViewEngine");
|
private readonly IServiceProvider _services = TestHelper.CreateServices("CompositeViewEngine");
|
||||||
private readonly Action<IBuilder> _app = new CompositeViewEngine.Startup().Configure;
|
private readonly Action<IApplicationBuilder> _app = new CompositeViewEngine.Startup().Configure;
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public async Task CompositeViewEngine_FindsPartialViewsAcrossAllEngines()
|
public async Task CompositeViewEngine_FindsPartialViewsAcrossAllEngines()
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
|
||||||
public class ConnegTests
|
public class ConnegTests
|
||||||
{
|
{
|
||||||
private readonly IServiceProvider _provider = TestHelper.CreateServices("ConnegWebsite");
|
private readonly IServiceProvider _provider = TestHelper.CreateServices("ConnegWebsite");
|
||||||
private readonly Action<IBuilder> _app = new Startup().Configure;
|
private readonly Action<IApplicationBuilder> _app = new Startup().Configure;
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public async Task ProducesContentAttribute_SingleContentType_PicksTheFirstSupportedFormatter()
|
public async Task ProducesContentAttribute_SingleContentType_PicksTheFirstSupportedFormatter()
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
|
||||||
{
|
{
|
||||||
// Arrange
|
// Arrange
|
||||||
var provider = TestHelper.CreateServices("AutofacWebSite");
|
var provider = TestHelper.CreateServices("AutofacWebSite");
|
||||||
Action<IBuilder> app = new Startup().Configure;
|
Action<IApplicationBuilder> app = new Startup().Configure;
|
||||||
HttpResponseMessage response = null;
|
HttpResponseMessage response = null;
|
||||||
|
|
||||||
// Act & Assert
|
// Act & Assert
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
|
||||||
public class DirectivesTest
|
public class DirectivesTest
|
||||||
{
|
{
|
||||||
private readonly IServiceProvider _provider = TestHelper.CreateServices("RazorWebSite");
|
private readonly IServiceProvider _provider = TestHelper.CreateServices("RazorWebSite");
|
||||||
private readonly Action<IBuilder> _app = new Startup().Configure;
|
private readonly Action<IApplicationBuilder> _app = new Startup().Configure;
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public async Task ViewsInheritsUsingsAndInjectDirectivesFromViewStarts()
|
public async Task ViewsInheritsUsingsAndInjectDirectivesFromViewStarts()
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
|
||||||
public class FlushPointTest
|
public class FlushPointTest
|
||||||
{
|
{
|
||||||
private readonly IServiceProvider _provider = TestHelper.CreateServices("RazorWebSite");
|
private readonly IServiceProvider _provider = TestHelper.CreateServices("RazorWebSite");
|
||||||
private readonly Action<IBuilder> _app = new Startup().Configure;
|
private readonly Action<IApplicationBuilder> _app = new Startup().Configure;
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public async Task FlushPointsAreExecutedForPagesWithLayouts()
|
public async Task FlushPointsAreExecutedForPagesWithLayouts()
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
|
||||||
public class InlineConstraintTests
|
public class InlineConstraintTests
|
||||||
{
|
{
|
||||||
private readonly IServiceProvider _provider;
|
private readonly IServiceProvider _provider;
|
||||||
private readonly Action<IBuilder> _app = new Startup().Configure;
|
private readonly Action<IApplicationBuilder> _app = new Startup().Configure;
|
||||||
|
|
||||||
public InlineConstraintTests()
|
public InlineConstraintTests()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
|
||||||
public class InputFormatterTests
|
public class InputFormatterTests
|
||||||
{
|
{
|
||||||
private readonly IServiceProvider _services = TestHelper.CreateServices("FormatterWebSite");
|
private readonly IServiceProvider _services = TestHelper.CreateServices("FormatterWebSite");
|
||||||
private readonly Action<IBuilder> _app = new FormatterWebSite.Startup().Configure;
|
private readonly Action<IApplicationBuilder> _app = new FormatterWebSite.Startup().Configure;
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public async Task CheckIfXmlInputFormatterIsBeingCalled()
|
public async Task CheckIfXmlInputFormatterIsBeingCalled()
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
|
||||||
public class ModelBindingTests
|
public class ModelBindingTests
|
||||||
{
|
{
|
||||||
private readonly IServiceProvider _services = TestHelper.CreateServices("ModelBindingWebSite");
|
private readonly IServiceProvider _services = TestHelper.CreateServices("ModelBindingWebSite");
|
||||||
private readonly Action<IBuilder> _app = new ModelBindingWebSite.Startup().Configure;
|
private readonly Action<IApplicationBuilder> _app = new ModelBindingWebSite.Startup().Configure;
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public async Task ModelBindingBindsBase64StringsToByteArrays()
|
public async Task ModelBindingBindsBase64StringsToByteArrays()
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
|
||||||
// Path relative to Mvc\\test\Microsoft.AspNet.Mvc.FunctionalTests
|
// Path relative to Mvc\\test\Microsoft.AspNet.Mvc.FunctionalTests
|
||||||
private readonly IServiceProvider _services =
|
private readonly IServiceProvider _services =
|
||||||
TestHelper.CreateServices("MvcSample.Web", Path.Combine("..", "..", "samples"));
|
TestHelper.CreateServices("MvcSample.Web", Path.Combine("..", "..", "samples"));
|
||||||
private readonly Action<IBuilder> _app = new MvcSample.Web.Startup().Configure;
|
private readonly Action<IApplicationBuilder> _app = new MvcSample.Web.Startup().Configure;
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public async Task Home_Index_ReturnsSuccess()
|
public async Task Home_Index_ReturnsSuccess()
|
||||||
|
|
|
||||||
|
|
@ -11,15 +11,15 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
|
||||||
public class MvcStartupTests
|
public class MvcStartupTests
|
||||||
{
|
{
|
||||||
private readonly IServiceProvider _provider = TestHelper.CreateServices("AddServicesWebSite");
|
private readonly IServiceProvider _provider = TestHelper.CreateServices("AddServicesWebSite");
|
||||||
private readonly Action<IBuilder> _app = new AddServicesWebSite.Startup().Configure;
|
private readonly Action<IApplicationBuilder> _app = new AddServicesWebSite.Startup().Configure;
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public void MvcThrowsWhenRequiredServicesAreNotAdded()
|
public void MvcThrowsWhenRequiredServicesAreNotAdded()
|
||||||
{
|
{
|
||||||
// Arrange
|
// Arrange
|
||||||
var expectedMessage = "Unable to find the required services. Please add all the required " +
|
var expectedMessage = "Unable to find the required services. Please add all the required " +
|
||||||
"services by calling 'IServiceCollection.AddMvc()' inside the call to 'IBuilder.UseServices(...)' " +
|
"services by calling 'IServiceCollection.AddMvc()' inside the call to 'IApplicationBuilder.UseServices(...)' " +
|
||||||
"or 'IBuilder.UseMvc(...)' in the application startup code.";
|
"or 'IApplicationBuilder.UseMvc(...)' in the application startup code.";
|
||||||
|
|
||||||
// Act & Assert
|
// Act & Assert
|
||||||
var ex = Assert.Throws<InvalidOperationException>(() => TestServer.Create(_provider, _app));
|
var ex = Assert.Throws<InvalidOperationException>(() => TestServer.Create(_provider, _app));
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
|
||||||
public class OutputFormatterTests
|
public class OutputFormatterTests
|
||||||
{
|
{
|
||||||
private readonly IServiceProvider _provider = TestHelper.CreateServices("ConnegWebsite");
|
private readonly IServiceProvider _provider = TestHelper.CreateServices("ConnegWebsite");
|
||||||
private readonly Action<IBuilder> _app = new Startup().Configure;
|
private readonly Action<IApplicationBuilder> _app = new Startup().Configure;
|
||||||
|
|
||||||
[Theory]
|
[Theory]
|
||||||
[InlineData("ReturnTaskOfString")]
|
[InlineData("ReturnTaskOfString")]
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
|
||||||
public class RoutingTests
|
public class RoutingTests
|
||||||
{
|
{
|
||||||
private readonly IServiceProvider _services = TestHelper.CreateServices("RoutingWebSite");
|
private readonly IServiceProvider _services = TestHelper.CreateServices("RoutingWebSite");
|
||||||
private readonly Action<IBuilder> _app = new RoutingWebSite.Startup().Configure;
|
private readonly Action<IApplicationBuilder> _app = new RoutingWebSite.Startup().Configure;
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public async Task ConventionRoutedController_ActionIsReachable()
|
public async Task ConventionRoutedController_ActionIsReachable()
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
|
||||||
public class ValueProviderTest
|
public class ValueProviderTest
|
||||||
{
|
{
|
||||||
private readonly IServiceProvider _services = TestHelper.CreateServices("ValueProvidersSite");
|
private readonly IServiceProvider _services = TestHelper.CreateServices("ValueProvidersSite");
|
||||||
private readonly Action<IBuilder> _app = new Startup().Configure;
|
private readonly Action<IApplicationBuilder> _app = new Startup().Configure;
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public async Task ValueProviderFactories_AreVisitedInSequentialOrder_ForValueProviders()
|
public async Task ValueProviderFactories_AreVisitedInSequentialOrder_ForValueProviders()
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
|
||||||
public class ViewEngineTests
|
public class ViewEngineTests
|
||||||
{
|
{
|
||||||
private readonly IServiceProvider _provider = TestHelper.CreateServices("RazorWebSite");
|
private readonly IServiceProvider _provider = TestHelper.CreateServices("RazorWebSite");
|
||||||
private readonly Action<IBuilder> _app = new Startup().Configure;
|
private readonly Action<IApplicationBuilder> _app = new Startup().Configure;
|
||||||
|
|
||||||
public static IEnumerable<object[]> RazorView_ExecutesPageAndLayoutData
|
public static IEnumerable<object[]> RazorView_ExecutesPageAndLayoutData
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
|
||||||
public class XmlOutputFormatterTests
|
public class XmlOutputFormatterTests
|
||||||
{
|
{
|
||||||
private readonly IServiceProvider _services;
|
private readonly IServiceProvider _services;
|
||||||
private readonly Action<IBuilder> _app = new FormatterWebSite.Startup().Configure;
|
private readonly Action<IApplicationBuilder> _app = new FormatterWebSite.Startup().Configure;
|
||||||
|
|
||||||
public XmlOutputFormatterTests()
|
public XmlOutputFormatterTests()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ namespace ActivatorWebSite
|
||||||
{
|
{
|
||||||
public class Startup
|
public class Startup
|
||||||
{
|
{
|
||||||
public void Configure(IBuilder app)
|
public void Configure(IApplicationBuilder app)
|
||||||
{
|
{
|
||||||
var configuration = app.GetTestConfiguration();
|
var configuration = app.GetTestConfiguration();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ namespace AddServicesWebSite
|
||||||
{
|
{
|
||||||
public class Startup
|
public class Startup
|
||||||
{
|
{
|
||||||
public void Configure(IBuilder app)
|
public void Configure(IApplicationBuilder app)
|
||||||
{
|
{
|
||||||
var configuration = app.GetTestConfiguration();
|
var configuration = app.GetTestConfiguration();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ namespace AntiForgeryWebSite
|
||||||
{
|
{
|
||||||
public class Startup
|
public class Startup
|
||||||
{
|
{
|
||||||
public void Configure(IBuilder app)
|
public void Configure(IApplicationBuilder app)
|
||||||
{
|
{
|
||||||
var configuration = app.GetTestConfiguration();
|
var configuration = app.GetTestConfiguration();
|
||||||
app.UseServices(services =>
|
app.UseServices(services =>
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ namespace AutofacWebSite
|
||||||
{
|
{
|
||||||
public class Startup
|
public class Startup
|
||||||
{
|
{
|
||||||
public void Configure(IBuilder app)
|
public void Configure(IApplicationBuilder app)
|
||||||
{
|
{
|
||||||
app.UseServices(services => {
|
app.UseServices(services => {
|
||||||
services.AddMvc();
|
services.AddMvc();
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ namespace BasicWebSite
|
||||||
{
|
{
|
||||||
public class Startup
|
public class Startup
|
||||||
{
|
{
|
||||||
public void Configure(IBuilder app)
|
public void Configure(IApplicationBuilder app)
|
||||||
{
|
{
|
||||||
var configuration = app.GetTestConfiguration();
|
var configuration = app.GetTestConfiguration();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ namespace CompositeViewEngine
|
||||||
{
|
{
|
||||||
public class Startup
|
public class Startup
|
||||||
{
|
{
|
||||||
public void Configure(IBuilder app)
|
public void Configure(IApplicationBuilder app)
|
||||||
{
|
{
|
||||||
var configuration = app.GetTestConfiguration();
|
var configuration = app.GetTestConfiguration();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ namespace ConnegWebsite
|
||||||
{
|
{
|
||||||
public class Startup
|
public class Startup
|
||||||
{
|
{
|
||||||
public void Configure(IBuilder app)
|
public void Configure(IApplicationBuilder app)
|
||||||
{
|
{
|
||||||
var configuration = app.GetTestConfiguration();
|
var configuration = app.GetTestConfiguration();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ namespace FormatterWebSite
|
||||||
{
|
{
|
||||||
public class Startup
|
public class Startup
|
||||||
{
|
{
|
||||||
public void Configure(IBuilder app)
|
public void Configure(IApplicationBuilder app)
|
||||||
{
|
{
|
||||||
var configuration = app.GetTestConfiguration();
|
var configuration = app.GetTestConfiguration();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ namespace InlineConstraints
|
||||||
{
|
{
|
||||||
public Action<IRouteBuilder> RouteCollectionProvider { get; set; }
|
public Action<IRouteBuilder> RouteCollectionProvider { get; set; }
|
||||||
|
|
||||||
public void Configure(IBuilder app)
|
public void Configure(IApplicationBuilder app)
|
||||||
{
|
{
|
||||||
var configuration = app.GetTestConfiguration();
|
var configuration = app.GetTestConfiguration();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ namespace Microsoft.AspNet.Builder
|
||||||
{
|
{
|
||||||
public static class BuilderExtensions
|
public static class BuilderExtensions
|
||||||
{
|
{
|
||||||
public static Configuration GetTestConfiguration(this IBuilder app)
|
public static Configuration GetTestConfiguration(this IApplicationBuilder app)
|
||||||
{
|
{
|
||||||
var configurationProvider = app.ApplicationServices.GetServiceOrDefault<ITestConfigurationProvider>();
|
var configurationProvider = app.ApplicationServices.GetServiceOrDefault<ITestConfigurationProvider>();
|
||||||
var configuration = configurationProvider == null
|
var configuration = configurationProvider == null
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ namespace ModelBindingWebSite
|
||||||
{
|
{
|
||||||
public class Startup
|
public class Startup
|
||||||
{
|
{
|
||||||
public void Configure(IBuilder app)
|
public void Configure(IApplicationBuilder app)
|
||||||
{
|
{
|
||||||
var configuration = app.GetTestConfiguration();
|
var configuration = app.GetTestConfiguration();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ namespace RazorWebSite
|
||||||
{
|
{
|
||||||
public class Startup
|
public class Startup
|
||||||
{
|
{
|
||||||
public void Configure(IBuilder app)
|
public void Configure(IApplicationBuilder app)
|
||||||
{
|
{
|
||||||
var configuration = app.GetTestConfiguration();
|
var configuration = app.GetTestConfiguration();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ namespace RoutingWebSite
|
||||||
{
|
{
|
||||||
public class Startup
|
public class Startup
|
||||||
{
|
{
|
||||||
public void Configure(IBuilder app)
|
public void Configure(IApplicationBuilder app)
|
||||||
{
|
{
|
||||||
var configuration = app.GetTestConfiguration();
|
var configuration = app.GetTestConfiguration();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ namespace ValueProvidersSite
|
||||||
{
|
{
|
||||||
public class Startup
|
public class Startup
|
||||||
{
|
{
|
||||||
public void Configure(IBuilder app)
|
public void Configure(IApplicationBuilder app)
|
||||||
{
|
{
|
||||||
var configuration = app.GetTestConfiguration();
|
var configuration = app.GetTestConfiguration();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue