feat: atomic review writes with events

This commit is contained in:
2026-10-26 00:40:43 +01:00
parent 0236a488fa
commit c8a1e8bfe4
19 changed files with 440 additions and 117 deletions

View File

@@ -39,7 +39,10 @@ async fn logging_a_review_creates_the_movie_and_the_review() {
log_review::execute(&logger, cmd).await.unwrap();
assert_eq!(reviews.review_count(), 1, "review should be saved");
assert!(!events.published().is_empty(), "events should be published");
assert!(
!movies.recorded_events().is_empty(),
"events should be recorded with the review"
);
}
#[tokio::test]