示例#1
0
        public void TemperatureGet2Locations()
        {
            TemperatureController controller = new TemperatureController();

            controller.Put("location1", "98.6");
            controller.Put("location2", "32.0");

            string result1 = controller.Get("location1");
            string result2 = controller.Get("location2");

            Assert.AreEqual("98.6", result1);
            Assert.AreEqual("32.0", result2);
        }
示例#2
0
        public void TemperatureGet()
        {
            TemperatureController controller = new TemperatureController();

            controller.Put("location", "98.6");

            string result = controller.Get("location");

            Assert.AreEqual("98.6", result);
        }
示例#3
0
        public void TemperaturePut()
        {
            TemperatureController controller = new TemperatureController();

            controller.Put("location", "98.6");
        }