From 23125ef4921317c17c6791a9c6f53e7f00031f84 Mon Sep 17 00:00:00 2001 From: Niek Otten Date: Tue, 14 Jul 2026 17:15:41 +0200 Subject: [PATCH] test(domain): a behandelaar can take a registration into behandeling (refs #13) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit First step of S-12a (beoordeling decision model): an INGEDIEND registration moves to IN_BEHANDELING when a behandelaar picks it up. Red — TakeIntoBehandeling() and the InBehandeling status do not exist yet. Co-Authored-By: Claude Opus 4.8 (1M context) --- services/domain/Big.Tests/RegistrationTests.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/services/domain/Big.Tests/RegistrationTests.cs b/services/domain/Big.Tests/RegistrationTests.cs index b069ecc..18ee1d9 100644 --- a/services/domain/Big.Tests/RegistrationTests.cs +++ b/services/domain/Big.Tests/RegistrationTests.cs @@ -121,4 +121,14 @@ public class RegistrationTests Assert.Contains("only an INGEDIEND", ex.Message); Assert.Equal(RegistrationStatus.Ingeschreven, registration.Status); } + + [Fact] + public void Taking_a_registration_into_behandeling_moves_it_to_in_behandeling() + { + var registration = Registration.Submit("123456782"); + + registration.TakeIntoBehandeling(); + + Assert.Equal(RegistrationStatus.InBehandeling, registration.Status); + } }