public InstagramWebHookClientTests() { _httpConfig = new HttpConfiguration(); _handlerMock = new HttpMessageHandlerMock(); _httpClient = new HttpClient(_handlerMock); _clientMock = new Mock<InstagramWebHookClient>(_httpConfig, _httpClient) { CallBase = true }; _client = _clientMock.Object; _callback = new Uri(TestCallback); }
public InstagramWebHookClientTests() { _httpConfig = new HttpConfiguration(); _handlerMock = new HttpMessageHandlerMock(); _httpClient = new HttpClient(_handlerMock); _clientMock = new Mock <InstagramWebHookClient>(_httpConfig, _httpClient) { CallBase = true }; _client = _clientMock.Object; _callback = new Uri(TestCallback); }
public static void Initialize(HttpConfiguration config) { _client = new InstagramWebHookClient(config); }