// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; namespace Microsoft.AspNetCore.Identity.Test { /// /// Represents a Role entity /// public class TestRole : TestRole { /// /// Constructor /// public TestRole() { Id = Guid.NewGuid().ToString(); } /// /// Constructor /// /// public TestRole(string roleName) : this() { Name = roleName; } } /// /// Represents a Role entity /// /// public class TestRole where TKey : IEquatable { /// /// Constructor /// public TestRole() { } /// /// Constructor /// /// public TestRole(string roleName) : this() { Name = roleName; } /// /// Role id /// public virtual TKey Id { get; set; } /// /// Navigation property for claims in the role /// public virtual ICollection> Claims { get; private set; } = new List>(); /// /// Role name /// public virtual string Name { get; set; } /// /// Normalized name used for equality /// public virtual string NormalizedName { get; set; } /// /// A random value that should change whenever a role is persisted to the store /// public virtual string ConcurrencyStamp { get; set; } = Guid.NewGuid().ToString(); } }