Signed-off-by: Bjarke Berg <mail@bergmania.dk>
This commit is contained in:
Bjarke Berg
2020-10-14 08:30:45 +02:00
parent 75944117c8
commit 76f87a1243
2 changed files with 0 additions and 11 deletions

View File

@@ -36,8 +36,6 @@ namespace Umbraco.Tests.Services
CreateTestData();
}
protected override Action<IServiceCollection> CustomTestSetup => (services) => services.AddSingleton<IProfiler, TestProfiler>();
[Test]
public void Profiler()
{

View File

@@ -478,15 +478,6 @@ namespace Umbraco.Tests.Integration.Testing
protected GlobalSettings GlobalSettings => Services.GetRequiredService<IOptions<GlobalSettings>>().Value;
protected IMapperCollection Mappers => Services.GetRequiredService<IMapperCollection>();
protected IFileSystems GetMockFileSystems()
{
var testHelper = new TestHelper();
var fileSystems = Mock.Of<IFileSystems>();
var viewsFileSystem = new PhysicalFileSystem(IOHelper, testHelper.GetHostingEnvironment(), LoggerFactory.CreateLogger<PhysicalFileSystem>(), Constants.SystemDirectories.MvcViews);
Mock.Get(fileSystems).Setup(x => x.MvcViewsFileSystem).Returns(viewsFileSystem);
return fileSystems;
}
#endregion
#region Builders