protected EntityFrameworkCore.Data.Right CreateRight(AuthorizationsTestContext context, string rightName)
        {
            var right = new EntityFrameworkCore.Data.Right
            {
                Name           = rightName,
                CreationBy     = context.CurrentUserId,
                ModificationBy = context.CurrentUserId
            };

            context.Rights().Add(right);

            return(right);
        }
        protected EntityFrameworkCore.Data.RoleRight AddRightToRole(AuthorizationsTestContext context, EntityFrameworkCore.Data.Right right, EntityFrameworkCore.Data.Role role)
        {
            var roleRight = new EntityFrameworkCore.Data.RoleRight
            {
                Right = right,
                Role  = role
            };

            context.RoleRights().Add(roleRight);

            return(roleRight);
        }