コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SaveProgramRequestHandler"/> class.
 /// </summary>
 /// <param name="agencyRepository">The agency repository.</param>
 /// <param name="mappingHelper">The mapping helper.</param>
 /// <param name="programFactory">The program factory.</param>
 public SaveProgramRequestHandler(
     IAgencyRepository agencyRepository, IDtoToDomainMappingHelper mappingHelper, IProgramFactory programFactory)
 {
     _agencyRepository = agencyRepository;
     _mappingHelper    = mappingHelper;
     _programFactory   = programFactory;
 }
コード例 #2
0
        public async Task <ActionResult <IEnumerable <Agency> > > GetAllAsync(
            [FromServices] IAgencyRepository repository,
            [FromQuery] PagedAgencyParameters pageParameters,
            [FromQuery] bool?isCapital,
            [FromQuery] bool?isStation,
            [FromQuery] bool?isOpen
            )
        {
            var agencies = await repository.GetAll(
                pageParameters,
                isCapital,
                isStation,
                isOpen
                );

            var metadata = new
            {
                agencies.TotalCount,
                agencies.PageSize,
                agencies.CurrentPage,
                agencies.TotalPages,
                agencies.HasNext,
                agencies.HasPrevious
            };

            Response.Headers.Add(
                "X-Pagination",
                JsonSerializer.Serialize(metadata)
                );

            return(Ok(agencies));
        }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AgencyLogic"/> class.
 /// Constructor for agencylogic object.
 /// </summary>
 /// <param name="agrepo">Agency repository.</param>
 /// <param name="aprepo">Applicant repository.</param>
 /// <param name="payrepo">Payment repository.</param>
 /// <param name="visarepo">Visa repository.</param>
 public AgencyLogic(IAgencyRepository agrepo, IApplicantRepository aprepo, IPaymentRepository payrepo, IVisaRepository visarepo)
 {
     this.agencyRepository = agrepo;
     this.applRepository   = aprepo;
     this.payRepository    = payrepo;
     this.visaRepository   = visarepo;
 }
コード例 #4
0
 public AgencyService(ILoggerFactory loggerFactory, IWalletRepository walletRepository,
                      IAgencyRepository agencyRepository)
 {
     _logger           = loggerFactory.CreateLogger <AgencyService>();
     _agencyRepository = agencyRepository;
     _walletRepository = walletRepository;
 }
コード例 #5
0
 public AgencyService(IAgencyRepository agencyRepository, IUnitOfWork uow
                      , IEmployeeRepository employeeRepository)
 {
     _agencyRepository = agencyRepository;
     _uow = uow;
     _employeeRepository = employeeRepository;
 }
コード例 #6
0
 public HubBusiness(
     IHubRepository hubRepository,
     IAgencyRepository agencyRepository)
 {
     this.hubRepository    = hubRepository;
     this.agencyRepository = agencyRepository;
 }
コード例 #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateBillingOfficeRequestHandler"/> class.
 /// </summary>
 /// <param name="billingOfficeFactory">The billing office factory.</param>
 /// <param name="agencyRepository">The agency repository.</param>
 /// <param name="staffRepository">The staff repository.</param>
 public CreateBillingOfficeRequestHandler(
     IBillingOfficeFactory billingOfficeFactory, IAgencyRepository agencyRepository, IStaffRepository staffRepository)
 {
     _billingOfficeFactory = billingOfficeFactory;
     _agencyRepository     = agencyRepository;
     _staffRepository      = staffRepository;
 }
コード例 #8
0
 public AgencyImpoter(
     IMapper mapper,
     IAgencyRepository repository
     )
 {
     _mapper     = mapper;
     _repository = repository;
 }
コード例 #9
0
 public PatientManagmentRepository()
 {
     _agencyRepository     = new AgencyRepository();
     _doctorRepository     = new DoctorRepository();
     _hospitalRepository   = new HospitalRepository();
     _bankRepository       = new BankRepository();
     _specialityRepository = new SpecialityRepository();
 }
コード例 #10
0
 internal PaymentServiceFactory(IPaymentsRepository paymentsRepository, IInvoiceTransactionRepository invoiceTransactionRepository, IAgencyRepository agencyRepository, ICandidateRepository candidateRepository, IApplicationSettingsWrapper applicationWrapper)
 {
     _paymentsRepository           = paymentsRepository;
     _invoiceTransactionRepository = invoiceTransactionRepository;
     _agencyRepository             = agencyRepository;
     _candidateRepository          = candidateRepository;
     _applicationWrapper           = applicationWrapper;
 }
