public bool Matches(MethodInfo method, object[] arguments) { if (_matcher.Matches(method, arguments)) { _sequence.TriggerNewSequenceOfEvents(new CapturedServiceMethodInvocation(InspectedMethod, arguments)); return(true); } return(false); }
public bool TryMeet(IInvocation invocation, out Action action) { if (numberOfInvocationsConstraint.CanInvoke(invocationCount) && invocationMatcher.Matches(invocation)) { invocationCount++; action = () => ExecuteActionsFor(invocation); return(true); } action = null; return(false); }
public bool Matches(RequestWrapper request) { if (_matcher.Matches(request)) { _sequence.TriggerNewSequenceOfEvents(new CapturedRouteInvocation(request, _routeOwningUrl)); return(true); } else { return(false); } }
public bool Matches(RequestWrapper request) { return(_left.Matches(request) || _right.Matches(request)); }