mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-25 11:48:45 +00:00
Fix website tests failing
This commit is contained in:
parent
b48f3df4e2
commit
3e031a342f
5 changed files with 36 additions and 6 deletions
|
@ -4,7 +4,7 @@ using Microsoft.AspNetCore.HttpOverrides;
|
|||
|
||||
namespace LBPUnion.ProjectLighthouse.Servers.Website.Startup;
|
||||
|
||||
public sealed class WebsiteStartup
|
||||
public class WebsiteStartup
|
||||
{
|
||||
public WebsiteStartup(IConfiguration configuration)
|
||||
{
|
||||
|
@ -41,7 +41,7 @@ public sealed class WebsiteStartup
|
|||
}
|
||||
|
||||
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|
||||
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
|
||||
public virtual void Configure(IApplicationBuilder app, IWebHostEnvironment env)
|
||||
{
|
||||
#if DEBUG
|
||||
app.UseDeveloperExceptionPage();
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
using LBPUnion.ProjectLighthouse.Helpers.Middlewares;
|
||||
|
||||
namespace LBPUnion.ProjectLighthouse.Servers.Website.Startup;
|
||||
|
||||
public class WebsiteTestStartup : WebsiteStartup
|
||||
{
|
||||
public WebsiteTestStartup(IConfiguration configuration) : base(configuration)
|
||||
{}
|
||||
|
||||
public override void Configure(IApplicationBuilder app, IWebHostEnvironment env)
|
||||
{
|
||||
app.UseMiddleware<FakeRemoteIPAddressMiddleware>();
|
||||
base.Configure(app, env);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue