public void GetAuthorizationContextForService_ShouldReturnContext() { //------------Setup for test-------------------------- var serverVersion = new GetServerVersion(); //------------Execute Test--------------------------- var resId = serverVersion.GetAuthorizationContextForService(); //------------Assert Results------------------------- Assert.AreEqual(AuthorizationContext.Any, resId); }
public void GetResourceID_ShouldReturnEmptyGuid() { //------------Setup for test-------------------------- var serverVersion = new GetServerVersion(); //------------Execute Test--------------------------- var resId = serverVersion.GetResourceID(new Dictionary <string, StringBuilder>()); //------------Assert Results------------------------- Assert.AreEqual(Guid.Empty, resId); }
public void GetVersions_Execute_NullValuesParameter_ErrorResult() { //------------Setup for test-------------------------- var getVersions = new GetServerVersion(); var serializer = new Dev2JsonSerializer(); //------------Execute Test--------------------------- var jsonResult = getVersions.Execute(null, null); var result = serializer.Deserialize <string>(jsonResult); //------------Assert Results------------------------- Assert.IsNotNull(result); }
public void GetVersions_HandlesType_ExpectName() { //------------Setup for test-------------------------- var getVersions = new GetServerVersion(); //------------Execute Test--------------------------- //------------Assert Results------------------------- Assert.AreEqual("GetServerVersion", getVersions.HandlesType()); }
public void GetVersions_CreateServiceEntry_ExpectProperlyFormedDynamicService() { //------------Setup for test-------------------------- var getVersions = new GetServerVersion(); //------------Execute Test--------------------------- var a = getVersions.CreateServiceEntry(); //------------Assert Results------------------------- var b = a.DataListSpecification.ToString(); Assert.AreEqual("<DataList><Dev2System.ManagmentServicePayload ColumnIODirection=\"Both\"></Dev2System.ManagmentServicePayload></DataList>", b); }
public string GetWareWolfVersion() { return(GetServerVersion.GetVersion()); }
public string GetWareWolfVersion() => GetServerVersion.GetVersion();