mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Removing further RoutePart references and fixing some tests
--HG-- branch : autoroute
This commit is contained in:
@@ -19,6 +19,7 @@ using Orchard.Core.Feeds.StandardBuilders;
|
||||
using Orchard.Core.Routable.Models;
|
||||
using Orchard.Tests.Modules;
|
||||
using Orchard.Tests.Stubs;
|
||||
using Orchard.Core.Title.Models;
|
||||
|
||||
namespace Orchard.Core.Tests.Feeds.Controllers {
|
||||
[TestFixture]
|
||||
@@ -148,16 +149,16 @@ namespace Orchard.Core.Tests.Feeds.Controllers {
|
||||
var clock = new StubClock();
|
||||
var hello = new ContentItemBuilder(new ContentTypeDefinitionBuilder().Named("hello").Build())
|
||||
.Weld<CommonPart>()
|
||||
.Weld<RoutePart>()
|
||||
.Weld<TitlePart>()
|
||||
.Weld<BodyPart>()
|
||||
.Build();
|
||||
hello.As<CommonPart>().Record = new CommonPartRecord();
|
||||
hello.As<RoutePart>().Record = new RoutePartRecord();
|
||||
hello.As<TitlePart>().Record = new TitlePartRecord();
|
||||
hello.As<BodyPart>().Record = new BodyPartRecord();
|
||||
|
||||
hello.As<CommonPart>().PublishedUtc = clock.UtcNow;
|
||||
hello.As<RoutePart>().Title = "alpha";
|
||||
hello.As<RoutePart>().Slug = "beta";
|
||||
hello.As<TitlePart>().Title = "alpha";
|
||||
// hello.As<RoutePart>().Slug = "beta";
|
||||
hello.As<BodyPart>().Text = "gamma";
|
||||
|
||||
var query = new StubQuery(new[] {
|
||||
|
||||
@@ -29,6 +29,8 @@ using Orchard.Tests.Stubs;
|
||||
using Orchard.UI.Notify;
|
||||
|
||||
namespace Orchard.Core.Tests.Routable.Services {
|
||||
|
||||
// TODO: (PH)
|
||||
[TestFixture]
|
||||
public class RoutableServiceTests : DatabaseEnabledTestsBase {
|
||||
[SetUp]
|
||||
|
||||
Reference in New Issue
Block a user