mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fix unit tests
--HG-- branch : dev
This commit is contained in:
@@ -6,6 +6,7 @@ using JetBrains.Annotations;
|
|||||||
using Moq;
|
using Moq;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using Orchard.ContentManagement.Aspects;
|
using Orchard.ContentManagement.Aspects;
|
||||||
|
using Orchard.ContentManagement.MetaData.Records;
|
||||||
using Orchard.Core.Common;
|
using Orchard.Core.Common;
|
||||||
using Orchard.Core.Common.Handlers;
|
using Orchard.Core.Common.Handlers;
|
||||||
using Orchard.Core.Common.Models;
|
using Orchard.Core.Common.Models;
|
||||||
@@ -46,6 +47,8 @@ namespace Orchard.Core.Tests.Common.Providers {
|
|||||||
get {
|
get {
|
||||||
return new[] {
|
return new[] {
|
||||||
typeof(ContentTypeRecord),
|
typeof(ContentTypeRecord),
|
||||||
|
typeof(ContentTypePartRecord),
|
||||||
|
typeof(ContentTypePartNameRecord),
|
||||||
typeof(ContentItemRecord),
|
typeof(ContentItemRecord),
|
||||||
typeof(ContentItemVersionRecord),
|
typeof(ContentItemVersionRecord),
|
||||||
typeof(CommonRecord),
|
typeof(CommonRecord),
|
||||||
|
@@ -6,6 +6,7 @@ using NUnit.Framework;
|
|||||||
using Orchard.ContentManagement;
|
using Orchard.ContentManagement;
|
||||||
using Orchard.ContentManagement.Drivers;
|
using Orchard.ContentManagement.Drivers;
|
||||||
using Orchard.ContentManagement.Handlers;
|
using Orchard.ContentManagement.Handlers;
|
||||||
|
using Orchard.ContentManagement.MetaData.Records;
|
||||||
using Orchard.ContentManagement.Records;
|
using Orchard.ContentManagement.Records;
|
||||||
using Orchard.Core.Common.Models;
|
using Orchard.Core.Common.Models;
|
||||||
using Orchard.Core.Common.Services;
|
using Orchard.Core.Common.Services;
|
||||||
@@ -180,9 +181,11 @@ namespace Orchard.Core.Tests.Common.Services {
|
|||||||
get {
|
get {
|
||||||
return new[] {
|
return new[] {
|
||||||
typeof(RoutableRecord),
|
typeof(RoutableRecord),
|
||||||
|
typeof(ContentTypeRecord),
|
||||||
|
typeof(ContentTypePartRecord),
|
||||||
|
typeof(ContentTypePartNameRecord),
|
||||||
typeof(ContentItemRecord),
|
typeof(ContentItemRecord),
|
||||||
typeof(ContentItemVersionRecord),
|
typeof(ContentItemVersionRecord),
|
||||||
typeof(ContentTypeRecord),
|
|
||||||
typeof(CommonRecord),
|
typeof(CommonRecord),
|
||||||
typeof(CommonVersionRecord),
|
typeof(CommonVersionRecord),
|
||||||
};
|
};
|
||||||
|
@@ -4,6 +4,7 @@ using Autofac;
|
|||||||
using Moq;
|
using Moq;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using Orchard.ContentManagement;
|
using Orchard.ContentManagement;
|
||||||
|
using Orchard.ContentManagement.MetaData.Records;
|
||||||
using Orchard.ContentManagement.Records;
|
using Orchard.ContentManagement.Records;
|
||||||
using Orchard.Core.Scheduling.Models;
|
using Orchard.Core.Scheduling.Models;
|
||||||
using Orchard.Core.Scheduling.Services;
|
using Orchard.Core.Scheduling.Services;
|
||||||
@@ -38,6 +39,8 @@ namespace Orchard.Core.Tests.Scheduling {
|
|||||||
get {
|
get {
|
||||||
return new[] {
|
return new[] {
|
||||||
typeof(ContentTypeRecord),
|
typeof(ContentTypeRecord),
|
||||||
|
typeof(ContentTypePartRecord),
|
||||||
|
typeof(ContentTypePartNameRecord),
|
||||||
typeof(ContentItemRecord),
|
typeof(ContentItemRecord),
|
||||||
typeof(ContentItemVersionRecord),
|
typeof(ContentItemVersionRecord),
|
||||||
typeof(ScheduledTaskRecord),
|
typeof(ScheduledTaskRecord),
|
||||||
|
@@ -5,6 +5,7 @@ using Autofac;
|
|||||||
using Moq;
|
using Moq;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using Orchard.ContentManagement;
|
using Orchard.ContentManagement;
|
||||||
|
using Orchard.ContentManagement.MetaData.Records;
|
||||||
using Orchard.ContentManagement.Records;
|
using Orchard.ContentManagement.Records;
|
||||||
using Orchard.Core.Scheduling.Models;
|
using Orchard.Core.Scheduling.Models;
|
||||||
using Orchard.Core.Scheduling.Services;
|
using Orchard.Core.Scheduling.Services;
|
||||||
@@ -41,6 +42,8 @@ namespace Orchard.Core.Tests.Scheduling {
|
|||||||
get {
|
get {
|
||||||
return new[] {
|
return new[] {
|
||||||
typeof(ContentTypeRecord),
|
typeof(ContentTypeRecord),
|
||||||
|
typeof(ContentTypePartRecord),
|
||||||
|
typeof(ContentTypePartNameRecord),
|
||||||
typeof(ContentItemRecord),
|
typeof(ContentItemRecord),
|
||||||
typeof(ContentItemVersionRecord),
|
typeof(ContentItemVersionRecord),
|
||||||
typeof(ScheduledTaskRecord),
|
typeof(ScheduledTaskRecord),
|
||||||
|
@@ -6,6 +6,7 @@ using System.Web.Routing;
|
|||||||
using Autofac;
|
using Autofac;
|
||||||
using Moq;
|
using Moq;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
|
using Orchard.ContentManagement.MetaData.Records;
|
||||||
using Orchard.Data;
|
using Orchard.Data;
|
||||||
using Orchard.Environment;
|
using Orchard.Environment;
|
||||||
using Orchard.ContentManagement;
|
using Orchard.ContentManagement;
|
||||||
@@ -44,7 +45,13 @@ namespace Orchard.Tests.Modules.Users.Controllers {
|
|||||||
|
|
||||||
protected override IEnumerable<Type> DatabaseTypes {
|
protected override IEnumerable<Type> DatabaseTypes {
|
||||||
get {
|
get {
|
||||||
return new[] { typeof(UserRecord), typeof(ContentItemRecord), typeof(ContentItemVersionRecord), typeof(ContentTypeRecord) };
|
return new[] { typeof(UserRecord),
|
||||||
|
typeof(ContentTypeRecord),
|
||||||
|
typeof(ContentTypePartRecord),
|
||||||
|
typeof(ContentTypePartNameRecord),
|
||||||
|
typeof(ContentItemRecord),
|
||||||
|
typeof(ContentItemVersionRecord),
|
||||||
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -3,6 +3,7 @@ using System.Web.Security;
|
|||||||
using Autofac;
|
using Autofac;
|
||||||
using NHibernate;
|
using NHibernate;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
|
using Orchard.ContentManagement.MetaData.Records;
|
||||||
using Orchard.Data;
|
using Orchard.Data;
|
||||||
using Orchard.ContentManagement;
|
using Orchard.ContentManagement;
|
||||||
using Orchard.ContentManagement.Handlers;
|
using Orchard.ContentManagement.Handlers;
|
||||||
@@ -41,7 +42,9 @@ namespace Orchard.Tests.Modules.Users.Services {
|
|||||||
typeof(UserRecord),
|
typeof(UserRecord),
|
||||||
typeof(ContentItemVersionRecord),
|
typeof(ContentItemVersionRecord),
|
||||||
typeof(ContentItemRecord),
|
typeof(ContentItemRecord),
|
||||||
typeof(ContentTypeRecord));
|
typeof(ContentTypeRecord),
|
||||||
|
typeof(ContentTypePartRecord),
|
||||||
|
typeof(ContentTypePartNameRecord));
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestFixtureTearDown]
|
[TestFixtureTearDown]
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
using Autofac;
|
using Autofac;
|
||||||
using NHibernate;
|
using NHibernate;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
|
using Orchard.ContentManagement.MetaData.Records;
|
||||||
using Orchard.Data;
|
using Orchard.Data;
|
||||||
using Orchard.ContentManagement;
|
using Orchard.ContentManagement;
|
||||||
using Orchard.ContentManagement.Handlers;
|
using Orchard.ContentManagement.Handlers;
|
||||||
@@ -27,7 +28,9 @@ namespace Orchard.Tests.ContentManagement {
|
|||||||
typeof(EpsilonRecord),
|
typeof(EpsilonRecord),
|
||||||
typeof(ContentItemVersionRecord),
|
typeof(ContentItemVersionRecord),
|
||||||
typeof(ContentItemRecord),
|
typeof(ContentItemRecord),
|
||||||
typeof(ContentTypeRecord));
|
typeof(ContentTypeRecord),
|
||||||
|
typeof(ContentTypePartRecord),
|
||||||
|
typeof(ContentTypePartNameRecord));
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestFixtureTearDown]
|
[TestFixtureTearDown]
|
||||||
|
@@ -4,6 +4,7 @@ using System.Linq;
|
|||||||
using Autofac;
|
using Autofac;
|
||||||
using NHibernate;
|
using NHibernate;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
|
using Orchard.ContentManagement.MetaData.Records;
|
||||||
using Orchard.Data;
|
using Orchard.Data;
|
||||||
using Orchard.ContentManagement;
|
using Orchard.ContentManagement;
|
||||||
using Orchard.ContentManagement.Handlers;
|
using Orchard.ContentManagement.Handlers;
|
||||||
@@ -25,6 +26,8 @@ namespace Orchard.Tests.ContentManagement {
|
|||||||
_sessionFactory = DataUtility.CreateSessionFactory(
|
_sessionFactory = DataUtility.CreateSessionFactory(
|
||||||
databaseFileName,
|
databaseFileName,
|
||||||
typeof(ContentTypeRecord),
|
typeof(ContentTypeRecord),
|
||||||
|
typeof(ContentTypePartRecord),
|
||||||
|
typeof(ContentTypePartNameRecord),
|
||||||
typeof(ContentItemRecord),
|
typeof(ContentItemRecord),
|
||||||
typeof(ContentItemVersionRecord),
|
typeof(ContentItemVersionRecord),
|
||||||
typeof(GammaRecord),
|
typeof(GammaRecord),
|
||||||
|
Reference in New Issue
Block a user