public void ApplyEventThrowsExceptionForMissingTransitionsTest() { var ar = new TestAggregate(); var e = new TestEvent(new TestId("5ad093ef-15b9-4cce-9e20-a75772972061")); try { ar.ApplyEvent(e); Assert.Fail("Aggregate root should throw AggregateException for missing transitions."); } catch (AggregateException) { // Expect this exception } }