/// <summary> /// Creates a fake triggerd event with the given payload /// If the given payload is null creates a fake triggerd event with the default payload /// <param name="priority">Generated events priority</param> /// <param name="payload">Generated events payload</param> /// <returns>Fake operational event</returns> /// </summary> public FakeTriggeredEvent CreateFakeTriggeredEvent(EventPriority priority, FakeEventPayload payload = null) { var eventPayload = payload ?? FakeEventPayload.DefaultFakeEventPayload; return(new FakeTriggeredEvent(priority, eventPayload)); }
/// <summary> /// Creates a fake operational event with the given payload /// If the given payload is null creates a fake operational event with the default payload /// </summary> /// <param name="payload">Generated events payload</param> /// <returns>Fake operational event</returns> public FakeOperationalEvent CreateFakeOperationalEvent(FakeEventPayload payload = null) { var eventPayload = payload ?? FakeEventPayload.DefaultFakeEventPayload; return(new FakeOperationalEvent(eventPayload)); }