예제 #1
0
 //Lembrar de registrar dependência no Startup.cs
 public AutorController(
     IAutorService autorService,
     IUnitOfWork unitOfWork)
 {
     _autorService = autorService;
     _unitOfWork   = unitOfWork;
 }
예제 #2
0
 public AutorAppService(
     IMapper mapper,
     IAutorService autorService)
 {
     _mapper       = mapper;
     _autorService = autorService;
 }
예제 #3
0
 public LivroController(ILivroService livroService, IAutorService autorService, IGeneroService generoService, IEditoraService editoraService)
 {
     _livroService   = livroService;
     _autorService   = autorService;
     _generoService  = generoService;
     _editoraService = editoraService;
 }
예제 #4
0
 public LivrosController(ILivroService service,
                         IGeneroService generoService,
                         IAutorService autorService)
 {
     _service       = service;
     _generoService = generoService;
     _autorService  = autorService;
 }
예제 #5
0
 public LivroController(ILivroService livroService, IEditoraService editoraService,
                        IAutorService autorService, IMapper mapper)
 {
     _livroService   = livroService;
     _editoraService = editoraService;
     _autorService   = autorService;
     _mapper         = mapper;
 }
예제 #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;
        }
예제 #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;
 }
예제 #9
0
 public AutorController(IAutorRepository autorRepository, IAutorService autorService)
 {
     _autorRepository = autorRepository;
     _autorService    = autorService;
 }
예제 #10
0
 public AutorApplicationService(IAutorService autorService)
     : base(autorService)
 {
     _autorService = autorService;
 }
예제 #11
0
 public AutorController(IAutorService service) : base(service)
 {
 }
예제 #12
0
 public AutorControllerTest()
 {
     autorService    = new AutorServiceMock();
     autorController = new AutorController(autorService);
 }
예제 #13
0
 public AutoresController(IAutorService autorService, ILibroService libroService)
 {
     _autorService = autorService;
     _libroService = libroService;
 }
예제 #14
0
 public AutorAppService(IAutorService autorService, IUnitOfWork uow)
     : base(uow)
 {
     _autorService = autorService;
 }
예제 #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;
 }
예제 #17
0
 public AutorController(IAutorService autorService, IMapper mapper)
 {
     _autorService = autorService;
     _mapper       = mapper;
 }
 public AutorController(IAutorService service)
 {
     _service = service;
 }
예제 #19
0
 public AutorApp(IAutorService autorService, IMapper mapper)
 {
     _autorService = autorService;
     _mapper       = mapper;
 }
예제 #20
0
 public AutoresV2Controller(IAutorService autorService)
 {
     this._autorService = autorService;
 }
예제 #21
0
 public LibroHandler(ILogger <LibroHandler> logger, IAutorService autorService)
 {
     _logger       = logger;
     _autorService = autorService;
 }
예제 #22
0
 public AutoresController(IAutorService autorService)
 {
     _autorService = autorService;
 }
예제 #23
0
 public AutorController(IAutorService autorService) : base()
 {
     _autorService = autorService;
 }