Skip to content

Commit

Permalink
Refactor tests; add tests for missing coverage; fix bug discovered du…
Browse files Browse the repository at this point in the history
…ring testing
  • Loading branch information
Enkidu93 committed Oct 9, 2024
1 parent 7195fda commit 437d5af
Show file tree
Hide file tree
Showing 2 changed files with 443 additions and 236 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1517,7 +1517,7 @@ private PretranslateCorpusDto Map(string engineId, PretranslateCorpus source)
Id = source.ParallelCorpusRef,
Url = _urlService.GetUrl(
Endpoints.GetParallelTranslationCorpus,
new { id = source.ParallelCorpusRef }
new { id = engineId, parallelCorpusId = source.ParallelCorpusRef }
)
}
: null,
Expand Down Expand Up @@ -1549,7 +1549,7 @@ private TrainingCorpusDto Map(string engineId, TrainingCorpus source)
Id = source.ParallelCorpusRef,
Url = _urlService.GetUrl(
Endpoints.GetParallelTranslationCorpus,
new { id = source.ParallelCorpusRef }
new { id = engineId, parallelCorpusId = source.ParallelCorpusRef }
)
}
: null,
Expand Down
Loading

0 comments on commit 437d5af

Please sign in to comment.