mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 10:54:50 +08:00
Fix unit tests
--HG-- branch : dev
This commit is contained in:
@@ -13,8 +13,11 @@ using Orchard.Core.Common.Models;
|
|||||||
using Orchard.ContentManagement;
|
using Orchard.ContentManagement;
|
||||||
using Orchard.ContentManagement.Handlers;
|
using Orchard.ContentManagement.Handlers;
|
||||||
using Orchard.ContentManagement.Records;
|
using Orchard.ContentManagement.Records;
|
||||||
|
using Orchard.Core.Common.Services;
|
||||||
|
using Orchard.Core.Scheduling.Services;
|
||||||
using Orchard.Localization;
|
using Orchard.Localization;
|
||||||
using Orchard.Security;
|
using Orchard.Security;
|
||||||
|
using Orchard.Tasks.Scheduling;
|
||||||
using Orchard.Tests.Modules;
|
using Orchard.Tests.Modules;
|
||||||
using Orchard.Core.Common.ViewModels;
|
using Orchard.Core.Common.ViewModels;
|
||||||
using System.Web.Mvc;
|
using System.Web.Mvc;
|
||||||
@@ -32,6 +35,9 @@ namespace Orchard.Core.Tests.Common.Providers {
|
|||||||
builder.RegisterType<DefaultContentManagerSession>().As<IContentManagerSession>();
|
builder.RegisterType<DefaultContentManagerSession>().As<IContentManagerSession>();
|
||||||
builder.RegisterType<TestHandler>().As<IContentHandler>();
|
builder.RegisterType<TestHandler>().As<IContentHandler>();
|
||||||
builder.RegisterType<CommonAspectHandler>().As<IContentHandler>();
|
builder.RegisterType<CommonAspectHandler>().As<IContentHandler>();
|
||||||
|
builder.RegisterType<CommonService>().As<ICommonService>();
|
||||||
|
builder.RegisterType<PublishingTaskManager>().As<IPublishingTaskManager>();
|
||||||
|
builder.RegisterType<ScheduledTaskManager>().As<IScheduledTaskManager>();
|
||||||
|
|
||||||
_authn = new Mock<IAuthenticationService>();
|
_authn = new Mock<IAuthenticationService>();
|
||||||
_authz = new Mock<IAuthorizationService>();
|
_authz = new Mock<IAuthorizationService>();
|
||||||
|
Reference in New Issue
Block a user