From 6ce5803bfae5500a0c829c4480794019012dbef4 Mon Sep 17 00:00:00 2001 From: pqhuy1987 Date: Tue, 16 Jun 2026 10:50:05 +0700 Subject: [PATCH] =?UTF-8?q?[CLAUDE]=20Tests:=20fix=20CreateDepartmentComma?= =?UTF-8?q?nd=20call-site=20(+ParentId=205th=20arg)=20=E2=80=94=20unblock?= =?UTF-8?q?=20deploy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mig AddDepartmentParentId (0f44d97) thêm ParentId positional thứ 5 vào CreateDepartmentCommand, nhưng MasterCatalogFilteredUniqueTests.cs:63 còn gọi 4-arg -> CS7036, test-gate FAIL Run #291 (deploy gated, prod nguyên = baseline). CLAUDE.md §7 spec-change miss (build Api.csproj lẻ thay vì slnx full -> lọt tests). Full `dotnet build SolutionErp.slnx` PASS sau fix. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../Application/MasterCatalogFilteredUniqueTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/SolutionErp.Infrastructure.Tests/Application/MasterCatalogFilteredUniqueTests.cs b/tests/SolutionErp.Infrastructure.Tests/Application/MasterCatalogFilteredUniqueTests.cs index 371d595..5e4e60f 100644 --- a/tests/SolutionErp.Infrastructure.Tests/Application/MasterCatalogFilteredUniqueTests.cs +++ b/tests/SolutionErp.Infrastructure.Tests/Application/MasterCatalogFilteredUniqueTests.cs @@ -60,7 +60,7 @@ public class MasterCatalogFilteredUniqueTests // nhưng DB UNIQUE bare tính cả row đã xoá → SaveChanges sẽ ném DbUpdateException CHỪNG NÀO // migration chưa filter index. Đây là gotcha #57 confirmed. var act = async () => await new CreateDepartmentCommandHandler(db) - .Handle(new CreateDepartmentCommand("DUP1", "Phòng ban mới", null, null), + .Handle(new CreateDepartmentCommand("DUP1", "Phòng ban mới", null, null, null), CancellationToken.None); await act.Should().NotThrowAsync(