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