How to unit test this function without mock asserts?
问题 I was curious how someone would approach unit testing the following pseudo coded function or even refactor to make it easier to test the different pieces. To begin, we have a large code base that, at a high level, is broken down into the following projects: Orchestrations -> Services -> Repositories -> Database -> Behaviors The current example I'm working with is at the orchestration level there is a function as follows: FUNCTION Process (Options) IF Options.Option1 THEN IF Service1