Decouple runtime domain services

This commit is contained in:
2026-07-26 12:04:50 +02:00
parent 0cedeaa959
commit c1be85e408
9 changed files with 103 additions and 35 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ describe("circuit numbering service", () => {
const service = new CircuitNumberingService({
sectionRepository: {
async findById() {
return { id: "s1", prefix: "-2F" } as never;
return { prefix: "-2F" };
},
},
circuitRepository: {
@@ -18,7 +18,7 @@ describe("circuit numbering service", () => {
{ equipmentIdentifier: "-2F5" },
{ equipmentIdentifier: "-2FX" },
{ equipmentIdentifier: "-1F9" },
] as never[];
];
},
},
});