Exemple #1
0
        //IOrganizacaoService _organizacaoService;


        public AnimalController(IAnimalService animalService, IEspecieAnimalService especieAnimalService, IPessoaService pessoaService, IOrganizacaoService organizacaoService, IMapper mapper)
        {
            _animalService        = animalService;
            _especieAnimalService = especieAnimalService;
            _pessoaService        = pessoaService;
            _organizacaoService   = organizacaoService;
            _mapper = mapper;
        }
 public BlocoController(IBlocoService blocoService,
                        IOrganizacaoService organizacaoService,
                        IUsuarioOrganizacaoService usuarioOrganizacaoService,
                        IUsuarioService UsuarioService)
 {
     _blocoService              = blocoService;
     _organizacaoService        = organizacaoService;
     _usuarioOrganizacaoService = usuarioOrganizacaoService;
     _usuarioService            = UsuarioService;
 }
 public MetodosAuxiliaresController(ISalaService salaService,
                                    IUsuarioService usuarioService,
                                    IUsuarioOrganizacaoService usuarioOrganizacaoService,
                                    IBlocoService blocoService,
                                    IOrganizacaoService organizacaoService)
 {
     _salaService               = salaService;
     _usuarioService            = usuarioService;
     _usuarioOrganizacaoService = usuarioOrganizacaoService;
     _blocoService              = blocoService;
     _organizacaoService        = organizacaoService;
 }
 public SalaParticularController(ISalaService salaService,
                                 ISalaParticularService salaParticularService,
                                 IUsuarioService usuarioService,
                                 IBlocoService blocoService,
                                 IUsuarioOrganizacaoService usuarioOrganizacaoService,
                                 IOrganizacaoService organizacaoService)
 {
     _salaService               = salaService;
     _salaParticularService     = salaParticularService;
     _usuarioService            = usuarioService;
     _blocoService              = blocoService;
     _usuarioOrganizacaoService = usuarioOrganizacaoService;
     _organizacaoService        = organizacaoService;
 }
Exemple #5
0
        public void Initialize()
        {
            //Arrange
            var builder = new DbContextOptionsBuilder <GestaoAnimalContext>();

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

            _context = new GestaoAnimalContext(options);
            _context.Database.EnsureDeleted();
            _context.Database.EnsureCreated();
            var organizacoes = new List <Organizacao>
            {
                new Organizacao
                {
                    IdOrganizacao = 1,
                    Cnpj          = "49.912.370/0001-94",
                    DataAbertura  = DateTime.Parse("1963-07-11"),
                    Nome          = "Universidade Federal de Sergipe",
                    Telefone      = "793431-2121",
                    Endereco      = "Avenida Marechal Rondon",
                    Email         = "*****@*****.**"
                },
                new Organizacao
                {
                    IdOrganizacao = 2,
                    Cnpj          = "46.581.630/0001-06",
                    DataAbertura  = DateTime.Parse("2006-05-06"),
                    Nome          = "Fundação Cães Felizes",
                    Telefone      = "793431-5489",
                    Endereco      = "Rua Maria Fonseca",
                    Email         = "*****@*****.**"
                },
                new Organizacao
                {
                    IdOrganizacao = 3,
                    Cnpj          = "66.404.554/0001-62",
                    DataAbertura  = DateTime.Parse("2020-01-04"),
                    Nome          = "Colégio Estadual Professor José Rodrigues",
                    Telefone      = "793431-0953",
                    Endereco      = "Avenida Governador José Rodrigues",
                    Email         = "*****@*****.**"
                }
            };

            _context.AddRange(organizacoes);
            _context.SaveChanges();

            _organizacaoService = new OrganizacaoService(_context);
        }
 public PlanejamentoController(IPlanejamentoService service,
                               ISalaService salaService,
                               IUsuarioService usuarioService,
                               IUsuarioOrganizacaoService usuarioOrganizacaoService,
                               IBlocoService blocoService,
                               IOrganizacaoService organizacaoService)
 {
     _planejamentoService       = service;
     _salaService               = salaService;
     _usuarioService            = usuarioService;
     _usuarioOrganizacaoService = usuarioOrganizacaoService;
     _blocoService              = blocoService;
     _organizacaoService        = organizacaoService;
 }
 public HardwareDeSalaController(IHardwareDeSalaService hardwareService,
                                 ITipoHardwareService tipoHardwareService,
                                 ISalaService salaService,
                                 IUsuarioService usuarioService,
                                 IOrganizacaoService organizacaoService,
                                 IBlocoService blocoService)
 {
     _hardwareService     = hardwareService;
     _tipoHardwareService = tipoHardwareService;
     _salaService         = salaService;
     _usuarioService      = usuarioService;
     _organizacaoService  = organizacaoService;
     _blocoService        = blocoService;
 }
