Browse Source

Delete unused pipeline config on web test module.

pull/5089/head
Halil İbrahim Kalkan 6 years ago
parent
commit
d3af2bf69c
  1. 44
      templates/app/aspnet-core/test/MyCompanyName.MyProjectName.Web.Tests/MyProjectNameWebTestModule.cs

44
templates/app/aspnet-core/test/MyCompanyName.MyProjectName.Web.Tests/MyProjectNameWebTestModule.cs

@ -1,4 +1,3 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using Localization.Resources.AbpUi;
@ -6,11 +5,9 @@ using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Localization;
using Microsoft.AspNetCore.Mvc.ApplicationParts;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using MyCompanyName.MyProjectName.Localization;
using MyCompanyName.MyProjectName.Web;
using MyCompanyName.MyProjectName.Web.Menus;
using Volo.Abp;
using Volo.Abp.AspNetCore.TestBase;
using Volo.Abp.Localization;
using Volo.Abp.Modularity;
@ -68,46 +65,5 @@ namespace MyCompanyName.MyProjectName
options.MenuContributors.Add(new MyProjectNameMenuContributor());
});
}
public override void OnApplicationInitialization(ApplicationInitializationContext context)
{
var app = context.GetApplicationBuilder();
var env = context.GetEnvironment();
app.Use(async (ctx, next) =>
{
try
{
await next();
}
catch (Exception e)
{
Console.WriteLine(e);
throw;
}
});
app.UseVirtualFiles();
app.UseRouting();
app.UseAuthentication();
app.UseAbpRequestLocalization();
app.UseAuthorization();
app.Use(async (ctx, next) =>
{
try
{
await next();
}
catch (Exception e)
{
Console.WriteLine(e);
throw;
}
});
app.UseConfiguredEndpoints();
}
}
}

Loading…
Cancel
Save