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