Exemplo n.º 1
0
 public TuyenDungDuyetHoSoController(IRegistrationInterviewRepository registrationInterviewRepository, IProvinceRepository provinceRepository, IDistrictRepository districtRepository, IWardRepository wardRepository, IHinhThucDaoTaoRepository hinhThucDaoTaoRepository, IBangTotNghiepRepository bangTotNghiepRepository, IChuyenNganhDaoTaoRepository chuyenNganhDaoTaoRepository, ITrinhDoCaoNhatRepository trinhDoCaoNhatRepository, ILamViecTrongNganhRepository lamViecTrongNganhRepository, ITrinhDoTinHocRepository trinhDoTinHocRepository, ITrinhDoNgoaiNguRepository trinhDoNgoaiNguRepository, IMonDuTuyenRepository monDuTuyenRepository, IXepLoaiHocLucRepository xepLoaiHocLucRepository, ICapTruongRepository capTruongRepository, ITonGiaoRepository tonGiaoRepository, IDanTocRepository danTocRepository, IDoiTuongUuTienRepository doiTuongUuTienRepository, IThanhPhanBanThanHienTaiRepository thanhPhanBanThanHienTaiRepository, ITruongHopDacBietRepository truongHopDacBietRepository, ITrinhDoNgoaiNguKhacReposittory trinhDoNgoaiNguKhacReposittory, IChungChiNghiepVuSuPhamRepository chungChiNghiepVuSuPhamRepository, IHoSoHopLeRepository hoSoHopLeRepository)
 {
     this.registrationInterviewRepository = registrationInterviewRepository;
     this.provinceRepository                = provinceRepository;
     this.districtRepository                = districtRepository;
     this.wardRepository                    = wardRepository;
     this.hinhThucDaoTaoRepository          = hinhThucDaoTaoRepository;
     this.bangTotNghiepRepository           = bangTotNghiepRepository;
     this.chuyenNganhDaoTaoRepository       = chuyenNganhDaoTaoRepository;
     this.trinhDoCaoNhatRepository          = trinhDoCaoNhatRepository;
     this.lamViecTrongNganhRepository       = lamViecTrongNganhRepository;
     this.trinhDoTinHocRepository           = trinhDoTinHocRepository;
     this.trinhDoNgoaiNguRepository         = trinhDoNgoaiNguRepository;
     this.monDuTuyenRepository              = monDuTuyenRepository;
     this.xepLoaiHocLucRepository           = xepLoaiHocLucRepository;
     this.capTruongRepository               = capTruongRepository;
     this.tonGiaoRepository                 = tonGiaoRepository;
     this.danTocRepository                  = danTocRepository;
     this.doiTuongUuTienRepository          = doiTuongUuTienRepository;
     this.thanhPhanBanThanHienTaiRepository = thanhPhanBanThanHienTaiRepository;
     this.truongHopDacBietRepository        = truongHopDacBietRepository;
     this.trinhDoNgoaiNguKhacReposittory    = trinhDoNgoaiNguKhacReposittory;
     this.chungChiNghiepVuSuPhamRepository  = chungChiNghiepVuSuPhamRepository;
     this.hoSoHopLeRepository               = hoSoHopLeRepository;
 }
        public void Simple_Status_PollingCentre()
        {
            IWardRepository wardRepository = Substitute.For <IWardRepository>();
            var             f             = new Fixture();
            var             ward          = f.Create <Ward>();
            var             pollingCentre = Create(ward.GetMasterDataRef());

            wardRepository.GetById(Arg.Any <Guid>()).Returns(ward);
            var pollingCentreRepository = new PollingCentreRepository(ContextConnection(), wardRepository);

            pollingCentreRepository.Save(pollingCentre);
            pollingCentreRepository.SetInactive(pollingCentre);
            var inactive = pollingCentreRepository.GetById(pollingCentre.Id);

            Assert.That(inactive.Status == EntityStatus.Inactive);

            pollingCentreRepository.SetActive(pollingCentre);
            var active = pollingCentreRepository.GetById(pollingCentre.Id);

            Assert.That(active.Status == EntityStatus.Active);

            pollingCentreRepository.SetAsDeleted(pollingCentre);
            var deleted = pollingCentreRepository.GetById(pollingCentre.Id);

            Assert.That(deleted.Status == EntityStatus.Deleted);
        }
 public InHopDongController(ISchoolRepository schoolRepository, IDistrictRepository districtRepository, IWardRepository wardRepository, IHopDongRepository hopDongRepository)
 {
     this.schoolRepository   = schoolRepository;
     this.districtRepository = districtRepository;
     this.wardRepository     = wardRepository;
     this.hopDongRepository  = hopDongRepository;
 }
