AllReady.UnitTest.Extensions.ApplicationUserTestHelpers.MakeOrgAdmin C# (CSharp) Method

MakeOrgAdmin() public static method

public static MakeOrgAdmin ( this user ) : void
user this
return 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