コード例 #11
0
 public IAgencyRepository GetAgencyRepository()
 {
     if (agencyRepository == null)
     {
         agencyRepository = new AgencyViewRepository(context);
     }
     return(agencyRepository);
 }
コード例 #12
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PaymentLogic"/> class.
        /// Constructor.
        /// </summary>
        public PaymentLogic()
        {
            EmbCtx emb = new EmbCtx();

            this.agRepo = new AgencyRepository(emb);
            this.applicantRepository = new ApplicantRepository(emb);
            this.payment_repo        = new PaymentRepository(emb);
        }
コード例 #13
0
 public AgencyService(
     IAgencyRepository repository,
     ICrudRepository <Vehicle> vehicleRepository
     ) : base(repository)
 {
     _repository        = repository;
     _vehicleRepository = vehicleRepository;
 }
コード例 #14
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DeleteProgramRequestHandler"/> class.
 /// </summary>
 /// <param name="programRepository">The program repository.</param>
 /// <param name="programFactory">The program factory.</param>
 /// <param name="agencyRepository">The agency repository.</param>
 public DeleteProgramRequestHandler(
     IProgramRepository programRepository,
     IProgramFactory programFactory,
     IAgencyRepository agencyRepository)
 {
     _programRepository = programRepository;
     _programFactory    = programFactory;
     _agencyRepository  = agencyRepository;
 }
コード例 #15
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AgencyLogic"/> class.
        /// Constructor agency.
        /// </summary>
        public AgencyLogic()
        {
            EmbCtx ctx = new EmbCtx();

            this.agencyRepository = new AgencyRepository(ctx);
            this.applRepository   = new ApplicantRepository(ctx);
            this.payRepository    = new PaymentRepository(ctx);
            this.visaRepository   = new VisaRepository(ctx);
        }
コード例 #16
0
 public PropertiesController(IPropertyRepository PropertyRepository,
                             IAgentRepository agentRepository,
                             IAgencyRepository agencyRepository,
                             ICountryRepository countryRepository)
 {
     _PropertyRepository = PropertyRepository;
     _agentRepository    = agentRepository;
     _agencyRepository   = agencyRepository;
     _countryRepository  = countryRepository;
 }
コード例 #17
0
 public TransactionBusiness(ITransactionRepository __ITransactionRepository,
                            ILoggerFactory _loggerFactory, IWalletRepository __IWalletRepository, IAccountRepository __IAccountRepository,
                            IAgencyRepository __IAgencyRepository)
 {
     _ITransactionRepository = __ITransactionRepository;
     _logger             = _loggerFactory.CreateLogger <TransactionBusiness>();
     _IWalletRepository  = __IWalletRepository;
     _IAccountRepository = __IAccountRepository;
     _IAgencyRepository  = __IAgencyRepository;
 }
コード例 #18
0
 public AuthenticationService(IUserRepository userRepository, IUnitOfWork unitOfWork,
                              IEmployeeRepository employeeRepository, IAgencyRepository agencyRepository, IMapper mapper, IPasswordHasher <User> passHasher) : base(mapper)
 {
     _userRepository     = userRepository;
     _unitOfWork         = unitOfWork;
     _employeeRepository = employeeRepository;
     _agencyRepository   = agencyRepository;
     _mapper             = mapper;
     _passHasher         = passHasher;
 }
コード例 #19
0
 public DashboardController(ICategoryRepository categoryRepository,
                            IAgencyRepository agencyRepository,
                            IAgentRepository agentRepository,
                            IPropertyRepository propertyRepository)
 {
     _categoryRepository = categoryRepository;
     _agentRepository    = agentRepository;
     _agencyRepository   = agencyRepository;
     _propertyRepository = propertyRepository;
 }
コード例 #20
0
 public clsAuthorisedPerson(IAuthorisedPersonRepository authorisedpersonRepository,
                            IPromoterRepository promoterRepository,
                            ICompanyRepository companyRepository,
                            IAgencyRepository agencyRepository)
 {
     this.AuthorisedPersonRepository = authorisedpersonRepository;
     this.PromoterRepository         = promoterRepository;
     this.CompanyRepository          = companyRepository;
     this.AgencyRepository           = agencyRepository;
 }
コード例 #21
0
 public AgentsController(IAgentRepository AgentRepository,
                         ICategoryRepository categoryRepository,
                         ICityRepository cityRepository,
                         IAgencyRepository agencyRepository)
 {
     _AgentRepository    = AgentRepository;
     _categoryRepository = categoryRepository;
     _cityRepository     = cityRepository;
     _agencyRepository   = agencyRepository;
 }
