示例#1
0
 /// <inheritdoc />
 public CharactersController(IMarvelHttpService marvelService, IMarvelDatabaseService marvelDatabase,
                             ILogger <CharactersController> logger)
 {
     _marvelService  = marvelService ?? throw new ArgumentNullException(nameof(marvelService));
     _marvelDatabase = marvelDatabase ?? throw new ArgumentNullException(nameof(marvelDatabase));
     _logger         = logger ?? throw new ArgumentNullException(nameof(logger));
 }
示例#2
0
 public ComicsController(ILogger <ComicsController> logger, IMarvelHttpService marvelService)
 {
     _logger        = logger ?? throw new ArgumentNullException(nameof(logger));
     _marvelService = marvelService ?? throw new ArgumentNullException(nameof(marvelService));
 }