/// <summary> /// Retrieves an array of all the envelopes sent through the stub transport /// </summary> /// <param name="host"></param> /// <returns></returns> public static Envelope[] GetAllEnvelopesSent(this IWebHost host) { return(host.GetStubTransport().Channels.SelectMany(x => x.Sent).ToArray()); }
/// <summary> /// Clears all record of messages sent to the stub transport /// </summary> /// <param name="host"></param> public static void ClearStubTransportSentList(this IWebHost host) { host.GetStubTransport().Channels.Each(x => x.Sent.Clear()); }