// ReSharper disable InconsistentNaming public void DeleteVersion_Name_GetName() { //------------Setup for test-------------------------- var DeleteVersion = new DeleteVersion(); //------------Execute Test--------------------------- //------------Assert Results------------------------- Assert.AreEqual("DeleteVersion", DeleteVersion.HandlesType()); }
public void DeleteVersion_CreateServiceEntry_ExpectCorrectDL() { //------------Setup for test-------------------------- var DeleteVersion = new DeleteVersion(); //------------Execute Test--------------------------- var res = DeleteVersion.CreateServiceEntry(); //------------Assert Results------------------------- Assert.AreEqual("<DataList><Roles ColumnIODirection=\"Input\"/><ResourceXml ColumnIODirection=\"Input\"/><WorkspaceID ColumnIODirection=\"Input\"/><Dev2System.ManagmentServicePayload ColumnIODirection=\"Both\"></Dev2System.ManagmentServicePayload></DataList>", res.DataListSpecification.ToString()); Assert.AreEqual(enActionType.InvokeManagementDynamicService, res.Actions.First().ActionType); Assert.AreEqual(res.Actions.First().SourceMethod, DeleteVersion.HandlesType()); }