Removing further RoutePart references and fixing some tests

--HG--
branch : autoroute
This commit is contained in:
randompete
2011-12-08 01:08:12 +00:00
parent 3740d677db
commit d4218ee98f
6 changed files with 19 additions and 14 deletions

View File

@@ -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[] {

View File

@@ -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]