internal ConditionSet(HttpClientMocker httpClientWithExpectationsBuilder)
 {
     _httpClientWithExpectationsBuilder = httpClientWithExpectationsBuilder;
     _conditions = new HashSet <Predicate <HttpRequestMessage> >();
 }
Esempio n. 2
0
 internal Expectation(HttpClientMocker httpClientWithExpectationsBuilder,
                      ICollection <Predicate <HttpRequestMessage> > conditions)
 {
     _httpClientWithExpectationsBuilder = httpClientWithExpectationsBuilder;
     _conditions = conditions;
 }
Esempio n. 3
0
 /// <summary>
 /// Creates a mocker
 /// </summary>
 /// <returns>A new <c>HttpClientMocker</c> object</returns>
 public static HttpClientMocker Create()
 {
     _mocker = new HttpClientMocker();
     return(_mocker);
 }