public SuperheroService(IAppLogger <SuperheroService> logger,
                         ISuperheroRepository superheroRepository,
                         IMapper mapper)
 {
     this.superheroRepository = superheroRepository ?? throw new ArgumentNullException(nameof(superheroRepository));
     this.mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
     this.logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
 public ProtectionAreaCommandHandler(ISuperheroRepository superheroRepository,
                                     IProtectionAreaRepository protectionAreaRepository,
                                     IMediatorHandler bus,
                                     INotificationHandler <DomainNotification> notifications)
     : base(protectionAreaRepository, bus, notifications)
 {
     _superheroRepository      = superheroRepository;
     _protectionAreaRepository = protectionAreaRepository;
     _bus = bus;
 }
예제 #3
0
 public SuperheroCommandHandler(ISuperheroRepository superheroRepository,
                                IProtectionAreaRepository protectionAreaRepository,
                                IMediatorHandler bus,
                                INotificationHandler <DomainNotification> notifications,
                                IAuditEventService auditEventService)
     : base(superheroRepository, bus, notifications)
 {
     _superheroRepository      = superheroRepository;
     _protectionAreaRepository = protectionAreaRepository;
     _bus = bus;
     _auditEventService = auditEventService;
 }
예제 #4
0
 public SuperheroAppService(ISuperheroRepository superheroRepository,
                            IMediatorHandler bus,
                            IMapper mapper,
                            ICacheManager cache,
                            IHttpContextAccessor httpContextAccessor)
 {
     _superheroRepository = superheroRepository;
     _bus    = bus;
     _mapper = mapper;
     _cache  = cache;
     _httpContextAccessor = httpContextAccessor;
 }
예제 #5
0
 public SuperheroesController(ISuperheroRepository repository, ILogger <SuperheroesController> logger)
 {
     _repository = repository;
     _logger     = logger;
 }
예제 #6
0
 public SuperheroesController(ISuperheroRepository repository)
 {
     _repository = repository;
 }
예제 #7
0
 public SuperheroViewModel(ISuperheroRepository repository)
 {
     _repository = repository;
 }
예제 #8
0
 public CachingRepository(ISuperheroRepository superheroRepository)
 {
     _superheroRepository = superheroRepository;
 }
예제 #9
0
 public FilmSuperheroesController(IFilmRepository filmRepository, ISuperheroRepository superheroRepository, IFilmSuperheroesRepository filmSuperheroesRepository)
 {
     this.filmRepository            = filmRepository;
     this.superheroRepository       = superheroRepository;
     this.filmSuperheroesRepository = filmSuperheroesRepository;
 }
 public SuperheroBusiness(ISuperheroRepository repository)
 {
     this.repository = repository;
 }