public void ApiV1ItemGetLatestVersionNumbersPostTest() { configuration = GetClientConfig(); versionNumberApiTest = new VersionNumberApi(configuration); List <IdentifierInRequest> identifiers = new List <IdentifierInRequest>(); IdentifierInRequest identifier = new IdentifierInRequest("int.example", new Guid("52c5dd34-1b5f-460b-8904-6f0f2897f6a1"), 1L); identifiers.Add(identifier); GetLatestVersionNumbersRequest request = new GetLatestVersionNumbersRequest(identifiers); List <IdentifierTriple> identifiersTriple = versionNumberApiTest.ApiV1ItemGetLatestVersionNumbersPost(request); Assert.Single(identifiersTriple); }
public void ApiV1ItemGetLatestVersionNumbersPostWithHttpInfo() { configuration = GetClientConfig(); versionNumberApiTest = new VersionNumberApi(configuration); List <IdentifierInRequest> identifiers = new List <IdentifierInRequest>(); IdentifierInRequest identifier = new IdentifierInRequest("int.example", new Guid("52c5dd34-1b5f-460b-8904-6f0f2897f6a1"), 1L); identifiers.Add(identifier); GetLatestVersionNumbersRequest request = new GetLatestVersionNumbersRequest(identifiers); ApiResponse <List <IdentifierTriple> > infos = versionNumberApiTest.ApiV1ItemGetLatestVersionNumbersPostWithHttpInfo(request); Assert.Equal(200, infos.StatusCode); }
public void ApiV1ItemGetDescriptionsPostTest() { var configuration = GetClientConfig(); //GET the Sets var instanceSets = new Colectica.RestClientV1.Api.SetApi(configuration); Guid guid = new Guid("52c5dd34-1b5f-460b-8904-6f0f2897f6a1"); var responseSets = instanceSets.ApiV1SetByAgencyByIdByVersionGet("int.example", guid, 1); var instanceList = new ItemApi(configuration); GetRepositoryItemDescriptionsRequest request = new GetRepositoryItemDescriptionsRequest(); List <IdentifierInRequest> identifiers = new List <IdentifierInRequest>(); IdentifierInRequest item = new IdentifierInRequest("int.example", guid, 1L); identifiers.Add(item); request.Identifiers = identifiers; List <RepositoryItemMetadata> response = instanceList.ApiV1ItemGetDescriptionsPost(request); Assert.True(response.Count > 0); }