mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-24 13:33:34 +08:00
Fixing namespace in Notify components. Adding nunit project to list.
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4039949
This commit is contained in:
@@ -12,8 +12,8 @@ using Orchard.Data;
|
||||
using Orchard.Models;
|
||||
using Orchard.Models.Driver;
|
||||
using Orchard.Models.Records;
|
||||
using Orchard.Notify;
|
||||
using Orchard.Security;
|
||||
using Orchard.UI.Notify;
|
||||
using Orchard.Users.Controllers;
|
||||
using Orchard.Users.Models;
|
||||
using Orchard.Users.ViewModels;
|
||||
|
@@ -119,8 +119,8 @@
|
||||
<Compile Include="Mvc\OrchardControllerIdentificationStrategyTests.cs" />
|
||||
<Compile Include="Mvc\RouteCollectionPublisherTests.cs" />
|
||||
<Compile Include="Mvc\Routes\StandardPackageRouteProviderTests.cs" />
|
||||
<Compile Include="Notify\NotifierTests.cs" />
|
||||
<Compile Include="Notify\NotifyFilterTests.cs" />
|
||||
<Compile Include="UI\Notify\NotifierTests.cs" />
|
||||
<Compile Include="UI\Notify\NotifyFilterTests.cs" />
|
||||
<Compile Include="Packages\PackageFoldersTests.cs" />
|
||||
<Compile Include="Packages\PackageManagerTests.cs" />
|
||||
<Compile Include="Services\ClockTests.cs" />
|
||||
|
@@ -1,7 +1,7 @@
|
||||
using NUnit.Framework;
|
||||
using Orchard.Notify;
|
||||
using Orchard.UI.Notify;
|
||||
|
||||
namespace Orchard.Tests.Notify {
|
||||
namespace Orchard.Tests.UI.Notify {
|
||||
[TestFixture]
|
||||
public class NotifierTests {
|
||||
|
@@ -3,10 +3,10 @@ using System.Web.Routing;
|
||||
using Moq;
|
||||
using NUnit.Framework;
|
||||
using Orchard.Mvc.ViewModels;
|
||||
using Orchard.Notify;
|
||||
using Orchard.Tests.Stubs;
|
||||
using Orchard.UI.Notify;
|
||||
|
||||
namespace Orchard.Tests.Notify {
|
||||
namespace Orchard.Tests.UI.Notify {
|
||||
[TestFixture]
|
||||
public class NotifyFilterTests {
|
||||
private static ActionExecutedContext BuildContext() {
|
@@ -11,8 +11,8 @@ using Orchard.CmsPages.Services;
|
||||
using Orchard.CmsPages.Services.Templates;
|
||||
using Orchard.CmsPages.ViewModels;
|
||||
using Orchard.Data;
|
||||
using Orchard.Notify;
|
||||
using Orchard.Tests.Stubs;
|
||||
using Orchard.UI.Notify;
|
||||
using Orchard.Utility;
|
||||
|
||||
namespace Orchard.CmsPages.Tests.Controllers {
|
||||
|
@@ -10,7 +10,7 @@ using Orchard.CmsPages.Services.Templates;
|
||||
using Orchard.CmsPages.ViewModels;
|
||||
using Orchard.Data;
|
||||
using Orchard.Logging;
|
||||
using Orchard.Notify;
|
||||
using Orchard.UI.Notify;
|
||||
|
||||
namespace Orchard.CmsPages.Controllers {
|
||||
[ValidateInput(false)]
|
||||
|
@@ -5,7 +5,7 @@ using System.Web.Mvc;
|
||||
using Orchard.Media.Models;
|
||||
using Orchard.Media.Services;
|
||||
using Orchard.Media.ViewModels;
|
||||
using Orchard.Notify;
|
||||
using Orchard.UI.Notify;
|
||||
|
||||
namespace Orchard.Media.Controllers {
|
||||
[ValidateInput(false)]
|
||||
|
@@ -2,10 +2,10 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
using Orchard.Notify;
|
||||
using Orchard.Roles.Models;
|
||||
using Orchard.Roles.Services;
|
||||
using Orchard.Roles.ViewModels;
|
||||
using Orchard.UI.Notify;
|
||||
|
||||
namespace Orchard.Roles.Controllers {
|
||||
[ValidateInput(false)]
|
||||
|
@@ -3,8 +3,8 @@ using System.Linq;
|
||||
using System.Web.Mvc;
|
||||
using Orchard.Data;
|
||||
using Orchard.Models;
|
||||
using Orchard.Notify;
|
||||
using Orchard.Security;
|
||||
using Orchard.UI.Notify;
|
||||
using Orchard.Users.Models;
|
||||
using Orchard.Users.ViewModels;
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<Orchard.Notify.NotifyEntry>>" %>
|
||||
<%@ Import Namespace="Orchard.Notify"%>
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<NotifyEntry>>" %>
|
||||
<%@ Import Namespace="Orchard.UI.Notify"%>
|
||||
|
||||
<script runat="server">
|
||||
string CssClassName(NotifyType type) {
|
||||
|
@@ -1,6 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
using Orchard.Notify;
|
||||
using Orchard.Security;
|
||||
using Orchard.UI.Notify;
|
||||
|
||||
namespace Orchard.Mvc.ViewModels {
|
||||
public class BaseViewModel {
|
||||
|
@@ -1,8 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Orchard.Logging;
|
||||
|
||||
namespace Orchard.Notify {
|
||||
namespace Orchard.UI.Notify {
|
||||
public interface INotifier : IDependency {
|
||||
void Add(NotifyType type, string message);
|
||||
IEnumerable<NotifyEntry> List();
|
||||
|
@@ -1,4 +1,4 @@
|
||||
namespace Orchard.Notify {
|
||||
namespace Orchard.UI.Notify {
|
||||
public static class NotifierExtensions {
|
||||
public static void Information(this INotifier notifier, string message) {
|
||||
notifier.Add(NotifyType.Information, message);
|
||||
|
@@ -1,4 +1,4 @@
|
||||
namespace Orchard.Notify {
|
||||
namespace Orchard.UI.Notify {
|
||||
public enum NotifyType {
|
||||
Information,
|
||||
Warning,
|
||||
|
@@ -6,7 +6,7 @@ using System.Web.Mvc;
|
||||
using Orchard.Mvc.Filters;
|
||||
using Orchard.Mvc.ViewModels;
|
||||
|
||||
namespace Orchard.Notify {
|
||||
namespace Orchard.UI.Notify {
|
||||
public class NotifyFilter : FilterProvider, IActionFilter, IResultFilter {
|
||||
private const string TempDataMessages = "messages";
|
||||
private readonly INotifier _notifier;
|
||||
|
Reference in New Issue
Block a user