Exemplo n.º 1
0
        public void Post()
        {
            // Arrange
            TemperatureController controller = new TemperatureController();

            // Act
            var results = controller.GetTemperature(10, (int)TemperatureType.DegreeCelcius);

            // Assert
            Assert.AreEqual(-12.2232, results.Temperature);
        }