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); }
public void TemperatureGet() { TemperatureController controller = new TemperatureController(); controller.Put("location", "98.6"); string result = controller.Get("location"); Assert.AreEqual("98.6", result); }
public void TemperaturePut() { TemperatureController controller = new TemperatureController(); controller.Put("location", "98.6"); }