public void ResourcesCorpusSegmentTargetAddPostTest()
        {
            CorpusSegmentListResponse corpusSegmentListResponse = new CorpusSegmentListResponse();
            corpusSegmentListResponse = corpusApi.ResourcesCorpusSegmentListGet(corpusId, null, null, null);

            CorpusSegmentAddTargetRequest corpusSegmentAddTargetRequest = new CorpusSegmentAddTargetRequest();
            CorpusSegmentAddTargetResponse corpusSegmentAddTargetResponse = new CorpusSegmentAddTargetResponse();
            corpusSegmentAddTargetRequest.CorpusId = corpusId;
            corpusSegmentAddTargetRequest.SegId = segmentId;
            CorpusAddSegmentTarget corpusAddSegmentTarget = new CorpusAddSegmentTarget();
            corpusAddSegmentTarget.Lang = "fr";
            corpusAddSegmentTarget.Target = "nouveau segment cible";
            List<CorpusAddSegmentTarget> segList = new List<CorpusAddSegmentTarget>();
            segList.Add(corpusAddSegmentTarget);
            corpusSegmentAddTargetRequest.Targets = segList;
            corpusSegmentAddTargetRequest.SegId = corpusSegmentListResponse.Segments[0].Id;
            corpusSegmentAddTargetResponse = corpusApi.ResourcesCorpusSegmentTargetAddPost(corpusSegmentAddTargetRequest, null);
            Assert.IsNotNull(corpusSegmentAddTargetResponse.Added);
        }
 public void ResourcesCorpusSegmentAddPostTest()
 {
     CorpusSegmentAddRequest corpusSegmentAddRequest = new CorpusSegmentAddRequest();
     corpusSegmentAddRequest.CorpusId = corpusId;
     CorpusAddSegment corpusAddSegment = new CorpusAddSegment();
     List<CorpusAddSegment> segList = new List<CorpusAddSegment>();
     corpusAddSegment.Source = "Illustation";
     corpusAddSegment.Lang = "en";
     CorpusAddSegmentTarget corpusAddSegmentTarget = new CorpusAddSegmentTarget();
     corpusAddSegmentTarget.Lang = "fr";
     corpusAddSegmentTarget.Target = "nouveau segment cible";
     List<CorpusAddSegmentTarget> targList = new List<CorpusAddSegmentTarget>();
     targList.Add(corpusAddSegmentTarget);
     corpusAddSegment.Targets = targList;
     segList.Add(corpusAddSegment);
     corpusSegmentAddRequest.Segments = segList;
     CorpusSegmentAddResponse corpusSegmentAddResponse = new CorpusSegmentAddResponse();
     corpusSegmentAddResponse = corpusApi.ResourcesCorpusSegmentAddPost(corpusSegmentAddRequest, null);
     Assert.IsNotNull(corpusSegmentAddResponse.Segments);
 }