Migrated ScopedRepositoryTests

Signed-off-by: Bjarke Berg <mail@bergmania.dk>
This commit is contained in:
Bjarke Berg
2020-10-29 14:08:01 +01:00
parent cfaa353dff
commit 0a05611826
3 changed files with 43 additions and 54 deletions

View File

@@ -263,7 +263,7 @@ namespace Umbraco.Tests.Integration.Testing
webHostEnvironment,
register,
GetType().Assembly,
AppCaches.NoCache, // Disable caches for integration tests
GetAppCaches(),
TestHelper.GetLoggingConfiguration(),
Configuration,
CreateTestRuntime);
@@ -280,6 +280,12 @@ namespace Umbraco.Tests.Integration.Testing
CustomTestSetup(services);
}
protected virtual AppCaches GetAppCaches()
{
// Disable caches for integration tests
return AppCaches.NoCache;
}
public virtual void Configure(IApplicationBuilder app)
{
//get the currently set options