Ejemplo n.º 1
0
        public void Can_Deserialize_HeartRateIntradayTimeSeries()
        {
            //assemble
            string   content   = SampleDataHelper.GetContent("GetHeartRateIntradayTimeSeries1.1.json");
            DateTime date      = DateTime.Parse("2017-08-21"); //hardcoded because extension expects a date. In any other use case, a date would be available
            var      seralizer = new JsonDotNetSerializer();

            //act
            var stats = seralizer.GetHeartRateIntraday(date, content);

            //assert
            ValidateHeartRateIntradayTimeSeriesData(stats);
        }