public ListingsController(IPetOwnerRepository po, IAnimalRepository animalRepo,
                           IListingRepository listingRepo, IEggRepository eggRepo)
 {
     _poRepo      = po;
     _aRepo       = animalRepo;
     _listingRepo = listingRepo;
     _eggRepo     = eggRepo;
 }
예제 #2
0
 /// <summary>
 /// Constructor takes three parameters and is handled automatically by ASP.NET
 /// </summary>
 /// <param name="poc">Constructor injection done by Services Providers</param>
 /// <param name="animalRepo">Constructor injection done by Services Providers</param>
 /// <param name="badgeRepository">Constructor injection done by Services Providers</param>
 /// <param name="eggRepo">Constructor injection done by Services Providers</param>
 public AnimalsController(IPetOwnerRepository poc, IAnimalRepository animalRepo,
                          IBadgeRepository badgeRepository, IEggRepository eggRepo, IItemRepository itemRepo)
 {
     _poc        = poc;
     _animalRepo = animalRepo;
     _badgeRepo  = badgeRepository;
     _eggRepo    = eggRepo;
     _itemRepo   = itemRepo;
 }
예제 #3
0
        public UsersController(IPetOwnerRepository por, UserManager <IdentityUser> um
                               , IConfiguration configuration, SignInManager <IdentityUser> sim)
        {
            POR = por;
            UM  = um;

            _config = configuration;
            _sim    = sim;
        }
 public PetProfileService(IUnitOfWork unitOfWork, IPetTreatmentRepository petTreatmentRepository, IPetIllnessRepository petIllnessRepository, IPetOwnerRepository petOwnerRepository, IPetProfileRepository petProfileRepository, IProvinceRepository provinceRepository, ICityRepository cityRepository)
 {
     _unitOfWork             = unitOfWork;
     _petTreatmentRepository = petTreatmentRepository;
     _petIllnessRepository   = petIllnessRepository;
     _petOwnerRepository     = petOwnerRepository;
     _petProfileRepository   = petProfileRepository;
     _provinceRepository     = provinceRepository;
     _cityRepository         = cityRepository;
 }
예제 #5
0
 public ChatService(IChatRepository chatRepository, IProfileRepository profileRepository,
                    IPetProfileRepository petProfileRepository, IUnitOfWork unitOfWork, IPetOwnerRepository petOwnerRepository,
                    IAppointmentRepository appointmentRepository)
 {
     _chatRepository        = chatRepository;
     _profileRepository     = profileRepository;
     _petProfileRepository  = petProfileRepository;
     _unitOfWork            = unitOfWork;
     _petOwnerRepository    = petOwnerRepository;
     _appointmentRepository = appointmentRepository;
 }
 public PetOwnerController(IPetOwnerRepository repo, IConfiguration config
                           , IImageRepository imageRepo, IListingRepository liRepo, IEggRepository eggRepo,
                           UserManager <IdentityUser> um)
 {
     _poRepo      = repo;
     _config      = config;
     _imageRepo   = imageRepo;
     _eggRepo     = eggRepo;
     _listingRepo = liRepo;
     _um          = um;
 }
 public OwnerProfileService(IUnitOfWork unitOfWork, IPetOwnerRepository petOwnerRepository, IOwnerLocationRepository ownerLocationRepository,
                            IOwnerProfileRepository ownerProfileRepository, IProvinceRepository provinceRepository, ICityRepository cityRepository, IUserRepository userRepository)
 {
     _unitOfWork              = unitOfWork;
     _petOwnerRepository      = petOwnerRepository;
     _ownerLocationRepository = ownerLocationRepository;
     _ownerProfileRepository  = ownerProfileRepository;
     _provinceRepository      = provinceRepository;
     _cityRepository          = cityRepository;
     _userRepository          = userRepository;
 }
예제 #8
0
 public PetOwnerController(IPetOwnerRepository petOwnerRepository)
 => _petOwnerRepository = petOwnerRepository;
예제 #9
0
 public void LoadJson()
 {
     repository = new PetOwnerRepository(API_URL_base, API_URL_json);
 }
예제 #10
0
 public PetOwnerService(IUnitOfWork unitOfWork, IPetOwnerRepository petOwnerRepository)
 {
     _unitOfWork         = unitOfWork;
     _petOwnerRepository = petOwnerRepository;
 }
예제 #11
0
 public EggsController(IPetOwnerRepository poRepo, IEggRepository eggRepo)
 {
     _poRepo  = poRepo;
     _eggRepo = eggRepo;
 }
예제 #12
0
 public PetOwnerService(IPetOwnerRepository repository)
 {
     this.petRepository = repository;
 }
 public PetOwnerService(IPetOwnerRepository petRepository)
 {
     _petRepository = petRepository;
 }
예제 #14
0
 public void SetUp()
 {
     // set up mock oject
     _repository = MockPetOwnerRepository.SetUpMock().Object;
 }
예제 #15
0
 public MarketController(IPetOwnerRepository poc, IMarketRepository marktRepo)
 {
     _poc        = poc;
     _marketRepo = marktRepo;
 }
예제 #16
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="iPetOwnerRepository">Repository interface to be used</param>
 public CatListController(IPetOwnerRepository iPetOwnerRepository)
 {
     // set repository
     _iPetOwnerRepository = iPetOwnerRepository;
 }
예제 #17
0
 public PetOwnerService(IPetOwnerRepository dogOwnerRepository, IOwnerRepository ownerRepository, IPetRepository petRepository)
 {
     _dogOwnerRepository = dogOwnerRepository;
     _petRepository      = petRepository;
     _ownerRepository    = ownerRepository;
 }