Changed all repository tests to ensure they are not testing with cache enabled... now to fix the problems :(

This commit is contained in:
Shannon
2013-09-18 11:40:40 +10:00
parent 5b943ca866
commit 8fe7c0da9e
17 changed files with 1942 additions and 1495 deletions

View File

@@ -4,6 +4,7 @@ using System.Text;
using NUnit.Framework;
using Umbraco.Core.IO;
using Umbraco.Core.Models;
using Umbraco.Core.Persistence;
using Umbraco.Core.Persistence.Repositories;
using Umbraco.Core.Persistence.UnitOfWork;
@@ -23,14 +24,14 @@ namespace Umbraco.Tests.Persistence.Repositories
}
[Test]
public void Can_Instantiate_Repository()
public void Can_Instantiate_Repository_From_Resolver()
{
// Arrange
var provider = new FileUnitOfWorkProvider();
var unitOfWork = provider.GetUnitOfWork();
// Act
var repository = new ScriptRepository(unitOfWork, _fileSystem);
var repository = RepositoryResolver.Current.ResolveByType<IScriptRepository>(unitOfWork);
// Assert
Assert.That(repository, Is.Not.Null);