Exemplo n.º 1
0
 //Lembrar de registrar dependência no Startup.cs
 public AutorController(
     IAutorService autorService,
     IUnitOfWork unitOfWork)
 {
     _autorService = autorService;
     _unitOfWork   = unitOfWork;
 }
Exemplo n.º 2
0
 public AutorAppService(
     IMapper mapper,
     IAutorService autorService)
 {
     _mapper       = mapper;
     _autorService = autorService;
 }
Exemplo n.º 3
0
 public LivroController(ILivroService livroService, IAutorService autorService, IGeneroService generoService, IEditoraService editoraService)
 {
     _livroService   = livroService;
     _autorService   = autorService;
     _generoService  = generoService;
     _editoraService = editoraService;
 }
Exemplo n.º 4
0
 public LivrosController(ILivroService service,
                         IGeneroService generoService,
                         IAutorService autorService)
 {
     _service       = service;
     _generoService = generoService;
     _autorService  = autorService;
 }
Exemplo n.º 5
0
 public LivroController(ILivroService livroService, IEditoraService editoraService,
                        IAutorService autorService, IMapper mapper)
 {
     _livroService   = livroService;
     _editoraService = editoraService;
     _autorService   = autorService;
     _mapper         = mapper;
 }
Exemplo n.º 6
0
 public AutoresController(IAutorRepository autorRepository,
                          IAutorService autorService,
                          IMapper mapper,
                          INotificador notificador) : base(notificador)
 {
     _autorRepository = autorRepository;
     _autorService    = autorService;
     _mapper          = mapper;
 }
        public AutorServiceIntegrationTest(DependencyFixture fixture)
        {
            _serviceProvider = fixture.ServiceProvider;
            _service         = _serviceProvider.GetService <IAutorService>();

            var db = _serviceProvider.GetService <ObrasDbContext>();

            db.SetTestMode();

            _context = db;
        }
Exemplo n.º 8
0
 public ArtigoService(
     IUnitOfWork unitOfWork,
     UserManager <Usuario> userManager,
     IAutorService autorService,
     ITemaService temaService,
     ICategoriaService categoriaService
     ) : base(unitOfWork)
 {
     _userManager      = userManager;
     _autorService     = autorService;
     _temaService      = temaService;
     _categoriaService = categoriaService;
 }
Exemplo n.º 9
0
 public AutorController(IAutorRepository autorRepository, IAutorService autorService)
 {
     _autorRepository = autorRepository;
     _autorService    = autorService;
 }
Exemplo n.º 10
0
 public AutorApplicationService(IAutorService autorService)
     : base(autorService)
 {
     _autorService = autorService;
 }
Exemplo n.º 11
0
 public AutorController(IAutorService service) : base(service)
 {
 }
Exemplo n.º 12
0
 public AutorControllerTest()
 {
     autorService    = new AutorServiceMock();
     autorController = new AutorController(autorService);
 }
Exemplo n.º 13
0
 public AutoresController(IAutorService autorService, ILibroService libroService)
 {
     _autorService = autorService;
     _libroService = libroService;
 }
Exemplo n.º 14
0
 public AutorAppService(IAutorService autorService, IUnitOfWork uow)
     : base(uow)
 {
     _autorService = autorService;
 }
Exemplo n.º 15
0
 public AutorController(IAutorService service, IMapper mapper)
 {
     _service = service;
     _mapper  = mapper;
 }
 public AutorController(IAutorService service, IUnitOfWork unitOfWork, IAutorQuery query) : base(unitOfWork)
 {
     _service = service;
     _query   = query;
 }
Exemplo n.º 17
0
 public AutorController(IAutorService autorService, IMapper mapper)
 {
     _autorService = autorService;
     _mapper       = mapper;
 }
 public AutorController(IAutorService service)
 {
     _service = service;
 }
Exemplo n.º 19
0
 public AutorApp(IAutorService autorService, IMapper mapper)
 {
     _autorService = autorService;
     _mapper       = mapper;
 }
Exemplo n.º 20
0
 public AutoresV2Controller(IAutorService autorService)
 {
     this._autorService = autorService;
 }
Exemplo n.º 21
0
 public LibroHandler(ILogger <LibroHandler> logger, IAutorService autorService)
 {
     _logger       = logger;
     _autorService = autorService;
 }
Exemplo n.º 22
0
 public AutoresController(IAutorService autorService)
 {
     _autorService = autorService;
 }
Exemplo n.º 23
0
 public AutorController(IAutorService autorService) : base()
 {
     _autorService = autorService;
 }