public void DeleteItem_CreateServiceEntry_ExpectProperlyFormedDynamicService() { //------------Setup for test-------------------------- var deleteItem = new DeleteItemService(); //------------Execute Test--------------------------- var a = deleteItem.CreateServiceEntry(); //------------Assert Results------------------------- var b = a.DataListSpecification.ToString(); Assert.AreEqual("<DataList><itemToAdd ColumnIODirection=\"itemToDelete\"/><Dev2System.ManagmentServicePayload ColumnIODirection=\"Both\"></Dev2System.ManagmentServicePayload></DataList>", b); }
public void deleteItem_CreateServiceEntry_ExpectProperlyFormedDynamicService() { //------------Setup for test-------------------------- var deleteItem = new DeleteItemService(); //------------Execute Test--------------------------- var a = deleteItem.CreateServiceEntry(); //------------Assert Results------------------------- var b = a.DataListSpecification; Assert.AreEqual("<DataList><ResourceType ColumnIODirection=\"Input\"/><Roles ColumnIODirection=\"Input\"/><ResourceName ColumnIODirection=\"Input\"/><Dev2System.ManagmentServicePayload ColumnIODirection=\"Both\"></Dev2System.ManagmentServicePayload></DataList>", b); }