private HttpHandler( string url, Handler handlerFunction, HttpMethods httpMethod, int count) { Count = count; HandlerFunction = handlerFunction; HttpMethod = httpMethod.GetMethod(); Url = url; MockHttpHandler = new MockHttpHandler( url, HttpMethod, HandlerFunctionWithCounter); }