Exemplo n.º 4
0
 public CheckoutModel(IReceivingTypeRepository receivingTypeRepository, IShowRoomAddressRepository showRoomAddressRepository, IAddressRepository addressRepository, IWardRepository wardRepository, IDistrictRepository districtRepository, IProvinceRepository provinceRepository, IItemRepository itemRepository, UserManager <ApplicationUser> userManager,
                      ICartRepository cartRepository, ICartDetailRepository cartDetailRepository,
                      IUserRepository userRepository,
                      IDefaultAddressRepository defaultAddressRepository,
                      IOrderItemRepository orderItemRepository,
                      IOrderRepository orderRepository,
                      IEmailSender emailSender,
                      IRazorViewToStringRenderer razorViewToStringRenderer,
                      DbContextOptions <OnlineStoreDbContext> options)
 {
     _options                   = options;
     _emailSender               = emailSender;
     _itemRepository            = itemRepository;
     _razorViewToStringRenderer = razorViewToStringRenderer;
     _orderItemRepository       = orderItemRepository;
     _orderRepository           = orderRepository;
     _defaultAddressRepository  = defaultAddressRepository;
     _userRepository            = userRepository;
     _cartDetailRepository      = cartDetailRepository;
     _cartRepository            = cartRepository;
     _userManager               = userManager;
     _provinceRepository        = provinceRepository;
     _districtRepository        = districtRepository;
     _wardRepository            = wardRepository;
     _addressRepository         = addressRepository;
     _showRoomAddressRepository = showRoomAddressRepository;
     _receivingTypeRepository   = receivingTypeRepository;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Nơi nhận "công nhân" và phân phối đến từng nơi cần để làm việc
 /// </summary>
 /// <param name="countryRepository">Chuyển đến "kho" country</param>
 /// <param name="districtRepository">Chuyển đến "kho" district</param>
 /// <param name="provinceRepository">Chuyển đến "kho" province</param>
 /// <param name="storeRepository">Chuyển đến "kho" store</param>
 /// <param name="wardRepository">Chuyển đến "kho" ward</param>
 public UnitOfWork(ICountryRepository countryRepository, IDistrictRepository districtRepository, IProvinceRepository provinceRepository, IStoreRepository storeRepository, IWardRepository wardRepository)
 {
     CountryRepository  = countryRepository;
     DistrictRepository = districtRepository;
     ProvinceRepository = provinceRepository;
     StoreRepository    = storeRepository;
     WardRepository     = wardRepository;
 }
Exemplo n.º 6
0
 public CommonService(IProvinceRepository roomRepository, IDistrictRepository districtRepository, IWardRepository wardRepository, IUnitOfWork unitOfWork,
                      IAuditLogRepository audilogRepository)
 {
     this._provinceRepository = roomRepository;
     this._districtRepository = districtRepository;
     this._wardRepository     = wardRepository;
     this._audilogRepository  = audilogRepository;
     this._unitOfWork         = unitOfWork;
 }
Exemplo n.º 7
0
 public UpdateCommandHandler(IWardRepository wardRepository, IWardQueries wardQueries, IDistrictQueries districtQueries, IProvinceQueries provinceQueries, IRegionQueries regionQueries, ICountryQueries countryQueries)
 {
     this.wardRepository  = wardRepository;
     this.wardQueries     = wardQueries;
     this.districtQueries = districtQueries;
     this.provinceQueries = provinceQueries;
     this.regionQueries   = regionQueries;
     this.countryQueries  = countryQueries;
 }
Exemplo n.º 8
0
 public CartController(IProvinceRepository provinceRepository,
                       IDistrictRepository districtRepository,
                       IWardRepository wardRepository,
                       IPaymentMethodRepository paymentMethodRepository)
 {
     _provinceRepository      = provinceRepository;
     _districtRepository      = districtRepository;
     _wardRepository          = wardRepository;
     _paymentMethodRepository = paymentMethodRepository;
 }
Exemplo n.º 9
0
 public AccountsController(
     IAccountRepository accountRepository,
     IFunctionRepository functionRepository,
     IGroupRepository groupRepository,
     IWardRepository wardRepository,
     IBaseApiService service) : base(service)
 {
     _accountRepository  = accountRepository;
     _functionRepository = functionRepository;
     _groupRepository    = groupRepository;
     _wardRepository     = wardRepository;
 }
Exemplo n.º 10
0
 public UnitOfWork(IStoreRepository store,
                   ICountryRepository country,
                   IProvinceRepository province,
                   IDistrictRepository district,
                   IWardRepository ward)
 {
     Store    = store;
     Country  = country;
     Province = province;
     District = district;
     Ward     = ward;
 }
Exemplo n.º 11
0
 public CampaignsController(
     IAccountRepository accountRepository,
     ICampaignRepository campaignRepository,
     ICategoryRepository categoryRepository,
     IWardRepository wardRepository,
     IBaseApiService service
     ) : base(service)
 {
     _accountRepository  = accountRepository;
     _campaignRepository = campaignRepository;
     _categoryRepository = categoryRepository;
     _wardRepository     = wardRepository;
 }
 public AddressService(
     ProvinceRepository provinceRepository,
     DistrictRepository disctrictRepository,
     WardRepository wardRepository,
     StreetRepository streetRepository,
     IUnitOfWork unitOfWork
     )
 {
     _provinceRepository  = provinceRepository;
     _disctrictRepository = disctrictRepository;
     _wardRepository      = wardRepository;
     _streetRepository    = streetRepository;
     _unitOfWork          = unitOfWork;
 }
        public void SimpeHydrate_PollingCentre()
        {
            IWardRepository wardRepository = Substitute.For <IWardRepository>();
            var             f             = new Fixture();
            var             ward          = f.Create <Ward>();
            var             pollingCentre = Create(ward.GetMasterDataRef());

            wardRepository.GetById(Arg.Any <Guid>()).Returns(ward);
            var pollingCentreRepository = new PollingCentreRepository(ContextConnection(), wardRepository);
            var id = pollingCentreRepository.Save(pollingCentre);

            Assert.IsNotNull(id);
            Assert.AreEqual(id, pollingCentre.Id);
        }
        public void SimpeDeHydrateAll_PollingCentre()
        {
            IWardRepository wardRepository = Substitute.For <IWardRepository>();
            var             f             = new Fixture();
            var             ward          = f.Create <Ward>();
            var             pollingCentre = Create(ward.GetMasterDataRef());

            wardRepository.GetById(Arg.Any <Guid>()).Returns(ward);
            var pollingCentreRepository = new PollingCentreRepository(ContextConnection(), wardRepository);

            pollingCentreRepository.Save(pollingCentre);
            var owner = pollingCentreRepository.GetAll();

            Assert.That(owner.Any());
        }
 public TuyenDungController(IRegistrationInterviewRepository registrationInterviewRepository, IProvinceRepository provinceRepository, IDistrictRepository districtRepository, IWardRepository wardRepository, IHinhThucDaoTaoRepository hinhThucDaoTaoRepository, IBangTotNghiepRepository bangTotNghiepRepository, IChuyenNganhDaoTaoRepository chuyenNganhDaoTaoRepository, ITrinhDoCaoNhatRepository trinhDoCaoNhatRepository, ILamViecTrongNganhRepository lamViecTrongNganhRepository, ITrinhDoTinHocRepository trinhDoTinHocRepository, ITrinhDoNgoaiNguRepository trinhDoNgoaiNguRepository, IMonDuTuyenRepository monDuTuyenRepository, IXepLoaiHocLucRepository xepLoaiHocLucRepository, ICapTruongRepository capTruongRepository)
 {
     this.registrationInterviewRepository = registrationInterviewRepository;
     this.provinceRepository          = provinceRepository;
     this.districtRepository          = districtRepository;
     this.wardRepository              = wardRepository;
     this.hinhThucDaoTaoRepository    = hinhThucDaoTaoRepository;
     this.bangTotNghiepRepository     = bangTotNghiepRepository;
     this.chuyenNganhDaoTaoRepository = chuyenNganhDaoTaoRepository;
     this.trinhDoCaoNhatRepository    = trinhDoCaoNhatRepository;
     this.lamViecTrongNganhRepository = lamViecTrongNganhRepository;
     this.trinhDoTinHocRepository     = trinhDoTinHocRepository;
     this.trinhDoNgoaiNguRepository   = trinhDoNgoaiNguRepository;
     this.monDuTuyenRepository        = monDuTuyenRepository;
     this.xepLoaiHocLucRepository     = xepLoaiHocLucRepository;
     this.capTruongRepository         = capTruongRepository;
 }
Exemplo n.º 16
0
 public HomeController(ILogger <HomeController> logger,
                       IGateRepository gateRepository,
                       IProvinceRepository provinceRepository,
                       IDistrictRepository districtRepository,
                       IWardRepository wardRepository,
                       IMedical_Declaration medicalRepository,
                       ISymptomRepository symptomRepository
                       )
 {
     _logger                 = logger;
     this.gateRepository     = gateRepository;
     this.provinceRepository = provinceRepository;
     this.districtRepository = districtRepository;
     this.wardRepository     = wardRepository;
     this.medicalRepository  = medicalRepository;
     this.symptomRepository  = symptomRepository;
 }
Exemplo n.º 17
0
 public CandidatesController(IRegistrationInterviewRepository registrationInterviewRepository, IProvinceRepository provinceRepository, IDistrictRepository districtRepository, IWardRepository wardRepository, ITrainningCategoryRepository trainningCategoryRepository, IGraduationClassficationRepository graduationClassficationRepository, ISpecializedTrainingRepository specializedTrainingRepository, IHighestLevelEducationRepository highestLevelEducationRepository, IStatusWorikingInEducationRepository statusWorikingInEducationRepository, IInformationTechnologyDegree informationTechnologyDegree, IForeignLanguageRepository foreignLanguageRepository, ISubjectRepository subjectRepository, IDegreeClassificationRepository degreeClassificationRepository, ISchoolDegreeRepository degreeRepository)
 {
     this.registrationInterviewRepository = registrationInterviewRepository;
     this.provinceRepository                  = provinceRepository;
     this.districtRepository                  = districtRepository;
     this.wardRepository                      = wardRepository;
     this.trainningCategoryRepository         = trainningCategoryRepository;
     this.graduationClassficationRepository   = graduationClassficationRepository;
     this.specializedTrainingRepository       = specializedTrainingRepository;
     this.highestLevelEducationRepository     = highestLevelEducationRepository;
     this.statusWorikingInEducationRepository = statusWorikingInEducationRepository;
     this.informationTechnologyDegree         = informationTechnologyDegree;
     this.foreignLanguageRepository           = foreignLanguageRepository;
     this.subjectRepository                   = subjectRepository;
     this.degreeClassificationRepository      = degreeClassificationRepository;
     this.degreeRepository                    = degreeRepository;
 }
Exemplo n.º 18
0
 public ImportProvider(IInCaseOfRepository inCaseOfRepository, ILabRepository labRepository, ICityRepository cityRepository,
                       IDistrictRepository districtRepository, IWardRepository wardRepository, IEquipmentRepository equipmentRepository,
                       IOperatorRepository operatorRepository, IApplicantRepository applicantRepository, IProfileRepository profileRepository,
                       IBtsRepository btsRepository, ICertificateRepository certificateRepository, INoCertificateRepository noCertificateRepository,
                       ISubBtsInCertRepository subBTSinCertRepository, INoRequiredBtsRepository noRequiredBtsRepository,
                       ISubBtsInNoRequiredBtsRepository subBTSinNoRequiredBtsRepository, IUnitOfWork unitOfWork)
 {
     _inCaseOfRepository              = inCaseOfRepository;
     _labRepository                   = labRepository;
     _cityRepository                  = cityRepository;
     _districtRepository              = districtRepository;
     _wardRepository                  = wardRepository;
     _equipmentRepository             = equipmentRepository;
     _operatorRepository              = operatorRepository;
     _applicantRepository             = applicantRepository;
     _profileRepository               = profileRepository;
     _btsRepository                   = btsRepository;
     _certificateRepository           = certificateRepository;
     _noCertificateRepository         = noCertificateRepository;
     _subBTSinCertRepository          = subBTSinCertRepository;
     _noRequiredBtsRepository         = noRequiredBtsRepository;
     _subBTSinNoRequiredBtsRepository = subBTSinNoRequiredBtsRepository;
     _unitOfWork = unitOfWork;
 }
Exemplo n.º 19
0
 public WardService(IWardRepository wardRepository) : base(wardRepository)
 {
     _wardRepository = wardRepository;
 }
Exemplo n.º 20
0
 public WardService(IWardRepository dbContext) : base(dbContext)
 {
     _dbContext = dbContext;
 }
Exemplo n.º 21
0
 public LocationService(IProvinceRepository provinceRepository, IDistrictRepository districtRepository, IWardRepository wardRepository)
 {
     this.provinceRepository = provinceRepository;
     this.districtRepository = districtRepository;
     this.wardRepository     = wardRepository;
 }
Exemplo n.º 22
0
 public CommonsAPIController(IWardRepository wardRepository, IDistrictRepository districtRepository)
 {
     this.wardRepository     = wardRepository;
     this.districtRepository = districtRepository;
 }
Exemplo n.º 23
0
 public WardService(IWardRepository repository, IUnitOfWork unitOfWork) : base(repository, unitOfWork)
 {
 }
Exemplo n.º 24
0
 public WardService(IWardRepository wardRepository, IMapper mapper)
 {
     _wardRepository = wardRepository;
     _mapper         = mapper;
 }
Exemplo n.º 25
0
 public InsertWardCommandHandler(IWardRepository wardRepository, IWardQueries wardQueries)
 {
     this.wardRepository = wardRepository;
     this.wardQueries    = wardQueries;
 }
Exemplo n.º 26
0
 public WardService(IBaseRepository <Ward> baseRepository, IWardRepository wardRepository) : base(baseRepository)
 {
     _wardRepository = wardRepository;
 }
Exemplo n.º 27
0
 public WardService(IWardRepository wardRepository,
                    IUnitOfWork unitOfWork)
 {
     _wardRepository = wardRepository;
     _unitOfWork     = unitOfWork;
 }
Exemplo n.º 28
0
 public WardService(IWardRepository wardRepository)
 {
     this.wardRepository = wardRepository;
 }
Exemplo n.º 29
0
 public WardService(IWardRepository repo, IDistrictService districtService) : base(repo)
 {
     _wardRepository  = repo;
     _districtService = districtService;
 }
Exemplo n.º 30
0
 public DiaChiController(IWardRepository wardRepository, IDistrictRepository districtRepository)
 {
     this.wardRepository     = wardRepository;
     this.districtRepository = districtRepository;
 }
Exemplo n.º 31
0
 public WardService(IWardRepository wards, IUnitOfWork uow)
 {
     _wards = wards;
     _uow = uow;
 }