Exemple #8
0
 public UsuarioController(
     IUsuarioService usuarioService,
     ITipoUsuarioService tipoUsuarioService,
     IOrganizacaoService organizacaoService,
     IUsuarioOrganizacaoService usuarioOrganizacaoService,
     IPlanejamentoService planejamentoService,
     IHorarioSalaService horarioSalaService
     )
 {
     _usuarioService            = usuarioService;
     _tipoUsuarioService        = tipoUsuarioService;
     _organizacaoService        = organizacaoService;
     _usuarioOrganizacaoService = usuarioOrganizacaoService;
     _planejamentoService       = planejamentoService;
     _horarioSalaService        = horarioSalaService;
 }
 public ReservaSalaController(
     ISalaService salaService,
     IUsuarioService usuarioService,
     IBlocoService blocoService,
     IUsuarioOrganizacaoService usuarioOrganizacaoService,
     IOrganizacaoService organizacaoService,
     IHorarioSalaService horarioSalaService,
     IHardwareDeSalaService hardwareDeSalaService
     )
 {
     _salaService               = salaService;
     _usuarioService            = usuarioService;
     _blocoService              = blocoService;
     _usuarioOrganizacaoService = usuarioOrganizacaoService;
     _organizacaoService        = organizacaoService;
     _horarioSalaService        = horarioSalaService;
     _hardwareDeSalaService     = hardwareDeSalaService;
 }
        public EquipamentoController(
            IEquipamentoService equipamentoService,
            ICodigoInfravermelhoService codigoInfravermelhoService,
            ISalaService salaService,
            IOperacaoCodigoService operacaoService,
            IUsuarioService usuarioService,
            IUsuarioOrganizacaoService usuarioOrganizacaoService,
            IBlocoService blocoService,
            IOrganizacaoService organizacaoService,
            IHardwareDeSalaService hardwareDeSalaService

            )
        {
            _equipamentoService         = equipamentoService;
            _codigoInfravermelhoService = codigoInfravermelhoService;
            _salaService               = salaService;
            _operacaoService           = operacaoService;
            _usuarioService            = usuarioService;
            _usuarioOrganizacaoService = usuarioOrganizacaoService;
            _blocoService              = blocoService;
            _organizacaoService        = organizacaoService;
            _hardwareDeSalaService     = hardwareDeSalaService;
        }
 public TipopertenceController(ITipopertenceService tipopertenceService, IOrganizacaoService organizacaoService, IMapper mapper)
 {
     _tipopertenceService = tipopertenceService;
     _organizacaoService  = organizacaoService;
     _mapper = mapper;
 }
 public TipoocorrenciaController(ITipoocorrenciaService tipoocorrenciaService, IOrganizacaoService organizacaoService, IMapper mapper)
 {
     _tipoocorrenciaService = tipoocorrenciaService;
     _organizacaoService    = organizacaoService;
     _mapper = mapper;
 }
Exemple #13
0
 public OrganizacaoController(IOrganizacaoService organizacaoService)
 {
     _organizacaoService = organizacaoService;
 }
Exemple #14
0
 public UsuarioController(IUsuarioService service, IOrganizacaoService organizacaoService)
 {
     _service            = service;
     _organizacaoService = organizacaoService;
 }
Exemple #15
0
 public OrganizacaoController(IOrganizacaoService service)
 {
     _service = service;
 }
 public LocalController(ILocalService localService, IOrganizacaoService organizacaoService, IMapper mapper)
 {
     _localService       = localService;
     _organizacaoService = organizacaoService;
     _mapper             = mapper;
 }
 public OrganizacaoController(IOrganizacaoService organizacaoService, IMapper mapper)
 {
     _organizacaoService = organizacaoService;
     _mapper             = mapper;
 }
 public PessoaController(IPessoaService pessoaService, IOrganizacaoService organizacaoService, IMapper mapper)
 {
     _pessoaService      = pessoaService;
     _organizacaoService = organizacaoService;
     _mapper             = mapper;
 }