/// <summary> /// The SendTestEventNotification operation causes Mechanical Turk to send a notification /// message as if a HIT event occurred, according to the provided notification specification. /// This allows you to test your notification receptor logic without setting up notifications /// for a real HIT type and trying to trigger them using the web site. /// </summary> /// <param name="request">A <see cref="SendTestEventNotificationRequest"/> instance containing /// the request parameters</param> public void SendTestEventNotification(SendTestEventNotificationRequest request) { this.SendRequest(request); }
/// <summary> /// See <a href="http://docs.amazonwebservices.com/AWSMechTurk/2012-03-25/AWSMturkAPI/ApiReference_SendTestEventNotificationOperation.html">online documentation for this operation.</a> /// </summary> /// <param name="notification">The notification.</param> /// <param name="testEventType">Type of the test event.</param> public void SendTestEventNotification(NotificationSpecification notification, EventType ?testEventType) { SendTestEventNotificationRequest req = new SendTestEventNotificationRequest(); req.Notification = notification; if (testEventType.HasValue) { req.TestEventType = testEventType.Value; req.TestEventTypeSpecified = true; } Proxy.SendTestEventNotification(req); }