public AdoptionFormController(IAdoptionFormService adoptionForms, IAnimalService animals, IAdopterService adopters, ISanitizer sanitizeService)
 {
     this.adoptionForms = adoptionForms;
     this.animals = animals;
     this.adopters = adopters;
     this.sanitizeService = sanitizeService;
 }
Exemplo n.º 2
0
 public CommentsController(ICommentService comments, IAnimalService animals, IUserService users, ISanitizer sanitizeService)
 {
     this.comments = comments;
     this.animals = animals;
     this.users = users;
     this.sanitizeService = sanitizeService;
 }
Exemplo n.º 3
0
 public void Init()
 {
     this.cacheService  = new HttpCacheService();
     this.animals       = ObjectFactory.GetAnimalService();
     this.organizations = ObjectFactory.GetOrganizationService();
     this.controller    = new HomeController(animals, organizations, cacheService);
 }
Exemplo n.º 4
0
 public AdoptionFormController(IAdoptionFormService adoptionForms, IAnimalService animals, IAdopterService adopters, ISanitizer sanitizeService)
 {
     this.adoptionForms   = adoptionForms;
     this.animals         = animals;
     this.adopters        = adopters;
     this.sanitizeService = sanitizeService;
 }
 public HistoricoAtendimentoController(
     IAnimalService animalService,
     IAtendimentoService atendimentoService)
 {
     _animalService      = animalService;
     _atendimentoService = atendimentoService;
 }
Exemplo n.º 6
0
 public IndexModel(ILogger <IndexModel> logger, IAnimalService animalService)
 {
     _logger        = logger;
     _animalService = animalService;
     Animals        = _animalService.GetAnimals();
     ListOfAnimals  = new SelectList(_animalService.GetAnimalTypeNames());
 }
Exemplo n.º 7
0
 public HomeController(IAdotanteService adotanteService, IAnimalService animalService, IPessoaService pessoaService, IUsuarioService usuarioService)
 {
     _animalService   = animalService;
     _adotanteService = adotanteService;
     _pessoaService   = pessoaService;
     _usuarioService  = usuarioService;
 }
Exemplo n.º 8
0
 public AnimalAppServiceTests()
 {
     _animalService   = Substitute.For <IAnimalService>();
     _mapper          = Substitute.For <IMapper>();
     _uow             = Substitute.For <IUnitOfWork>();
     animalAppService = new AnimalAppService(_animalService, _uow, _mapper);
 }
Exemplo n.º 9
0
        public Form1()
        {
            _service = new AnimalService();

            InitializeComponent();
            InitialiseForm();
        }
Exemplo n.º 10
0
 public CommentsController(ICommentService comments, IAnimalService animals, IUserService users, ISanitizer sanitizeService)
 {
     this.comments        = comments;
     this.animals         = animals;
     this.users           = users;
     this.sanitizeService = sanitizeService;
 }
Exemplo n.º 11
0
 public void Init()
 {
     this.cacheService = new HttpCacheService();
     this.animals = ObjectFactory.GetAnimalService();
     this.organizations = ObjectFactory.GetOrganizationService();
     this.controller = new HomeController(animals, organizations, cacheService);
 }
Exemplo n.º 12
0
        // GET: ConsultaController

        public ConsultaController(IConsultaService consultaService, IMapper mapper, IAnimalService animalService, IPessoaService pessoaService)
        {
            _consultaService = consultaService;
            _mapper          = mapper;
            _animalService   = animalService;
            _pessoaService   = pessoaService;
        }
Exemplo n.º 13
0
 public AnimalApiController(
     ILogger <AnimalApiController> logger,
     IAnimalService animalService)
 {
     _logger        = logger;
     _animalService = animalService;
 }
Exemplo n.º 14
0
 public Zoo(IAnimalService animalService, IVisitorService visitorService)
 {
     _animalService  = animalService;
     _visitorService = visitorService;
     _visitors       = new List <string>();
     _animals        = new List <string>();
 }
