Skip to content

What is the best way to code this Service ? #1069

Answered by jiyer2016
jiyer2016 asked this question in General
Discussion options

You must be logged in to vote

Based on other discussions threads on similar topics - I shall use "Implementation 2" - i.e. score_items2() and then adjust the integration test cases such that:

  • request object (rqst) is packed into a List (i.e. emulate what the InputAdapter does)
  • expect the response object (resp) wrapped in a list for test cases alone - with knowledge that the real production Client won't see the outer list

[resp] = service.score_items([rqst])

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jiyer2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant