Fix temporal coupling

This commit is contained in:
Stephan
2019-04-02 13:35:01 +02:00
parent 04427e4c61
commit 27e145fe3d
34 changed files with 158 additions and 40 deletions

View File

@@ -125,7 +125,7 @@ namespace Umbraco.Tests.Web.Controllers
var mappers = new MapperCollection(new []
{
new UserMapper(Current.SqlContext, new ConcurrentDictionary<Type, ConcurrentDictionary<string, string>>())
new UserMapper(new Lazy<ISqlContext>(() => Current.SqlContext), new ConcurrentDictionary<Type, ConcurrentDictionary<string, string>>())
});
Mock.Get(Current.SqlContext)