コード例 #22
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AgencyLogic"/> class.
 /// Constructor with interface agency
 /// repository.
 /// </summary>
 /// <param name="repo">interface param.</param>
 public AgencyLogic(IAgencyRepository repo = null)
 {
     if (repo == null)
     {
         this.agencyRepository = new AgencyRepository(new EmbCtx());
     }
     else
     {
         this.agencyRepository = repo;
     }
 }
コード例 #23
0
        public virtual void SetUp()
        {
            ServiceLocatorInitializer.Init();

            string[] mappingAssemblies = RepositoryTestsHelper.GetMappingAssemblies();
            _configuration = NHibernateSession.Init(new SimpleSessionStorage(), mappingAssemblies,
                                                    "../../../../app/wrms.Web/NHibernate.config");

            _agencyRepository = new AgencyRepository();
            //_requestRepository = new RequestRepository();
            //_wrmsSystemRepository = new WrmsSystemRepository();
        }
コード例 #24
0
 public PersonController(IPersonRepository personRepository, IPersonLevelRepository personLevelRepository,
                         IAgencyRepository agencyRepository, ICompanyRepository companyRepository,
                         UserManager <ApplicationUser> userManager, RoleManager <IdentityRole> roleManager, IEmailSender emailSender)
 {
     _personRepository      = personRepository;
     _personLevelRepository = personLevelRepository;
     _agencyRepository      = agencyRepository;
     _companyRepository     = companyRepository;
     _userManager           = userManager;
     _roleManager           = roleManager;
     _emailSender           = emailSender;
 }
コード例 #25
0
        public async Task <ActionResult <IEnumerable <Agency> > > GetByCodeAsync(
            [FromServices] IAgencyRepository repository,
            [FromRoute] string code
            )
        {
            var agency = await repository.GetByCode(code);

            if (agency == null)
            {
                return(NotFound());
            }

            return(Ok(agency));
        }
コード例 #26
0
 public AgenciesController(IAgencyRepository agencyRepository, ISystemRepository systemRepository, IMapper mapper,
                           IPropertyMappingService propertyMappingService, IUnitOfWork unitOfWork)
 {
     _AgenciesRepo = agencyRepository ??
                     throw new ArgumentNullException(nameof(agencyRepository));
     _systemRepo = systemRepository ??
                   throw new ArgumentNullException(nameof(systemRepository));
     _mapper = mapper ??
               throw new ArgumentNullException(nameof(mapper));
     _propertyMappingService = propertyMappingService ??
                               throw new ArgumentNullException(nameof(propertyMappingService));
     _unitOfWork = unitOfWork ??
                   throw new ArgumentNullException(nameof(unitOfWork));
 }
コード例 #27
0
 public AgenciesController(
     IMapper mapper,
     IRepository repository,
     IAgencyRepository agencyRepository,
     IAgencyImpoter agencyImpoter,
     ILogger <AgenciesController> logger
     )
 {
     _mapper           = mapper;
     _repository       = repository;
     _agencyRepository = agencyRepository;
     _agencyImpoter    = agencyImpoter;
     _logger           = logger;
 }
コード例 #28
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JobSearchService"/> class.
 /// </summary>
 /// <param name="repository">The exam repo.</param>
 /// <param name="approachTypeRepository"></param>
 /// <param name="validationFactory">The exam repo.</param>
 /// <param name="agencyRepository"></param>
 /// <param name="recruiterRepository"></param>
 /// <param name="employerRepository"></param>
 /// <param name="statusRepository"></param>
 public JobSearchService(
     IJobSearchRepository repository,
     IAgencyRepository agencyRepository,
     IRecruiterRepository recruiterRepository,
     IEmployerRepository employerRepository,
     IStatusRepository statusRepository,
     IApproachTypeRepository approachTypeRepository,
     IValidationFactory validationFactory)
     : base(repository, validationFactory)
 {
     _agencyRepository       = agencyRepository;
     _recruiterRepository    = recruiterRepository;
     _employerRepository     = employerRepository;
     _statusRepository       = statusRepository;
     _approachTypeRepository = approachTypeRepository;
 }
