Trait thalo_testing::Given [−][src]
pub trait Given: Aggregate + Sized {
fn given(
id: impl Into<<Self as Aggregate>::ID>,
event: <Self as Aggregate>::Event
) -> GivenTest<Self> { ... }
fn given_events(
id: impl Into<<Self as Aggregate>::ID>,
events: impl Into<Vec<<Self as Aggregate>::Event>>
) -> GivenTest<Self> { ... }
fn given_no_events(
id: impl Into<<Self as Aggregate>::ID>
) -> GivenTest<Self> { ... }
}Expand description
Given events for an aggregate.
Provided methods
Given a single event for an aggregate.
Given events for an aggregate.
