示例#1
0
        public void SetUp()
        {
            PrepareTestDb();

            _accountFactory              = A.Fake <IAccountFactory>();
            _userInformator              = A.Fake <IUserInformator>();
            _accountLowLevelOperator     = A.Fake <IAccountLowLevelOperator>();
            _accountCantBeDeletedChecker = A.Fake <IAccountCantBeDeletedChecker>();
            _userEquirer = A.Fake <IUserEquirer>();

            _underTest = new AccountTreesGardener(_accountFactory, _userInformator, _accountLowLevelOperator, _accountCantBeDeletedChecker, _userEquirer);
        }
        public AccountForestViewModel(ShellModel shellModel, KeeperDb db, AccountTreesGardener accountTreesGardener,
                                      AccountLowLevelOperator accountLowLevelOperator, DepositCalculationAggregator depositCalculationAggregator)
        {
            MyForestModel            = shellModel.MyForestModel;
            _db                      = db;
            _accountTreesGardener    = accountTreesGardener;
            _accountLowLevelOperator = accountLowLevelOperator;

            _depositCalculationAggregator = depositCalculationAggregator;

            InitVariablesToShowAccounts();
        }