Creates common base class for services, this streamlines all ctors and exposes correct services. Gets the TaskRepository working with a test, now to get it fully implemented.

This commit is contained in:
Shannon
2015-01-19 18:37:48 +11:00
parent 280826f3e8
commit d4b718d615
46 changed files with 1151 additions and 705 deletions

View File

@@ -64,6 +64,11 @@ namespace Umbraco.Core.Persistence
#endregion
public virtual ITaskRepository CreateTaskRepository(IDatabaseUnitOfWork uow)
{
return new TaskRepository(uow, _cacheHelper, _logger, _sqlSyntax);
}
public virtual IAuditRepository CreateAuditRepository(IDatabaseUnitOfWork uow)
{
return new AuditRepository(uow, _cacheHelper, _logger, _sqlSyntax);