diff --git a/lib/aspnetmvc/Microsoft.Data.dll b/lib/aspnetmvc/Microsoft.Data.dll deleted file mode 100644 index fd4d04f34..000000000 Binary files a/lib/aspnetmvc/Microsoft.Data.dll and /dev/null differ diff --git a/lib/aspnetmvc/Microsoft.Web.Infrastructure.dll b/lib/aspnetmvc/Microsoft.Web.Infrastructure.dll index f9ef14129..6f4fdf498 100644 Binary files a/lib/aspnetmvc/Microsoft.Web.Infrastructure.dll and b/lib/aspnetmvc/Microsoft.Web.Infrastructure.dll differ diff --git a/lib/aspnetmvc/Microsoft.Web.Mvc.dll b/lib/aspnetmvc/Microsoft.Web.Mvc.dll deleted file mode 100644 index 5a5870c2c..000000000 Binary files a/lib/aspnetmvc/Microsoft.Web.Mvc.dll and /dev/null differ diff --git a/lib/aspnetmvc/Microsoft.WebPages.dll b/lib/aspnetmvc/Microsoft.WebPages.dll deleted file mode 100644 index 34553e6d3..000000000 Binary files a/lib/aspnetmvc/Microsoft.WebPages.dll and /dev/null differ diff --git a/lib/aspnetmvc/System.Razor.Web.dll b/lib/aspnetmvc/System.Razor.Web.dll deleted file mode 100644 index dade0391c..000000000 Binary files a/lib/aspnetmvc/System.Razor.Web.dll and /dev/null differ diff --git a/lib/aspnetmvc/System.Razor.dll b/lib/aspnetmvc/System.Razor.dll deleted file mode 100644 index bd1479d6b..000000000 Binary files a/lib/aspnetmvc/System.Razor.dll and /dev/null differ diff --git a/lib/aspnetmvc/System.Web.Helpers.dll b/lib/aspnetmvc/System.Web.Helpers.dll new file mode 100644 index 000000000..be49eb6eb Binary files /dev/null and b/lib/aspnetmvc/System.Web.Helpers.dll differ diff --git a/lib/aspnetmvc/System.Web.Mvc.dll b/lib/aspnetmvc/System.Web.Mvc.dll index a4193003a..2a5c3405d 100644 Binary files a/lib/aspnetmvc/System.Web.Mvc.dll and b/lib/aspnetmvc/System.Web.Mvc.dll differ diff --git a/lib/aspnetmvc/System.Web.Razor.dll b/lib/aspnetmvc/System.Web.Razor.dll new file mode 100644 index 000000000..4c8a126e2 Binary files /dev/null and b/lib/aspnetmvc/System.Web.Razor.dll differ diff --git a/lib/aspnetmvc/System.Web.WebPages.Razor.dll b/lib/aspnetmvc/System.Web.WebPages.Razor.dll new file mode 100644 index 000000000..b9a45ba7e Binary files /dev/null and b/lib/aspnetmvc/System.Web.WebPages.Razor.dll differ diff --git a/lib/aspnetmvc/System.Web.WebPages.dll b/lib/aspnetmvc/System.Web.WebPages.dll new file mode 100644 index 000000000..e0ed8b603 Binary files /dev/null and b/lib/aspnetmvc/System.Web.WebPages.dll differ diff --git a/lib/aspnetmvc/WebMatrix.Data.dll b/lib/aspnetmvc/WebMatrix.Data.dll new file mode 100644 index 000000000..1b5cb783a Binary files /dev/null and b/lib/aspnetmvc/WebMatrix.Data.dll differ diff --git a/src/Orchard.Tests/Environment/DefaultOrchardHostTests.cs b/src/Orchard.Tests/Environment/DefaultOrchardHostTests.cs index 77b9b5e3e..3de07ac2c 100644 --- a/src/Orchard.Tests/Environment/DefaultOrchardHostTests.cs +++ b/src/Orchard.Tests/Environment/DefaultOrchardHostTests.cs @@ -26,6 +26,7 @@ using Orchard.Mvc.Routes; using Orchard.Tests.Environment.TestDependencies; using Orchard.Tests.Stubs; using Orchard.Tests.Utility; +using IModelBinderProvider = Orchard.Mvc.ModelBinders.IModelBinderProvider; namespace Orchard.Tests.Environment { [TestFixture] diff --git a/src/Orchard.Tests/Environment/DefaultOrchardShellTests.cs b/src/Orchard.Tests/Environment/DefaultOrchardShellTests.cs index 51be38c77..15574fc4e 100644 --- a/src/Orchard.Tests/Environment/DefaultOrchardShellTests.cs +++ b/src/Orchard.Tests/Environment/DefaultOrchardShellTests.cs @@ -8,6 +8,7 @@ using NUnit.Framework; using Orchard.Environment; using Orchard.Mvc.ModelBinders; using Orchard.Mvc.Routes; +using IModelBinderProvider = Orchard.Mvc.ModelBinders.IModelBinderProvider; namespace Orchard.Tests.Environment { [TestFixture] diff --git a/src/Orchard.Tests/UI/ShapeTests.cs b/src/Orchard.Tests/UI/ShapeTests.cs index 28b705fc9..f5d8fb4c0 100644 --- a/src/Orchard.Tests/UI/ShapeTests.cs +++ b/src/Orchard.Tests/UI/ShapeTests.cs @@ -22,7 +22,7 @@ namespace Orchard.Tests.UI { builder.RegisterType().As(); builder.RegisterType().As(); builder.RegisterType().As(); - builder.RegisterType().As(); + builder.RegisterType().As(); //builder.RegisterType().As(); builder.RegisterType().As(); @@ -35,74 +35,74 @@ namespace Orchard.Tests.UI { [Test, Ignore("implementation pending")] public void WorkContextPageIsLayoutShape() { - var page = _workContext.Page; - ShapeMetadata pageMetadata = page.Metadata; + var layout = _workContext.Layout; + ShapeMetadata pageMetadata = layout.Metadata; Assert.That(pageMetadata.Type, Is.EqualTo("Layout")); - Assert.That(page.Metadata.Type, Is.EqualTo("Layout")); + Assert.That(layout.Metadata.Type, Is.EqualTo("Layout")); } [Test, Ignore("implementation pending")] public void PagePropertiesAreNil() { - var page = _workContext.Page; - var pageFoo = page.Foo; + var layout = _workContext.Layout; + var pageFoo = layout.Foo; Assert.That(pageFoo == null); } [Test, Ignore("implementation pending")] public void PageZonesPropertyIsNotNil() { - var page = _workContext.Page; - var pageZones = page.Zones; + var layout = _workContext.Layout; + var pageZones = layout.Zones; Assert.That(pageZones != null); Assert.That(pageZones.Foo == null); } [Test, Ignore("implementation pending")] public void AddingToZonePropertyMakesItExist() { - var page = _workContext.Page; - Assert.That(page.Zones.Foo == null); + var layout = _workContext.Layout; + Assert.That(layout.Zones.Foo == null); - var pageZonesFoo = page.Zones.Foo; + var pageZonesFoo = layout.Zones.Foo; pageZonesFoo.Add("hello"); - Assert.That(page.Zones.Foo != null); - Assert.That(page.Foo != null); - Assert.That(page.Foo.Metadata.Type, Is.EqualTo("Zone")); + Assert.That(layout.Zones.Foo != null); + Assert.That(layout.Foo != null); + Assert.That(layout.Foo.Metadata.Type, Is.EqualTo("Zone")); } [Test, Ignore("implementation pending")] public void AddingToZoneIndexedMakesItExist() { - var page = _workContext.Page; - Assert.That(page.Zones["Foo"] == null); + var layout = _workContext.Layout; + Assert.That(layout.Zones["Foo"] == null); - var pageZonesFoo = page.Zones["Foo"]; + var pageZonesFoo = layout.Zones["Foo"]; pageZonesFoo.Add("hello"); - Assert.That(page.Zones["Foo"] != null); - Assert.That(page["Foo"] != null); - Assert.That(page["Foo"].Metadata.Type, Is.EqualTo("Zone")); + Assert.That(layout.Zones["Foo"] != null); + Assert.That(layout["Foo"] != null); + Assert.That(layout["Foo"].Metadata.Type, Is.EqualTo("Zone")); } [Test, Ignore("implementation pending")] public void CallingAddOnNilPropertyMakesItBecomeZone() { - var page = _workContext.Page; - Assert.That(page.Foo == null); + var layout = _workContext.Layout; + Assert.That(layout.Foo == null); - page.Foo.Add("hello"); + layout.Foo.Add("hello"); - Assert.That(page.Foo != null); - Assert.That(page.Foo.Metadata.Type, Is.EqualTo("Zone")); + Assert.That(layout.Foo != null); + Assert.That(layout.Foo.Metadata.Type, Is.EqualTo("Zone")); } [Test, Ignore("implementation pending")] public void ZoneContentsAreEnumerable() { - var page = _workContext.Page; - Assert.That(page.Foo == null); + var layout = _workContext.Layout; + Assert.That(layout.Foo == null); - page.Foo.Add("hello"); - page.Foo.Add("world"); + layout.Foo.Add("hello"); + layout.Foo.Add("world"); var list = new List(); - foreach (var item in page.Foo) { + foreach (var item in layout.Foo) { list.Add(item); } @@ -126,11 +126,11 @@ namespace Orchard.Tests.UI { [Test, Ignore("implementation pending")] public void NumberIsFortyTwo() { - var page = _workContext.Page; - Assert.That(page.Number, Is.EqualTo(42)); - Assert.That(page.Foo.Number == null); - page.Foo.Add("yarg"); - Assert.That(page.Foo.Number, Is.EqualTo(42)); + var layout = _workContext.Layout; + Assert.That(layout.Number, Is.EqualTo(42)); + Assert.That(layout.Foo.Number == null); + layout.Foo.Add("yarg"); + Assert.That(layout.Foo.Number, Is.EqualTo(42)); } } diff --git a/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Fields/Common.TextField.cshtml b/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Fields/Common.TextField.cshtml index 652feef47..cf10b0d50 100644 --- a/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Fields/Common.TextField.cshtml +++ b/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Fields/Common.TextField.cshtml @@ -1,3 +1,3 @@ @model Orchard.Core.Common.Fields.TextField -@using Orchard.Utility.Extensions +@using Orchard.Utility.Extensions;

@Model.Name.CamelFriendly(): @Model.Value

\ No newline at end of file diff --git a/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.Manage.cshtml b/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.Manage.cshtml index 45bdd3478..7340291dc 100644 --- a/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.Manage.cshtml +++ b/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.Manage.cshtml @@ -1,5 +1,5 @@ @model BodyDisplayViewModel -@using Orchard.Core.Common.ViewModels +@using Orchard.Core.Common.ViewModels;
@Html.ItemEditLinkWithReturnUrl(T("Edit").ToString(), Model.BodyPart.ContentItem)
\ No newline at end of file diff --git a/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.ManageWrapperPost.cshtml b/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.ManageWrapperPost.cshtml index 9a9ee2c1d..a24a87b20 100644 --- a/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.ManageWrapperPost.cshtml +++ b/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.ManageWrapperPost.cshtml @@ -1,7 +1,7 @@ @model BodyDisplayViewModel -@using Orchard.Core.Common.ViewModels -@/* begin: knowingly broken HTML (hence the ManageWrapperPre and ManageWrapperPost templates) +@using Orchard.Core.Common.ViewModels; +@* begin: knowingly broken HTML (hence the ManageWrapperPre and ManageWrapperPost templates) we need "wrapper templates" (among other functionality) in the future of UI composition -please do not delete or the front end will be broken when the user is authenticated. */ +please do not delete or the front end will be broken when the user is authenticated. *@ -@/* begin: knowingly broken HTML */ \ No newline at end of file +@* begin: knowingly broken HTML *@ \ No newline at end of file diff --git a/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.ManageWrapperPre.cshtml b/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.ManageWrapperPre.cshtml index c9182ef28..930523ad4 100644 --- a/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.ManageWrapperPre.cshtml +++ b/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.ManageWrapperPre.cshtml @@ -1,3 +1,3 @@ @model BodyDisplayViewModel -@using Orchard.Core.Common.ViewModels +@using Orchard.Core.Common.ViewModels;
\ No newline at end of file diff --git a/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.Summary.cshtml b/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.Summary.cshtml index 64c03cd9b..c01416962 100644 --- a/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.Summary.cshtml +++ b/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.Summary.cshtml @@ -1,8 +1,8 @@ @model BodyDisplayViewModel -@using Orchard.Core.Common.ViewModels -@/*//doing excerpt generation on the way out for now so we don't stick ourselves with needing to regen excerpts for existing data - //also, doing this here, inline, until we have a pluggable processing model (both in and out) - //also, ...this is ugly*/ +@using Orchard.Core.Common.ViewModels; +@*doing excerpt generation on the way out for now so we don't stick ourselves with needing to regen excerpts for existing data + also, doing this here, inline, until we have a pluggable processing model (both in and out) + also, ...this is ugly *@ @{ var body = new HtmlString(Html.Excerpt(Model.Html.ToString(), 200).ToString().Replace(Environment.NewLine, "

" + Environment.NewLine + "

")); } diff --git a/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.cshtml b/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.cshtml index b3b4584d8..0592419bf 100644 --- a/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.cshtml +++ b/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.cshtml @@ -1,3 +1,3 @@ @model BodyDisplayViewModel -@using Orchard.Core.Common.ViewModels +@using Orchard.Core.Common.ViewModels; @Model.Html \ No newline at end of file diff --git a/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Metadata.cshtml b/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Metadata.cshtml index d5cbe0eee..fa8036d7e 100644 --- a/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Metadata.cshtml +++ b/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Metadata.cshtml @@ -1,5 +1,5 @@ @model Orchard.Core.Common.ViewModels.CommonMetadataViewModel -@using Orchard.Core.Common.Extensions +@using Orchard.Core.Common.Extensions; @if (Model.Creator != null) {