public void ShouldNotAddTemperatureReadingWhenCallingAddReadingWithInvalidLowTemperature()
        {
            var temp = new TemperatureViewModel {
                TemperatureFarenheit = -76
            };

            ExceptionAssert.Throws <ArgumentOutOfRangeException>(() => _controller.Post(temp));
        }
        public void TestPostTemp()
        {
            DateTime    tryDate = new DateTime(2018, 01, 01);
            Temperature newTemp = new Temperature
            {
                Temp = 2,
                DT   = tryDate
            };
            int tempCount = _controller.Post(newTemp);

            Assert.AreEqual(1, tempCount);

            IEnumerable <Temperature> tempList = _controller.Get();

            Assert.AreEqual(70, tempList.Count());
        }