Exemplo n.º 15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AnimalController"/> class.
 /// </summary>
 /// <param name="animalService"></param>
 public AnimalController(IAnimalService animalService, ILodgingService lodgingService, IStayService stayService, IWebHostEnvironment hostEnvironment)
 {
     _animalService   = animalService;
     _lodgingService  = lodgingService;
     _stayService     = stayService;
     _hostEnvironment = hostEnvironment;
 }
Exemplo n.º 16
0
        public static IAnimalService GetAnimalService(string http)
        {
            ChannelFactory <IAnimalService> channelFactory = null;

            try
            {
                // Create a binding of the type exposed by service
                BasicHttpBinding httpBinding = new BasicHttpBinding();

                // EndPoint address
                EndpointAddress endpointAddress = new EndpointAddress(http);

                // Pass Binding and EndPoint address to ChannelFactory using httpBinding
                channelFactory = new ChannelFactory <IAnimalService>(httpBinding, endpointAddress);

                // Now create the new channel as below
                IAnimalService channel = channelFactory.CreateChannel();

                return(channel);
            }
            catch (TimeoutException)
            {
                // Timeout error
                if (channelFactory != null)
                {
                    channelFactory.Abort();
                }

                throw;
            }
            catch (FaultException)
            {
                if (channelFactory != null)
                {
                    channelFactory.Abort();
                }

                throw;
            }
            catch (CommunicationException)
            {
                // Communication error
                if (channelFactory != null)
                {
                    channelFactory.Abort();
                }

                throw;
            }
            catch (Exception)
            {
                if (channelFactory != null)
                {
                    channelFactory.Abort();
                }

                throw;
            }
        }
Exemplo n.º 17
0
 public ExameController(IExameService exameService, IConsultaService consultaService, IAnimalService animalService, ITipoexameService tipoexameService, IMapper mapper)
 {
     _exameService     = exameService;
     _consultaService  = consultaService;
     _animalService    = animalService;
     _tipoexameService = tipoexameService;
     _mapper           = mapper;
 }
Exemplo n.º 18
0
 public AdoptionController(IAnimalService animalService, IUserService userService,
                           IStayService stayService, UserManager <ApplicationUser> userManager)
 {
     _animalService = animalService;
     _userService   = userService;
     _stayService   = stayService;
     _userManager   = userManager;
 }
Exemplo n.º 19
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CommentController"/> class.
 /// </summary>
 /// <param name="commentService"></param>
 /// <param name="stayService"></param>
 /// <param name="animalService"></param>
 public CommentController(ICommentService commentService, IStayService stayService,
                          IAnimalService animalService, UserManager <ApplicationUser> userManager)
 {
     _commentService = commentService;
     _animalService  = animalService;
     _stayService    = stayService;
     _userManager    = userManager;
 }
Exemplo n.º 20
0
 public DashboardController(IHabitatService habitatService,
                            IEmployeeService employeeService,
                            IAnimalService animalService)
 {
     _habitatService  = habitatService;
     _employeeService = employeeService;
     _animalService   = animalService;
 }
Exemplo n.º 21
0
 public AnimalController(IAnimalService animalService,
                         IAnimalDetailsService animalDetailsService,
                         IMapper mapper)
 {
     _animalService        = animalService;
     _animalDetailsService = animalDetailsService;
     _mapper = mapper;
 }
Exemplo n.º 22
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 AnimalController(
     ICategoriesService categoriesService,
     IAnimalService animalService,
     UserManager <ApplicationUser> userManager)
 {
     this.categoriesService = categoriesService;
     this.animalService     = animalService;
     this.userManager       = userManager;
 }
 public EmployeController(
     IEmployeService employeService,
     IAnimalService animalService,
     IPositionService positionService)
 {
     this.employeService  = employeService;
     this.animalService   = animalService;
     this.positionService = positionService;
 }
