public void GivenUserRoleIsUnknown_WhenGrantAccess_ThenThrowException()
        {
            SetServiceTypePrivacyPermission target = new SetServiceTypePrivacyPermission();
            EducationSecurityPrincipal      user   = CreateUserWithUnknownRole();

            target.ExpectException <EntityAccessUnauthorizedException>(() => target.GrantAccess(user));
        }
        public void GivenUserRoleIsUnknown_WhenGrantAccess_ThenThrowException()
        {
            SetServiceTypePrivacyPermission target = new SetServiceTypePrivacyPermission();
            EducationSecurityPrincipal user = CreateUserWithUnknownRole();

            target.ExpectException<EntityAccessUnauthorizedException>(() => target.GrantAccess(user));
        }
        public void GivenUserIsDataAdmin_WhenGrantAccess_ThenSucceed()
        {
            SetServiceTypePrivacyPermission target = new SetServiceTypePrivacyPermission();
            EducationSecurityPrincipal      user   = CreateDataAdminUser();

            target.GrantAccess(user);
        }
        public void GivenUserIsDataAdmin_WhenGrantAccess_ThenSucceed()
        {
            SetServiceTypePrivacyPermission target = new SetServiceTypePrivacyPermission();
            EducationSecurityPrincipal user = CreateDataAdminUser();

            target.GrantAccess(user);
        }