title: Mock Microsoft Application Insights API
body: <p>I  have an application which writes to App INsights using <a href="https://docs.microsoft.com/en-us/azure/application-insights/app-insights-api-custom-events-metrics" rel="nofollow noreferrer">custom traces/metrics</a> and also using <a href="https://dev.applicationinsights.io/" rel="nofollow noreferrer">REST API</a> for reading data on to dashboard. 
  <strong>My questions is for my unit testing can I mock both custom traces(TelemetryClient) and REST API?</strong> </p>
  
  <p>I see REST API has a DEMO version but provides random information. It would be helpful if i could setup  a DEMO instrumentation key to write to and read from it for unit testing. Let me know.</p>