feat: atomic review writes with events
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user