Exemple #1
0
 public BookController(IBookRepository bookRepository, IEditorialRepository editorialRepository, IAuthorRepository authorRepository, IMapper mapper)
 {
     _bookRepository      = bookRepository;
     _editorialRepository = editorialRepository;
     _authorRepository    = authorRepository;
     _mapper = mapper;
 }
 public AutorService(IAutorRepository autorRepository,
                     IEditorialRepository editorialRepository,
                     IMapperDependency mapperDependency)
 {
     _autorRepository     = autorRepository;
     _editorialRepository = editorialRepository;
     _mapper = mapperDependency.GetMapper();
 }
Exemple #3
0
 public UnitOfWork(IEditorialRepository editorialRepository,
                   IBookRepository bookRepository,
                   IAuthorRepository authorRepository,
                   Context context)
 {
     EditorialRepository = editorialRepository;
     BookRepository      = bookRepository;
     AuthorRepository    = authorRepository;
     this.context        = context;
 }
 public BookService(IBookRepository bookRepository,
                    IEditorialRepository editorialRepository,
                    IAutorRepository autorRepository,
                    IMapperDependency mapperDependency)
 {
     _bookRepository      = bookRepository;
     _editorialRepository = editorialRepository;
     _autorRepository     = autorRepository;
     _mapper = mapperDependency.GetMapper();
 }
 public EditorialService(IUnitOfWork unitOfWork, IEditorialRepository editorialRepository)
     : base(unitOfWork, editorialRepository)
 {
     _unitOfWork          = unitOfWork;
     _editorialRepository = editorialRepository;
 }
 public EditorialController(IEditorialRepository editorialRepository, IMapper mapper)
 {
     _editorialRepository = editorialRepository;
     _mapper = mapper;
 }
Exemple #7
0
 public EditorialServices(IEditorialRepository repository)
 {
     _repository = repository;
 }
 public EditorialService(IEditorialRepository repository, IMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }