Skip to content

Commit de74ae4

Browse files
authored
Added custom mvc setup method to testserver base class (#16545)
1 parent 53139a1 commit de74ae4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/Umbraco.Tests.Integration/TestServerTest/UmbracoTestServerTestBase.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@ protected void ConfigureServices(IServiceCollection services)
278278

279279
// Adds Umbraco.Tests.Integration
280280
mvcBuilder.AddApplicationPart(typeof(UmbracoTestServerTestBase).Assembly);
281+
282+
CustomMvcSetup(mvcBuilder);
281283
})
282284
.AddWebServer()
283285
.AddWebsite()
@@ -294,6 +296,11 @@ protected void ConfigureServices(IServiceCollection services)
294296
builder.Build();
295297
}
296298

299+
protected virtual void CustomMvcSetup(IMvcBuilder mvcBuilder)
300+
{
301+
302+
}
303+
297304
/// <summary>
298305
/// Hook for registering test doubles.
299306
/// </summary>

0 commit comments

Comments
 (0)