Example #1
0
 public SalesService(IOperationTableRepository operationTableRepository, IBalanceTableRepository balanceTableRepository, IBlockedMoneyTableRepository blockedMoneyTableRepository, ISharesNumberTableRepository sharesNumberTableRepository, IBlockedSharesNumberTableRepository blockedSharesNumberTableRepository)
 {
     this.operationTableRepository           = operationTableRepository;
     this.balanceTableRepository             = balanceTableRepository;
     this.blockedMoneyTableRepository        = blockedMoneyTableRepository;
     this.sharesNumberTableRepository        = sharesNumberTableRepository;
     this.blockedSharesNumberTableRepository = blockedSharesNumberTableRepository;
 }
        public void Initialize()
        {
            this.operationTableRepository = Substitute.For <IOperationTableRepository>();

            this.balanceTableRepository = Substitute.For <IBalanceTableRepository>();

            this.sharesNumberTableRepository = Substitute.For <ISharesNumberTableRepository>();

            this.blockedMoneyTableRepository = Substitute.For <IBlockedMoneyTableRepository>();

            this.blockedSharesNumberTableRepository = Substitute.For <IBlockedSharesNumberTableRepository>();
        }