refactor: restructure domain crate by bounded context

This commit is contained in:
2026-05-31 04:44:48 +02:00
parent 2b62d1ec81
commit de93373b43
136 changed files with 2111 additions and 2096 deletions

View File

@@ -0,0 +1,14 @@
use domain::events::DomainEvent;
use domain::value_objects::{DateTimeStamp, SystemId};
#[test]
fn asset_ingested_serde_roundtrip() {
let event = DomainEvent::AssetIngested {
asset_id: SystemId::new(),
owner_user_id: SystemId::new(),
timestamp: DateTimeStamp::now(),
};
let json = serde_json::to_string(&event).unwrap();
let back: DomainEvent = serde_json::from_str(&json).unwrap();
assert!(matches!(back, DomainEvent::AssetIngested { .. }));
}