Dependencies are automatically resolved for classes with non-default constructors