/// <summary> /// Creates a mock event with a sample payload. Can be used to test your event handling code. /// </summary> /// <param name="mockEventRequest"></param> /// <returns></returns> public async Task <Event> MockEventAsync(MockEventRequest mockEventRequest) { return(await PostAsync <Event>($"{Urls.Notification}/events/mock", mockEventRequest)); }
/// <summary> /// Creates a mock event with a sample payload. Can be used to test your event handling code. /// </summary> /// <param name="mockEventRequest"></param> /// <returns></returns> public Event MockEvent(MockEventRequest mockEventRequest) { return(Post <Event>($"{Urls.Notification}/events/mock", mockEventRequest)); }