<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Unit testing with ArcGIS Runtime in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/unit-testing-with-arcgis-runtime/m-p/592522#M7272</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to write some unit tests on classes that use the ArcGIS Runtime. I don't want to hit live services. Instead, I want to provide fake responses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to provide an instance of HttpClient or&amp;nbsp;HttpMessageHandler to the ArcGIS Runtime so that I can send fake responses back?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Apr 2018 21:18:16 GMT</pubDate>
    <dc:creator>JeffSiemens</dc:creator>
    <dc:date>2018-04-09T21:18:16Z</dc:date>
    <item>
      <title>Unit testing with ArcGIS Runtime</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/unit-testing-with-arcgis-runtime/m-p/592522#M7272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to write some unit tests on classes that use the ArcGIS Runtime. I don't want to hit live services. Instead, I want to provide fake responses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to provide an instance of HttpClient or&amp;nbsp;HttpMessageHandler to the ArcGIS Runtime so that I can send fake responses back?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2018 21:18:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/unit-testing-with-arcgis-runtime/m-p/592522#M7272</guid>
      <dc:creator>JeffSiemens</dc:creator>
      <dc:date>2018-04-09T21:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Unit testing with ArcGIS Runtime</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/unit-testing-with-arcgis-runtime/m-p/592523#M7273</link>
      <description>&lt;P&gt;I've got bad news and good news:&amp;nbsp;There is no way to&amp;nbsp;mock HTTP responses for Runtime &lt;EM&gt;yet&lt;/EM&gt;, but&amp;nbsp;there will be&amp;nbsp;very soon.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the next version of Runtime SDK for .NET, we plan to include an easy way to replace HttpMessageHandler&amp;nbsp;for any request issued by Runtime.&amp;nbsp;This&amp;nbsp;will allow&amp;nbsp;integration with tools like&amp;nbsp;&lt;A href="https://github.com/richardszalay/mockhttp" target="_blank"&gt;MockHTTP&lt;/A&gt;.&amp;nbsp;This will also allow for scenarios like&amp;nbsp;reading responses from local files&amp;nbsp;(e.g.&amp;nbsp;&lt;A href="https://gist.github.com/mstefarov/8c5f775dc9185dc2d38a5ae59e6e8f80" target="_blank"&gt;something like this&lt;/A&gt;) or generating them on the fly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will post another reply&amp;nbsp;when this functionality is released, and I'll have some sample code to share at that time.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 21:55:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/unit-testing-with-arcgis-runtime/m-p/592523#M7273</guid>
      <dc:creator>MatveiStefarov</dc:creator>
      <dc:date>2021-01-05T21:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unit testing with ArcGIS Runtime</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/unit-testing-with-arcgis-runtime/m-p/592524#M7274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for letting me know! I look forward to the next version. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2018 15:23:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/unit-testing-with-arcgis-runtime/m-p/592524#M7274</guid>
      <dc:creator>JeffSiemens</dc:creator>
      <dc:date>2018-04-13T15:23:33Z</dc:date>
    </item>
  </channel>
</rss>

