mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 02:44:52 +08:00
"Fixing" failing UT.
--HG-- branch : dev
This commit is contained in:
@@ -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"; } }
|
||||
}
|
||||
|
@@ -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; }
|
||||
|
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user