Ejemplo n.º 1
0
 public DisponibilizarMedicamentoController(IDisponibilizarMedicamentoService disponibilizarMedicamentoService, IMedicamentoService medicamentoService, IFarmaciaService farmaciaService, IMapper mapper)
 {
     _disponibilizarMedicamentoService = disponibilizarMedicamentoService;
     _medicamentoService = medicamentoService;
     _farmaciaService    = farmaciaService;
     _mapper             = mapper;
 }
 public MedicamentoController(IMedicamentoService medicamentoService,
                              IEspecieAnimalService especieAnimalService, IMapper mapper)
 {
     _medicamentoService   = medicamentoService;
     _especieAnimalService = especieAnimalService;
     _mapper = mapper;
 }
 public AplicaMedicamentoController(IAplicaMedicamentoService aplicaMedicamentoService,
                                    IMedicamentoService medicamentoService,
                                    IAnimalService animalService,
                                    IPessoaService pessoaService,
                                    IMapper mapper)
 {
     _aplicaMedicamentoService = aplicaMedicamentoService;
     _medicamentoService       = medicamentoService;
     _animalService            = animalService;
     _pessoaService            = pessoaService;
     _mapper = mapper;
 }
Ejemplo n.º 4
0
 public AgendamedicamentoController(IAgendamedicamentoService agendamedicamentoService,
                                    IMedicamentoService medicamentoService,
                                    IAnimalService animalService,
                                    IConsultaService consultaService,
                                    IPessoaService pessoaService,
                                    IMapper mapper)
 {
     _agendamedicamentoService = agendamedicamentoService;
     _medicamentoService       = medicamentoService;
     _animalService            = animalService;
     _consultaService          = consultaService;
     _pessoaService            = pessoaService;
     _mapper = mapper;
 }
Ejemplo n.º 5
0
        public void Initialize()
        {
            var builder = new DbContextOptionsBuilder <GestaoAnimalContext>();

            builder.UseInMemoryDatabase("Gestao Animal");
            var options = builder.Options;

            context = new GestaoAnimalContext(options);
            context.Database.EnsureDeleted();
            context.Database.EnsureCreated();

            var medicamentos = new List <Medicamento>
            {
                new Medicamento {
                    IdMedicamento   = 1,
                    Nome            = "Floral",
                    IdEspecieAnimal = 1
                },
                new Medicamento {
                    IdMedicamento   = 2,
                    Nome            = "Raiva",
                    IdEspecieAnimal = 2
                },
                new Medicamento {
                    IdMedicamento   = 3,
                    Nome            = "Cloril",
                    IdEspecieAnimal = 2
                },
            };

            var especies = new List <Especieanimal>
            {
                new Especieanimal {
                    IdEspecieAnimal = 1,
                    Nome            = "Cachorro"
                },
                new Especieanimal {
                    IdEspecieAnimal = 2,
                    Nome            = "Gato"
                },
            };

            context.AddRange(medicamentos);
            context.AddRange(especies);
            context.SaveChanges();

            medicamentoService = new MedicamentoService(context);
        }
Ejemplo n.º 6
0
 public MedicamentosController(IMedicamentoService _medicamentoService)
 {
     this.medicamentoService = _medicamentoService;
 }
Ejemplo n.º 7
0
 public MedicamentoController(IMedicamentoService medicamentoService, ICategoriaMedicamentoService categoriaMedicamentoService, IMapper mapper)
 {
     _medicamentoService          = medicamentoService;
     _categoriaMedicamentoService = categoriaMedicamentoService;
     _mapper = mapper;
 }
Ejemplo n.º 8
0
 public MedicamentosController(IMedicamentoService service, IMapper mapper)
 {
     _service = service;
     _mapper  = mapper;
 }
Ejemplo n.º 9
0
 public MedicamentoController(IMedicamentoService service)
 {
     _service = service;
 }
Ejemplo n.º 10
0
 public MedicamentosController(IMedicamentoService service)
 {
     this._service = service;
 }
Ejemplo n.º 11
0
 public MedicamentoController()
 {
     MedicamentoServicio = new MedicamentoRepositorio();
 }
Ejemplo n.º 12
0
 public MedicamentoController(IMedicamentoService serviceMedicamento, IUsuarioService usuarioService) : base(usuarioService)
 {
     _serviceMedicamento = serviceMedicamento;
     _usuarioService     = usuarioService;
 }
Ejemplo n.º 13
0
 public MedicamentoController(DominioDbContext contextDominio, ApiDbContext context)
 {
     _service = new MedicamentoService(contextDominio, context);
 }