feat(ai): queue strategy snapshots

This commit is contained in:
cesnimda
2026-08-09 12:51:46 +02:00
parent 5eb9b3cb96
commit a62122640c
12 changed files with 790 additions and 158 deletions
@@ -85,7 +85,7 @@ public sealed class ProEntitlementAuthorizationTests
[InlineData(typeof(ProfileCvController), nameof(ProfileCvController.Improve))]
[InlineData(typeof(JobApplicationsController), nameof(JobApplicationsController.RefreshAi))]
[InlineData(typeof(JobApplicationsController), nameof(JobApplicationsController.GetCandidateFit))]
[InlineData(typeof(JobApplicationsController), nameof(JobApplicationsController.GetFocusPlan))]
[InlineData(typeof(StrategySnapshotController), nameof(StrategySnapshotController.Enqueue))]
[InlineData(typeof(JobApplicationsController), nameof(JobApplicationsController.GetInterviewPrep))]
[InlineData(typeof(JobApplicationsController), nameof(JobApplicationsController.GenerateTailoredCvDraft))]
[InlineData(typeof(JobApplicationsController), nameof(JobApplicationsController.GenerateApplicationPackage))]
@@ -94,7 +94,9 @@ public sealed class ProEntitlementAuthorizationTests
{
var method = controller.GetMethod(action);
Assert.NotNull(method);
Assert.Contains(method!.GetCustomAttributes(typeof(AuthorizeAttribute), true).Cast<AuthorizeAttribute>(),
var attributes = method!.GetCustomAttributes(typeof(AuthorizeAttribute), true).Cast<AuthorizeAttribute>()
.Concat(controller.GetCustomAttributes(typeof(AuthorizeAttribute), true).Cast<AuthorizeAttribute>());
Assert.Contains(attributes,
attribute => attribute.Policy == ProEntitlement.Policy);
}