TestEventCollection Class
Namespace
Statiq.Testing
Interfaces
Base Types
  • object
TestEventCollection
object
IEventCollection
IReadOnlyEventCollection

Syntax

public class TestEventCollection : IEventCollection, IReadOnlyEventCollection

Methods

Name Return Value Summary
RaiseAsync<TEvent>(TEvent) Task<bool>
Raises all handlers for a registered event (as indicated by the TEvent type).
Subscribe<TEvent>(AsyncEventHandler<TEvent>) void
Subscribes a new handler for the given TEvent type.

Extension Methods