AllReady.UnitTest.Extensions.ApplicationUserTestHelpers.MakeOrgAdmin C# (CSharp) 메소드

MakeOrgAdmin() 공개 정적인 메소드

public static MakeOrgAdmin ( this user ) : void
user this
리턴 void
        public static void MakeOrgAdmin(this ApplicationUser user)
        {
            user.Claims.Add(new Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserClaim<string>
            {
                ClaimType = AllReady.Security.ClaimTypes.UserType,
                ClaimValue = Enum.GetName(typeof(UserType), UserType.OrgAdmin)
            });
        }
ApplicationUserTestHelpers