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; }
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; }
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); }
public MedicamentosController(IMedicamentoService _medicamentoService) { this.medicamentoService = _medicamentoService; }
public MedicamentoController(IMedicamentoService medicamentoService, ICategoriaMedicamentoService categoriaMedicamentoService, IMapper mapper) { _medicamentoService = medicamentoService; _categoriaMedicamentoService = categoriaMedicamentoService; _mapper = mapper; }
public MedicamentosController(IMedicamentoService service, IMapper mapper) { _service = service; _mapper = mapper; }
public MedicamentoController(IMedicamentoService service) { _service = service; }
public MedicamentosController(IMedicamentoService service) { this._service = service; }
public MedicamentoController() { MedicamentoServicio = new MedicamentoRepositorio(); }
public MedicamentoController(IMedicamentoService serviceMedicamento, IUsuarioService usuarioService) : base(usuarioService) { _serviceMedicamento = serviceMedicamento; _usuarioService = usuarioService; }
public MedicamentoController(DominioDbContext contextDominio, ApiDbContext context) { _service = new MedicamentoService(contextDominio, context); }