@wolframkriesing
@jbrains @borillo
@codecopkofler Since they all share the
same logic to load data, this would go in a separate loader (which is tested,
and passed in as a dependency): loadCars({loader})(myLoadCarsArgs), so loadCars
will only depend on loader's high level API.
2 replies
@wolframkriesing
@jbrains @borillo
@codecopkofler So I can test that loadCars
"handles" the loaded data correctly.
And I can test that loader does the low level handling properly.
@wolframkriesing
@jbrains @borillo
@codecopkofler The "loader" argument to
"loadCars" would then be configured outside so that "loadCars" only needs to
call "loader()".