Example #1
0
        public AccountController(IMAccountRepository mAccountRepository, IMAccountCatRepository mAccountCatRepository)
        {
            Check.Require(mAccountRepository != null, "mAccountRepository may not be null");
            Check.Require(mAccountCatRepository != null, "mAccountCatRepository may not be null");

            this._mAccountRepository    = mAccountRepository;
            this._mAccountCatRepository = mAccountCatRepository;
        }
        public AccountingController(ITJournalRepository tJournalRepository, ITJournalDetRepository tJournalDetRepository, IMCostCenterRepository mCostCenterRepository, IMAccountRepository mAccountRepository, ITRecAccountRepository tRecAccountRepository, ITRecPeriodRepository tRecPeriodRepository, IMAccountCatRepository mAccountCatRepository)
        {
            Check.Require(tJournalRepository != null, "tJournalRepository may not be null");
            Check.Require(tJournalDetRepository != null, "tJournalDetRepository may not be null");
            Check.Require(mCostCenterRepository != null, "mCostCenterRepository may not be null");
            Check.Require(mAccountRepository != null, "mAccountRepository may not be null");
            Check.Require(tRecAccountRepository != null, "tRecAccountRepository may not be null");
            Check.Require(tRecPeriodRepository != null, "tRecPeriodRepository may not be null");
            Check.Require(mAccountCatRepository != null, "mAccountCatRepository may not be null");

            this._tJournalRepository    = tJournalRepository;
            this._tJournalDetRepository = tJournalDetRepository;
            this._mCostCenterRepository = mCostCenterRepository;
            this._mAccountRepository    = mAccountRepository;
            this._tRecAccountRepository = tRecAccountRepository;
            this._tRecPeriodRepository  = tRecPeriodRepository;
            this._mAccountCatRepository = mAccountCatRepository;
        }