public void MatchesAnyAction_DetectsIndividualMatches(string[] actions, bool expected) { // Act bool actual = _webHook.MatchesAnyAction(actions); // Assert Assert.Equal(expected, actual); }
/// <summary> /// Checks that the given <paramref name="webHook"/> is not paused and matches at least /// one of the given <paramref name="actions"/>. /// </summary> /// <param name="webHook">The <see cref="WebHook"/> instance to operate on.</param> /// <param name="actions">The set of actions to match against the <paramref name="webHook"/> filters.</param> /// <returns><c>true</c> if the given <paramref name="webHook"/> matches one of the pro</returns> protected virtual bool MatchesAnyAction(WebHook webHook, IEnumerable <string> actions) { return(webHook != null && !webHook.IsPaused && webHook.MatchesAnyAction(actions)); }