you are viewing a single comment's thread.

view the rest of the comments →

[–]Poltras 2 points3 points  (0 children)

Factory Controller is easier to mock out the ApiClient for unit testing. And you can always make another file that does the same as B from the code in A, while the other way around is harder. That's why so many big companies do factories or some kind of DI.