withLazySingleton<T> method

ModularTestScope withLazySingleton<T>(
  1. T factory()
)

Adiciona um lazy singleton ao template — reaplicado a cada setUp.

Implementation

ModularTestScope withLazySingleton<T>(T Function() factory) {
  return ModularTestScope._(
    _template.withLazySingleton<T>(factory),
    _recorder,
  );
}