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:
loudej
2009-11-12 19:19:45 +00:00
parent 51d756a573
commit df24fa629a
15 changed files with 19 additions and 20 deletions

View File

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

View File

@@ -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" />

View File

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

View File

@@ -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() {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -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) {

View File

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

View File

@@ -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();

View File

@@ -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);

View File

@@ -1,4 +1,4 @@
namespace Orchard.Notify {
namespace Orchard.UI.Notify {
public enum NotifyType {
Information,
Warning,

View File

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