Adding unit tests for the two repository-backing cache providers

This commit is contained in:
sitereactor
2012-11-05 09:29:29 -01:00
parent cec2de6a2f
commit b77beb386a
6 changed files with 208 additions and 3 deletions

View File

@@ -12,12 +12,11 @@ namespace Umbraco.Core.Persistence.UnitOfWork
internal class FileUnitOfWork : IUnitOfWork
{
private Guid _key;
private List<Operation> _operations;
private readonly List<Operation> _operations = new List<Operation>();
public FileUnitOfWork()
{
_key = Guid.NewGuid();
_operations = new List<Operation>();
}
#region Implementation of IUnitOfWork

View File

@@ -16,7 +16,6 @@ namespace Umbraco.Core.Persistence.UnitOfWork
public PetaPocoUnitOfWork()
{
_key = Guid.NewGuid();
//_operations = new List<Operation>();
}
/// <summary>