"Fixing" failing UT.

--HG--
branch : dev
This commit is contained in:
Andre Rodrigues
2010-10-12 17:10:17 -07:00
parent 30cb7dc75d
commit 9480774bcb
3 changed files with 2 additions and 13 deletions

View File

@@ -84,7 +84,7 @@ namespace Orchard.Core.Tests.Common.Providers {
}
class TestUser : ContentPart, IUser {
public int Id { get { return 6655321; } }
public new int Id { get { return 6655321; } }
public string UserName {get { return "x"; }}
public string Email { get { return "y"; } }
}

View File

@@ -3,10 +3,6 @@ using Orchard.Security;
namespace Orchard.Users.Models {
public sealed class UserPart : ContentPart<UserPartRecord>, IUser {
public int Id {
get { return ContentItem.Id; }
}
public string UserName {
get { return Record.UserName; }
set { Record.UserName = value; }

View File

@@ -1,12 +1,5 @@
using Orchard.UI;
namespace Orchard.ContentManagement {
namespace Orchard.ContentManagement {
public interface IContent {
ContentItem ContentItem { get; }
/// <summary>
/// The ContentItem's identifier.
/// </summary>
int Id { get; }
}
}