public CarroService( ICarroRepository carroRepository, CallCountScoped callCountScoped, CallCountSingleton callCountSingleton, CallCountTransient callCountTransient) { callCountScoped.Count++; callCountSingleton.Count++; callCountTransient.Count++; _carroRepository = carroRepository; }
public PessoaService( IPessoaRepository pessoaRepository, ICarroService carroService, CallCountScoped callCountScoped, CallCountSingleton callCountSingleton, CallCountTransient callCountTransient) { callCountScoped.Count++; callCountSingleton.Count++; callCountTransient.Count++; _pessoaRepository = pessoaRepository; _carroService = carroService; }