private void AssertSecurityPoliciesChecked <T, TProtectedResource>(
            Func <ContentService, Task <Either <ActionResult, T> > > protectedAction,
            TProtectedResource resource,
            params SecurityPolicies[] policies)
        {
            var(contentDbContext, persistenceHelper, mapper, userService) = Mocks();

            var service = new ContentService(contentDbContext.Object, persistenceHelper.Object, mapper.Object, userService.Object);

            PermissionTestUtil.AssertSecurityPoliciesChecked(protectedAction, resource, userService, service, policies);
        }