public AdoptionFormController(IAdoptionFormService adoptionForms, IAnimalService animals, IAdopterService adopters, ISanitizer sanitizeService) { this.adoptionForms = adoptionForms; this.animals = animals; this.adopters = adopters; this.sanitizeService = sanitizeService; }
public CommentsController(ICommentService comments, IAnimalService animals, IUserService users, ISanitizer sanitizeService) { this.comments = comments; this.animals = animals; this.users = users; this.sanitizeService = sanitizeService; }
public void Init() { this.cacheService = new HttpCacheService(); this.animals = ObjectFactory.GetAnimalService(); this.organizations = ObjectFactory.GetOrganizationService(); this.controller = new HomeController(animals, organizations, cacheService); }
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; }
public IndexModel(ILogger <IndexModel> logger, IAnimalService animalService) { _logger = logger; _animalService = animalService; Animals = _animalService.GetAnimals(); ListOfAnimals = new SelectList(_animalService.GetAnimalTypeNames()); }
public HomeController(IAdotanteService adotanteService, IAnimalService animalService, IPessoaService pessoaService, IUsuarioService usuarioService) { _animalService = animalService; _adotanteService = adotanteService; _pessoaService = pessoaService; _usuarioService = usuarioService; }
public AnimalAppServiceTests() { _animalService = Substitute.For <IAnimalService>(); _mapper = Substitute.For <IMapper>(); _uow = Substitute.For <IUnitOfWork>(); animalAppService = new AnimalAppService(_animalService, _uow, _mapper); }
public Form1() { _service = new AnimalService(); InitializeComponent(); InitialiseForm(); }
public CommentsController(ICommentService comments, IAnimalService animals, IUserService users, ISanitizer sanitizeService) { this.comments = comments; this.animals = animals; this.users = users; this.sanitizeService = sanitizeService; }
public void Init() { this.cacheService = new HttpCacheService(); this.animals = ObjectFactory.GetAnimalService(); this.organizations = ObjectFactory.GetOrganizationService(); this.controller = new HomeController(animals, organizations, cacheService); }
// GET: ConsultaController public ConsultaController(IConsultaService consultaService, IMapper mapper, IAnimalService animalService, IPessoaService pessoaService) { _consultaService = consultaService; _mapper = mapper; _animalService = animalService; _pessoaService = pessoaService; }
public AnimalApiController( ILogger <AnimalApiController> logger, IAnimalService animalService) { _logger = logger; _animalService = animalService; }
public Zoo(IAnimalService animalService, IVisitorService visitorService) { _animalService = animalService; _visitorService = visitorService; _visitors = new List <string>(); _animals = new List <string>(); }
/// <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; }
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; } }
public ExameController(IExameService exameService, IConsultaService consultaService, IAnimalService animalService, ITipoexameService tipoexameService, IMapper mapper) { _exameService = exameService; _consultaService = consultaService; _animalService = animalService; _tipoexameService = tipoexameService; _mapper = mapper; }
public AdoptionController(IAnimalService animalService, IUserService userService, IStayService stayService, UserManager <ApplicationUser> userManager) { _animalService = animalService; _userService = userService; _stayService = stayService; _userManager = userManager; }
/// <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; }
public DashboardController(IHabitatService habitatService, IEmployeeService employeeService, IAnimalService animalService) { _habitatService = habitatService; _employeeService = employeeService; _animalService = animalService; }
public AnimalController(IAnimalService animalService, IAnimalDetailsService animalDetailsService, IMapper mapper) { _animalService = animalService; _animalDetailsService = animalDetailsService; _mapper = mapper; }
//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; }
public Form1() { InitializeComponent(); _context = new AnimalService(); lvWagon.Visible = false; cbSize.DataSource = Enum.GetValues(typeof(AnimalSize)); cbFood.DataSource = Enum.GetValues(typeof(FoodType)); }
public AnimalModule(IAnimalService service) { Get["/{name}", true] = async(_, ct) => { var animal = await service.GetByName((string)_.name); return(Response.AsJson(animal)); }; }
/// <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; }
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; }
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; }
public PhotoController(IPhotoService photos, IAnimalService animal) { this.photos = photos; this.animal = animal; }
public AnimalController(IAnimalService animals, IOrganizationService organizations, ISanitizer sanitizeService) { this.animals = animals; this.organizations = organizations; this.sanitizeService = sanitizeService; }
public HomeController(IAnimalService animals, IOrganizationService organizations, ICacheService cacheService) { this.cacheService = cacheService; this.animals = animals; this.organizations = organizations; }
public AnimalsController(IAnimalService animals) { this.animals = animals; }