public FavoritosController(ILivroService livroService,
                            IFavoritoService favoritoService,
                            ICriticaService criticaService,
                            IReputacaoService reputacaoService)
 {
     _livroService     = livroService != null ? livroService : throw new ArgumentNullException();
     _favoritoService  = favoritoService != null ? favoritoService : throw new ArgumentNullException();
     _criticaService   = criticaService != null ? criticaService : throw new ArgumentNullException();
     _reputacaoService = reputacaoService != null ? reputacaoService : throw new ArgumentNullException();
 }
 public FavoritosController(IFavoritoService favoritoService)
 {
     _FavoritoService = favoritoService != null ? favoritoService : throw new ArgumentNullException();
 }
Example #3
0
 public FavoritoController(IFavoritoService favoritoService)
 {
     this.favoritoService = favoritoService ?? throw new ArgumentNullException(nameof(favoritoService));
 }