From 008b5f0d2a7943ecb5f06c26c64a106fb2966f4f Mon Sep 17 00:00:00 2001 From: Shannon Date: Wed, 28 Aug 2013 11:14:49 +1000 Subject: [PATCH] Fixed build errors --- .../Persistence/Repositories/MemberRepositoryTest.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Tests/Persistence/Repositories/MemberRepositoryTest.cs b/src/Umbraco.Tests/Persistence/Repositories/MemberRepositoryTest.cs index 76108692c1..bb668af547 100644 --- a/src/Umbraco.Tests/Persistence/Repositories/MemberRepositoryTest.cs +++ b/src/Umbraco.Tests/Persistence/Repositories/MemberRepositoryTest.cs @@ -60,13 +60,18 @@ namespace Umbraco.Tests.Persistence.Repositories RepositoryResolver.Current = new RepositoryResolver( new RepositoryFactory()); + //disable cache + var cacheHelper = CacheHelper.CreateDisabledCacheHelper(); + + var dbFactory = new DefaultDatabaseFactory(); + ApplicationContext.Current = new ApplicationContext( //assign the db context - new DatabaseContext(new DefaultDatabaseFactory()), + new DatabaseContext(dbFactory), //assign the service context - new ServiceContext(new PetaPocoUnitOfWorkProvider(), new FileUnitOfWorkProvider(), new PublishingStrategy()), + new ServiceContext(new PetaPocoUnitOfWorkProvider(dbFactory), new FileUnitOfWorkProvider(), new PublishingStrategy(), cacheHelper), //disable cache - false) + cacheHelper) { IsReady = true };