using ClaudeDo.Data; using ClaudeDo.Data.Models; namespace ClaudeDo.Worker.Tests.Infrastructure; internal static class TestDependencies { /// /// Seeds task_dependencies rows straight through the context. The production writer is /// TaskStateService.SetDependsOnAsync, which most read-path fixtures don't build — /// this is the "arrange" shortcut, not a second writer. /// public static async Task SeedDependsOnAsync( this ClaudeDoDbContext ctx, string taskId, params string[] dependsOnTaskIds) { ctx.TaskDependencies.AddRange(dependsOnTaskIds.Select(id => new TaskDependencyEntity { TaskId = taskId, DependsOnTaskId = id })); await ctx.SaveChangesAsync(); } }