At a talk I gave last week, someone asked a questi...
# general
s
At a talk I gave last week, someone asked a question which I didn’t feel confident to answer: “How would you handle a situation where the consumer, C, called service P1 and then passed the results onto service P2? C only cares about the result of the call to P2.” I can see how to contract test P1, but I’m not sure how to contract test the transitive nature of the relationship. I’d appreciate any perspective you might have.
👋 1
t
You’d typically do this with two interactions: C -> P1 C -> P2 You would make sure the expectations you’re setting up for P1 and P2 match