[CLAUDE] Tests: fix CreateDepartmentCommand call-site (+ParentId 5th arg) — unblock deploy
All checks were successful
Deploy SOLUTION_ERP / build-deploy (push) Successful in 4m6s
All checks were successful
Deploy SOLUTION_ERP / build-deploy (push) Successful in 4m6s
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) <noreply@anthropic.com>
This commit is contained in:
@ -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(
|
||||
|
||||
Reference in New Issue
Block a user