コード例 #1
0
        public void UpdateTest()
        {
            //Arrange
            int    objID;
            Result list     = new Result();
            Client myClient = new Client(URL, APIKEY, LANGUAGE);

            myClient.Username = "******";
            myClient.Password = "******";
            Obj request = new Obj(myClient);

            //Act:Create the Object
            request.type       = ObjectType.SERVER;
            request.title      = " Switch Colo A001 02";
            request.cmdbStatus = CmdbStatus.INOPERATION;
            objID = request.Create();
            //Act:Update the Object
            request.title = "Switch Colo A001 01";
            request.Update(objID);
            //Act:Read the Object
            list = request.Read(objID);
            //Assert
            Assert.AreEqual("Switch Colo A001 01", list.title);
        }