Source/Events/EventStreamAssertion.cs
/// <summary>
/// Starts the Fluent Interface by establishing an Event sequence to assert against.
/// </summary>
/// <param name="eventSource">The <see cref="AggregateRoot" /> containing the events to assert against.</param>
/// <typeparam name="T"><see cref="Type" /> of the <see cref="IEvent" /> that you wish to assert against.</typeparam>
/// <returns>An <see cref="EventSequenceAssertion{T}" /> scoped to your <see cref="IEvent" /> type.</returns>
Starts the Fluent Interface by establishing an Event sequence to assert against.
Starts the Fluent Interface by establishing an Event sequence to assert against .
public static EventSequenceAssertion<T> ShouldHaveEvent<T>(this AggregateRoot eventSource)
            where T : IEvent
        {
            var sequenceValidation = new EventSequenceAssertion<T>(eventSource.UncommittedEvents);
            return sequenceValidation;
        }
public static EventSequenceAssertion < T > ShouldHaveEvent < T > ( this AggregateRoot eventSource ) where T : IEvent { var sequenceValidation = new EventSequenceAssertion < T > ( eventSource . UncommittedEvents ) ; return sequenceValidation ; }
Starts the Fluent Interface by establishing an Event sequence to assert against.
Starts the Fluent Interface by establishing an Event sequence to assert against .
An  scoped to your  type.
An scoped to your type .
AggregateRoot
this
eventSource
The  containing the events to assert against.
The containing the events to assert against .
typeparam
of the  that you wish to assert against.
of the that you wish to assert against .