public ReEntryController(IReEntryRepository reentryRepository, IVisaRepository visaRepository,
                          IReferenceRepository referenceRepository)
 {
     this.reentryRepo = reentryRepository;
     this.refRepo     = referenceRepository;
     this.visaRepo    = visaRepository;
 }
Exemple #2
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;
 }
Exemple #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="VisaLogic"/> class.
        /// </summary>
        public VisaLogic()
        {
            EmbCtx emb = new EmbCtx();

            this.visarepository = new VisaRepository(emb);
            this.apprepository  = new ApplicantRepository(emb);
        }
Exemple #4
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);
        }
 public ApplicantVisaInfoesController(IApplicantRepository applicantRepository, IVisaRepository visaRepository, ICountryRepository countryRepository, IStateRepository stateRepository, IVisaStatusRepository visastatusRepository, IApplicantVisaInfoRepository applicantvisainfoRepository)
 {
     this.applicantRepository = applicantRepository;
     this.visaRepository = visaRepository;
     this.countryRepository = countryRepository;
     this.stateRepository = stateRepository;
     this.visastatusRepository = visastatusRepository;
     this.applicantvisainfoRepository = applicantvisainfoRepository;
 }
Exemple #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VisaLogic"/> class.
 /// Constructor.
 /// </summary>
 /// <param name="repo">interface visa repository.</param>
 public VisaLogic(IVisaRepository repo = null)
 {
     if (repo == null)
     {
         this.visarepository = new VisaRepository(new EmbCtx());
     }
     else
     {
         this.visarepository = repo;
     }
 }
Exemple #7
0
 public VisaService(IUnitOfWork unitOfWork, IVisaRepository visaRepo) : base(unitOfWork, visaRepo)
 {
     _visaRepo = visaRepo;
 }
Exemple #8
0
 public VisaController(IVisaRepository visaRepository)
 {
     this.visaRepository = visaRepository;
 }
Exemple #9
0
 public HomeController(IBus bus, IVisaRepository visaRepository)
 {
     _bus            = bus;
     _visaRepository = visaRepository;
 }
Exemple #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VisaLogic"/> class.
 /// Visa constructor.
 /// </summary>
 /// <param name="aplRepo">interface repo.</param>
 /// <param name="visaRepo">interface repo for visa.</param>
 public VisaLogic(IApplicantRepository aplRepo, IVisaRepository visaRepo)
 {
     this.apprepository  = aplRepo;
     this.visarepository = visaRepo;
 }
 public VisaApplicationService(IVisaRepository repository, IUnitOfWork unitOfWork)
 {
     _repository = repository;
     _unitOfWork = unitOfWork;
 }
Exemple #12
0
 public VisaController(IVisaRepository visaRepository, IReferenceRepository referenceRepository)
 {
     this.visaRepo = visaRepository;
     this.refRepo  = referenceRepository;
 }
 public VisaCheckHandler(IVisaRepository visaRepository)
 {
     _visaRepository = visaRepository;
 }