public void GetTypeResult_WhenGivenResponseWithWeatherDetailJson_ReturnWeatherDetail()
        {
            var response = new HttpResponseMessage(System.Net.HttpStatusCode.OK)
            {
                Content = new StringContent(TestHelper.GetWeatherDetailJson())
            };

            using (response)
            {
                var weatherDetail = HttpResponseMessageExtensions.GetTypedResult <WeatherDetail>(response);

                Assert.NotNull(weatherDetail);
                Assert.Equal("base", weatherDetail.Base);
            }
        }
        public void GetTypeResult_WhenGivenNullArgument_ThrowArgumentNullException()
        {
            ArgumentNullException ex = Assert.Throws <ArgumentNullException>(() => HttpResponseMessageExtensions.GetTypedResult <WeatherDetail>(null));

            Assert.NotNull(ex);
        }