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