internal FakeRestPredicate(IEnumerable <FakeRestResponse> existing, Predicate <IRestRequest> pr = null) { predicate = pr ?? tautology; ExistingResponses = existing; Respond = new FakeRestResponse(existing, predicate); Timeout = Respond.Status(ResponseStatus.TimedOut); }
private FakeRestResponse(FakeRestResponse fake, IRestResponse <object> response) { existingResponses = fake.existingResponses; requestPredicate = fake.requestPredicate; this.response = response; }