コード例 #1
0
        public void TestPutWithValidData()
        {
            Products product = new Products()
            {
                ID          = "P104",
                Name        = "IntelliVue MX100",
                DisplaySize = "above 15"
            };

            var codeReceived = _productsController.Put("P104", product);

            Assert.Equal(HttpStatusCode.OK, codeReceived);
        }
コード例 #2
0
        public void TestPutWithValidData()
        {
            Products product = new Products()
            {
                Id          = "P104",
                Name        = "IntelliVue MX100",
                DisplaySize = "above 15",
                OtherInfo   = new List <string>()
                {
                    "The MX100 is a flexible, reliable way to monitor patients on the move"
                }
            };

            var codeReceived = _productsController.Put("P104", product);

            Assert.Equal(HttpStatusCode.OK, codeReceived);
        }