Exemplo n.º 1
0
 public MockEhlHttpClient Mock_PostSwitchesApiGetResponse(string fileName, string urlFilter)
 {
     _mockMapPost[urlFilter] = new MockEntry(fileName, HttpStatusCode.OK, null);
     return(this);
 }
Exemplo n.º 2
0
 public MockEhlHttpClient Mock_GetApiResponse(string fileName, string urlFilter, HttpStatusCode responseStatusCode = HttpStatusCode.OK, WebException exception = null)
 {
     _mockMapGet[urlFilter] = new MockEntry(fileName, responseStatusCode, exception);
     return(this);
 }