Exemplo n.º 25
0
        public Form1()
        {
            InitializeComponent();

            _context          = new AnimalService();
            lvWagon.Visible   = false;
            cbSize.DataSource = Enum.GetValues(typeof(AnimalSize));
            cbFood.DataSource = Enum.GetValues(typeof(FoodType));
        }
Exemplo n.º 26
0
        public AnimalModule(IAnimalService service)
        {
            Get["/{name}", true] = async(_, ct) =>
            {
                var animal = await service.GetByName((string)_.name);

                return(Response.AsJson(animal));
            };
        }
Exemplo n.º 27
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TreatmentController"/> class.
 /// </summary>
 /// <param name="treatmentRepository"></param>
 public TreatmentController(ITreatmentService treatmentService, IStayService stayService,
                            IAnimalService animalService, ILodgingService lodgingService,
                            UserManager <ApplicationUser> userManager)
 {
     _treatmentService = treatmentService;
     _animalService    = animalService;
     _stayService      = stayService;
     _lodgingService   = lodgingService;
     _userManager      = userManager;
 }
Exemplo n.º 28
0
 public AnimalToCareService(IAnimalToCareRepository animalToCareRepository,
                            IAnimalRepository animalRepository,
                            IUserRepository userRepository,
                            IAnimalService animalService)
 {
     _animalToCareRepository = animalToCareRepository;
     _animalRepository       = animalRepository;
     _userRepository         = userRepository;
     _animalService          = animalService;
 }
 public AgendamentoClienteController(IAgendamentoService agendamentoService,
                                     IClienteService clienteService,
                                     IAnimalService animalService,
                                     IVeterinarioService veterinarioService)
 {
     _agendamentoService = agendamentoService;
     _clienteService     = clienteService;
     _animalService      = animalService;
     _veterinarioService = veterinarioService;
 }
 public AnimalController(
     IAnimalService animalService,
     ICageService cageService,
     IKindService kindService,
     IEmployeService employeService)
 {
     this.animalService  = animalService;
     this.cageService    = cageService;
     this.kindService    = kindService;
     this.employeService = employeService;
 }
 public AplicaMedicamentoController(IAplicaMedicamentoService aplicaMedicamentoService,
                                    IMedicamentoService medicamentoService,
                                    IAnimalService animalService,
                                    IPessoaService pessoaService,
                                    IMapper mapper)
 {
     _aplicaMedicamentoService = aplicaMedicamentoService;
     _medicamentoService       = medicamentoService;
     _animalService            = animalService;
     _pessoaService            = pessoaService;
     _mapper = mapper;
 }
Exemplo n.º 32
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;
 }
 public HomeController(
     IGetCountsService countsService,
     IAnimalService animalService,
     IClinicService clinicService,
     IPublicationService publicationService,
     IHotelService hotelService,
     ISosSignalService sosSignalService)
 {
     this.countsService      = countsService;
     this.animalService      = animalService;
     this.clinicService      = clinicService;
     this.publicationService = publicationService;
     this.hotelService       = hotelService;
     this.sosSignalService   = sosSignalService;
 }
Exemplo n.º 34
0
 public PhotoController(IPhotoService photos, IAnimalService animal)
 {
     this.photos = photos;
     this.animal = animal;
 }
Exemplo n.º 35
0
 public AnimalController(IAnimalService animals, IOrganizationService organizations, ISanitizer sanitizeService)
 {
     this.animals = animals;
     this.organizations = organizations;
     this.sanitizeService = sanitizeService;
 }
Exemplo n.º 36
0
 public HomeController(IAnimalService animals, IOrganizationService organizations, ICacheService cacheService)
 {
     this.cacheService = cacheService;
     this.animals = animals;
     this.organizations = organizations;
 }
Exemplo n.º 37
0
 public AnimalsController(IAnimalService animals)
 {
     this.animals = animals;
 }