Tim Vahlbrock
10/31/2024, 7:56 AMgetItem
and the other setItemDone
. I so far see two options to deal with this:
1. Use two different states after all, even though the state names "an item can be fetched" and "an item can be set to done" seem to introduce even more duplication between state name, request name and test name for non-error states.
2. Set up all methods within the same state. In this case it would mean always mocking both methods, even though only one is likely required.
What is the recommended way to deal with this?Tim Vahlbrock
10/31/2024, 8:03 AMTim Vahlbrock
10/31/2024, 8:13 AMBas Dijkstra
10/31/2024, 10:21 AMTim Vahlbrock
10/31/2024, 10:22 AM