예제 #1
0
 public CreateLoanHandler(IGTLContext context, ILoanRepository loanRepo, ILoanHelper loanHelper, ICopyRepository copyRepo)
 {
     _loanRepo   = loanRepo;
     _loanHelper = loanHelper;
     _copyRepo   = copyRepo;
     _context    = context;
 }
예제 #2
0
        public LoanDAO(ILoanHelper loanHelper) : this()
        {
            if (loanHelper == null)
                throw new ArgumentException("Error: loan helper can't be null on construction.");

            _loanHelper = loanHelper;
           
        }
예제 #3
0
        public LoanDao(ILoanHelper helper)
        {
            if(helper == null) throw new ArgumentException("Helper must be provided when creating LoanDao");

            _helper = helper;

            this.LoanList = new List<ILoan>();
        }
예제 #4
0
 public LoanDAO(ILoanHelper helper)
 {
     if (helper == null)
     {
         throw new ArgumentException(
             String.Format("LoanDAO : constructor : helper cannot be null."));
     }
     this.helper = helper;
     this.loanDict = new Dictionary<int, ILoan>();
     this.nextID = 1;
 }
예제 #5
0
        public LoanDao(ILoanHelper helper)
        {
            if (helper == null)
            {
                throw new ArgumentException("Helper must be provided when creating LoanDao");
            }

            _helper = helper;

            this.LoanList = new List <ILoan>();
        }