コード例 #29
0
ファイル: AuthController.cs プロジェクト: kgholland1/Atlantis
        //private readonly IOptions<EmailSettings> _emailSettings;

        public AuthController(
            IConfiguration config,
            IMapper mapper,
            UserManager <User> userManager,
            SignInManager <User> signInManager,
            IAgencyRepository agencyRepo
            )
        {
            _config        = config;
            _userManager   = userManager;
            _signInManager = signInManager;
            _agencyRepo    = agencyRepo ??
                             throw new ArgumentNullException(nameof(agencyRepo));
            _mapper = mapper ??
                      throw new ArgumentNullException(nameof(mapper));
        }
コード例 #30
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CreatePatientImportDocumentRequestHandler"/> class.
 /// </summary>
 /// <param name="patientRepository">The patient repository.</param>
 /// <param name="patientFactory">The patient factory.</param>
 /// <param name="agencyRepository">The agency repository.</param>
 /// <param name="mappingHelper">The mapping helper.</param>
 /// <param name="patientDocumentFactory">The patient document factory.</param>
 /// <param name="patientDocumentRepository">The patient document repository.</param>
 /// <param name="imapMessageFetcher">The imap message fetcher.</param>
 public CreatePatientImportDocumentRequestHandler(
     IPatientRepository patientRepository,
     IPatientFactory patientFactory,
     IAgencyRepository agencyRepository,
     IDtoToDomainMappingHelper mappingHelper,
     IPatientDocumentFactory patientDocumentFactory,
     IPatientDocumentRepository patientDocumentRepository,
     IImapMailMessageFetcher imapMessageFetcher)
 {
     _patientRepository         = patientRepository;
     _patientFactory            = patientFactory;
     _agencyRepository          = agencyRepository;
     _mappingHelper             = mappingHelper;
     _patientDocumentFactory    = patientDocumentFactory;
     _patientDocumentRepository = patientDocumentRepository;
     _imapMessageFetcher        = imapMessageFetcher;
 }
コード例 #31
0
 public OrdersController(IOrderRepository orderRepository, IOrderDetailRepository orderDetailRepository, IToppingRepository toppingRepository, IOrderSourceRepository orderSourceRepository,
                         IDrinkRepository drinkRepository, ICategoryRepository categoryRepository, IPromotionRepository promotionRepository, IPrivatePromotionRepository privatePromotionRepository,
                         IPersonRepository personRepository, IAgencyRepository agencyRepository, IOrderSourceTypeRepository orderSourceTypeRepository, IDeliveryPartnerRepository deliveryPartnerRepository,
                         IMapper mapper, IHostingEnvironment environment, IHttpContextAccessor httpContextAccessor, IPdfService pdfService)
 {
     _orderRepository            = orderRepository;
     _orderDetailRepository      = orderDetailRepository;
     _promotionRepository        = promotionRepository;
     _drinkRepository            = drinkRepository;
     _categoryRepository         = categoryRepository;
     _toppingRepository          = toppingRepository;
     _privatePromotionRepository = privatePromotionRepository;
     _personRepository           = personRepository;
     _agencyRepository           = agencyRepository;
     _orderSourceRepository      = orderSourceRepository;
     _orderSourceTypeRepository  = orderSourceTypeRepository;
     _deliveryPartnerRepository  = deliveryPartnerRepository;
     _mapper              = mapper;
     _hostingEnvironment  = environment;
     _httpContextAccessor = httpContextAccessor;
     _pdfService          = pdfService;
 }
コード例 #32
0
        public AgencyManagementService(IAgencyRepository agencyRepository)
        {
            Check.Require(agencyRepository != null, "agencyRepository may not be null");

            _agencyRepository = agencyRepository;
        }
コード例 #33
0
 public AdminController(IAgencyService agencyService, ICanSave saver, IAgencyRepository agencyRepository)
 {
     this.agencyService = agencyService;
     this.saver = saver;
     this.agencyRepository = agencyRepository;
 }
コード例 #34
0
ファイル: AgencyFactory.cs プロジェクト: divyang4481/REM
 /// <summary>
 /// Initializes a new instance of the <see cref="AgencyFactory"/> class.
 /// </summary>
 /// <param name="agencyRepository">
 /// The agency repository.
 /// </param>
 public AgencyFactory(IAgencyRepository agencyRepository)
 {
     _agencyRepository = agencyRepository;
 }
コード例 #35
0
ファイル: AgencyService.cs プロジェクト: liammclennan/Herald
 public AgencyService(IAgencyRepository agencyRepository, ICanAddToContext context, IFileSystemService fileSystem)
 {
     this.agencyRepository = agencyRepository;
     this.context = context;
     this.fileSystem = fileSystem;
 }