private static void ValidateHttpRequestAlertActionType(ActionTypeDescriptor actionType) { Assert.NotNull(actionType); Assert.Equal("Send HTTP GET request", actionType.Name); ValidateProperty(actionType.Properties.First((prop) => { return(prop.Name == "Url"); }), "URL", "text", true, true, true); Assert.True(1 == actionType.Properties.Length); }
private static void ValidateConsoleLogActionType(ActionTypeDescriptor actionType) { Assert.NotNull(actionType); Assert.Equal("Log to console", actionType.Name); ValidateProperty(actionType.Properties.First((prop) => { return(prop.Name == "TimestampFormat"); }), "Timestamp format", "text", false, true, true); Assert.True(1 == actionType.Properties.Length); }