Mocking should be an act of desperation!

This commit is contained in:
James Jackson-South
2020-12-01 01:13:08 +00:00
parent e41122eb8c
commit a3cc3769c0

View File

@@ -62,7 +62,8 @@ namespace Umbraco.Tests.UnitTests.Umbraco.Core.Components
private static IServiceCollection MockRegister()
{
return Mock.Of<IServiceCollection>();
// Why mock something you can spin up an instance of?
return new ServiceCollection(); // Mock.Of<IServiceCollection>();
}
private static TypeLoader MockTypeLoader()