public void UpdateTest() { //Arrange int objID; var request = new IdoitDialogInstance(idoitClient); //Act:Create request.Value = "WLAN23"; request.Category = IdoitGlobalCategories.Port; request.Property = Port.PortType; objID = request.Create(); //Act:Update request.EntryId = objID; request.Value = "WLAN32"; request.Update(); var result = request.Read(); Assert.IsTrue(result.Length > 0, "No objects found"); //Assert foreach (DialogResult element in result) { Assert.IsNotNull(element.id); Assert.IsNotNull(element.title); Assert.IsNotNull(element.Const); } //Act:Delete the Value request.Delete(); }
public void CreateDeleteTest() { //Arrange int objID; var request = new IdoitDialogInstance(idoitClient); request.Value = "Athlon XP"; request.Category = IdoitGlobalCategories.CPU; request.Property = Cpu.Type; objID = request.Create(); //Assert Assert.IsNotNull(objID); Assert.IsNotNull(request.Property); Assert.IsNotNull(request.Value); Assert.IsNotNull(request.Category); //Act:Delete the Value request.EntryId = objID; request.Delete(); }