public UsuarioService(
     IUsuarioRepository usuarioRepository,
     IHandler <DomainNotification> domainNotification,
     IUnitOfWorkSuperheroes unitOfWorkSuperheroes)
     : base(domainNotification, unitOfWorkSuperheroes)
 {
     _usuariorepository = usuarioRepository;
 }
Exemple #2
0
 public SuperheroeService(
     ISuperheroeRepository superheroeRepository,
     IUsuarioRepository usuariorepository,
     IHandler <DomainNotification> domainNotification,
     IUnitOfWorkSuperheroes unitOfWorkSuperheroes)
     : base(domainNotification, unitOfWorkSuperheroes, usuariorepository)
 {
     _superheroeRepository = superheroeRepository;
     _usuarioRepository    = usuariorepository;
 }
 protected Repository(DbContext context, IUnitOfWorkSuperheroes unitOfWorkSuperheroes)
 {
     _context    = context;
     _dbEntidade = _context.Set <T>();
 }
 protected Service(IHandler <DomainNotification> domainNotification, IUnitOfWorkSuperheroes unitOfWorkSuperheroes, IUsuarioRepository usuariorepository)
 {
     this.domainNotification    = domainNotification;
     this.unitOfWorkSuperheroes = unitOfWorkSuperheroes;
     this.usuariorepository     = usuariorepository;
 }
 protected Service(IHandler <DomainNotification> domainNotification, IUnitOfWorkSuperheroes unitOfWorkSuperheroes)
 {
     _domainNotification    = (DomainNotificationHandler)domainNotification;
     _unitOfWorkSuperheroes = unitOfWorkSuperheroes;
 }