diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Web/Program.Middlewares.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Web/Program.Middlewares.cs index 65868ca46a..b3208a0169 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Web/Program.Middlewares.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Web/Program.Middlewares.cs @@ -81,6 +81,7 @@ public static void ConfiureMiddlewares(this WebApplication app) await next.Invoke(); }); } + app.UseBlazorFrameworkFiles(); app.UseStaticFiles(); if (string.IsNullOrEmpty(env.WebRootPath) is false && Path.Exists(Path.Combine(env.WebRootPath, @".well-known"))) diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Tests/AppTestServer.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Tests/AppTestServer.cs index 6b9cf5a17f..c3f0a757dd 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Tests/AppTestServer.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Tests/AppTestServer.cs @@ -17,7 +17,8 @@ public AppTestServer Build(Action? configureTestServices = n var builder = WebApplication.CreateBuilder(options: new() { - EnvironmentName = Environments.Development + EnvironmentName = Environments.Development, + Args = Environment.GetCommandLineArgs() }); AppEnvironment.Set(builder.Environment.EnvironmentName); diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Tests/Boilerplate.Tests.csproj b/src/Templates/Boilerplate/Bit.Boilerplate/src/Tests/Boilerplate.Tests.csproj index 00c7afcb4a..20a69f9c8d 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Tests/Boilerplate.Tests.csproj +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Tests/Boilerplate.Tests.csproj @@ -2,7 +2,6 @@ net8.0 - enable enable false true @@ -15,7 +14,6 @@ all - @@ -31,6 +29,7 @@ + diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Tests/IdentityPagesTests.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Tests/IdentityPagesTests.cs index 70b884ef57..23917a3ada 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Tests/IdentityPagesTests.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Tests/IdentityPagesTests.cs @@ -1,5 +1,4 @@ -using Boilerplate.Shared; -using Microsoft.Playwright.MSTest; +using Microsoft.Playwright.MSTest; namespace Boilerplate.Tests;