Struct cqrs_eventsourcing::GivenThenTest [−][src]
Implementations
impl<A, E, S, C> GivenThenTest<A, E, S, C> where
A: Aggregate,
E: DomainEvent<A>,
S: Store<A, E>,
C: Command<A, E>,
[src]
A: Aggregate,
E: DomainEvent<A>,
S: Store<A, E>,
C: Command<A, E>,
pub fn new() -> GivenThenTest<A, E, S, C>
[src]
pub fn given(self, events: Vec<E>) -> GivenThenTest<A, E, S, C>
[src]
pub fn when(self, command: C) -> GivenThenTest<A, E, S, C>
[src]
pub fn then(self, expected: Vec<E>) -> GivenThenTest<A, E, S, C>
[src]
pub fn then_error(self, expected_error: Error) -> GivenThenTest<A, E, S, C>
[src]
pub async fn run(&mut self) -> Result<(), Error>
[src]
Auto Trait Implementations
impl<A, E, S, C> RefUnwindSafe for GivenThenTest<A, E, S, C> where
A: RefUnwindSafe,
C: RefUnwindSafe,
E: RefUnwindSafe,
S: RefUnwindSafe,
A: RefUnwindSafe,
C: RefUnwindSafe,
E: RefUnwindSafe,
S: RefUnwindSafe,
impl<A, E, S, C> Send for GivenThenTest<A, E, S, C>
impl<A, E, S, C> Sync for GivenThenTest<A, E, S, C>
impl<A, E, S, C> Unpin for GivenThenTest<A, E, S, C> where
A: Unpin,
C: Unpin,
E: Unpin,
S: Unpin,
A: Unpin,
C: Unpin,
E: Unpin,
S: Unpin,
impl<A, E, S, C> UnwindSafe for GivenThenTest<A, E, S, C> where
A: UnwindSafe,
C: UnwindSafe,
E: UnwindSafe,
S: UnwindSafe,
A: UnwindSafe,
C: UnwindSafe,
E: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,