Exemple #1
0
 public DomainServiceTests()
 {
     _context                = new ContextoAplicacao("Server=localhost\\sqlexpress;Database=LivrariaHBSIS;Trusted_Connection=True;");
     _unitOfWork             = new UnitOfWork(_context);
     _livroRepository        = new LivroRepository(_context);
     _categoriaRepository    = new CategoriaRepository(_context);
     _livroDomainService     = new LivroDomainService(_livroRepository, _unitOfWork);
     _categoriaDomainService = new CategoriaDomainService(_categoriaRepository, _unitOfWork);
 }
Exemple #2
0
 public LivrariaController(ILivroDomainService livroDomainService, ICategoriaDomainService categoriaDomainService, IMapper mapper)
 {
     _livroDomainService     = livroDomainService;
     _categoriaDomainService = categoriaDomainService;
     _mapper = mapper;
 }
Exemple #3
0
 public LivroAppService(ILivroDomainService domain, IMapper mapper)
 {
     this.domain = domain;
     this.mapper = mapper;
 }