Struct cqrs_eventsourcing::GivenThenTest[][src]

pub struct GivenThenTest<A, E, S, C> where
    A: Aggregate,
    E: DomainEvent<A>,
    S: Store<A, E>,
    C: Command<A, E>, 
{ /* fields omitted */ }

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]

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

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

impl<A, E, S, C> UnwindSafe for GivenThenTest<A, E, S, C> where
    A: UnwindSafe,
    C: UnwindSafe,
    E: UnwindSafe,
    S: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.