A Simple Strategy to Handle Complex Services in Unit Tests Introduction When a class relies on a dependency that is too complicated, too heavy, or simply impossible to create inside a normal test setup, most developers try many advanced testing techniques. But the easiest way to handle such situations is to directly run the entire … Continue reading Mocking Hard-to-Instantiate Dependencies in Testing