/// <summary> /// Gets the published events for the <paramref name="correlationId"/>. /// </summary> /// <param name="correlationId">The correlation identifier.</param> /// <returns>An <see cref="Beef.Events.EventData"/> array.</returns> public static List <EventData> GetPublishedEvents(string?correlationId = null) => ExpectEventPublisher.GetPublishedEvents(correlationId);
/// <summary> /// Gets the count of <see cref="IEventPublisher.SendAsync">sends</see> that were performed for the specified <paramref name="correlationId"/>. /// </summary> public static int GetSendCount(string?correlationId = null) => ExpectEventPublisher.GetSendCount(correlationId);
/// <summary> /// Gets the events for the <paramref name="correlationId"/>. /// </summary> /// <param name="correlationId">The correlation identifier.</param> /// <param name="removeEvents">Indicates whether to also <see cref="ExpectEventPublisher.Remove(string?)"/> the events.</param> /// <returns>An <see cref="Beef.Events.EventData"/> array.</returns> public static List <EventData> GetEvents(string?correlationId = null, bool removeEvents = false) => ExpectEventPublisher.GetEvents(correlationId, removeEvents);