Example #1
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);
        }
Example #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ApplicantLogic"/> class.
        /// ApplicantLog constructor.
        /// </summary>
        public ApplicantLogic()
        {
            EmbCtx emb = new EmbCtx();

            this.paymentRepo   = new PaymentRepository(emb);
            this.applicantRepo = new ApplicantRepository(emb);
        }
Example #3
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);
        }
Example #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);
        }
Example #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PaymentLogic"/> class.
 /// Constructor for class, where if repository
 /// item is null, it takes data from dtabase.
 /// </summary>
 /// <param name="repo">interface repository for payment.</param>
 public PaymentLogic(IPaymentRepository repo = null)
 {
     if (repo == null)
     {
         EmbCtx ctx = new EmbCtx();
         this.payment_repo = new PaymentRepository(ctx);
     }
     else
     {
         this.payment_repo = repo;
     }
 }