Exemplo n.º 1
0
 public ValuesController(ISuperPowerService service)
 {
     this._superPowerService = service;
 }
Exemplo n.º 2
0
 public SuperPowerController(ISuperPowerService superPowerService, IMapper mapper)
 {
     _superPowerService = superPowerService ?? throw new ArgumentNullException(nameof(superPowerService));
     _mapper            = mapper;
 }
Exemplo n.º 3
0
 public HeroService(IHeroRepository heroRepository, ISuperPowerService superPowerService)
 {
     _heroRepository    = heroRepository ?? throw new ArgumentNullException(nameof(heroRepository));
     _superPowerService = superPowerService ?? throw new ArgumentNullException(nameof(superPowerService));
 }
Exemplo n.º 4
0
 public SuperPowerController(ILogger <WeatherForecastController> logger, ISuperPowerService service)
 {
     _logger            = logger;
     _superPowerService = service;
 }