refactor: extract interfaces to Interfaces folders and consolidate filters
Move interface declarations into per-area Interfaces/ subfolders, merge the small task-list filter classes into StatusFilter/SmartFlagFilter, and simplify related services, converters and hub DTO handling. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -47,7 +47,7 @@ public class GitServiceMergeTests : IDisposable
|
||||
var branches = await git.ListLocalBranchesAsync(repo.RepoDir);
|
||||
|
||||
Assert.Contains("feature/x", branches);
|
||||
Assert.True(branches.Any(b => b == "main" || b == "master"));
|
||||
Assert.Contains(branches, b => b == "main" || b == "master");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -117,9 +117,8 @@ public class GitServiceMergeTests : IDisposable
|
||||
GitRepoFixture.RunGit(repo.RepoDir, "add", "-A");
|
||||
GitRepoFixture.RunGit(repo.RepoDir, "commit", "-m", "feat: feature edit");
|
||||
|
||||
string defaultBranch = "main";
|
||||
try { GitRepoFixture.RunGit(repo.RepoDir, "checkout", "main"); }
|
||||
catch { GitRepoFixture.RunGit(repo.RepoDir, "checkout", "master"); defaultBranch = "master"; }
|
||||
catch { GitRepoFixture.RunGit(repo.RepoDir, "checkout", "master"); }
|
||||
File.WriteAllText(Path.Combine(repo.RepoDir, "README.md"), "# main side\n");
|
||||
GitRepoFixture.RunGit(repo.RepoDir, "add", "-A");
|
||||
GitRepoFixture.RunGit(repo.RepoDir, "commit", "-m", "chore: main edit");
|
||||
|
||||
@@ -21,6 +21,7 @@ sealed class FakeWorkerClient : IWorkerClient
|
||||
public int WakeQueueCalls { get; private set; }
|
||||
|
||||
public bool IsConnected => false;
|
||||
#pragma warning disable CS0067 // events required by IWorkerClient but not exercised by this fake
|
||||
public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged;
|
||||
public event Action<string, string, DateTime>? TaskStartedEvent;
|
||||
public event Action<string, string, string, DateTime>? TaskFinishedEvent;
|
||||
@@ -59,6 +60,7 @@ sealed class FakeWorkerClient : IWorkerClient
|
||||
public event Action<string, string, IReadOnlyList<string>>? PlanningMergeConflictEvent;
|
||||
public event Action<string>? PlanningMergeAbortedEvent;
|
||||
public event Action<string>? PlanningCompletedEvent;
|
||||
#pragma warning restore CS0067
|
||||
|
||||
public Task<MergeTargetsDto?> GetMergeTargetsAsync(string taskId) => Task.FromResult<MergeTargetsDto?>(null);
|
||||
public Task<IReadOnlyList<SubtaskDiffDto>> GetPlanningAggregateAsync(string planningTaskId) => Task.FromResult<IReadOnlyList<SubtaskDiffDto>>(Array.Empty<SubtaskDiffDto>());
|
||||
|
||||
Reference in New Issue
Block a user