Exemplo n.º 1
0
        public void TestRunAsynAddTask()
        {
            _stubIReckoning.GetAsynListInt32 = i => new List <ERP.Model.ASYN.ASYNReckoningInfo>();
            _reckoningManager = new ReckoningManager(_stubIGoodsCenterSao, _stubIReckoning, _stubIExpress, _stubICompanyCussent, _stubGoodsPriceVerificationDao, _stubIGoodsOrder,
                                                     _stubIGoodsOrderDetail, _stubIGoodsOrderDeliver, _stubICode);
            _reckoningManager.RunAsynAddTask(2);

            _stubIReckoning.GetAsynListInt32 = i => new List <ERP.Model.ASYN.ASYNReckoningInfo>()
            {
                new ASYNReckoningInfo()
                {
                    CreateTime  = DateTime.Now, ID = Guid.NewGuid(),
                    IdentifyId  = new Guid("F7B1F276-C656-4091-90AC-97AB59CD2E05"),
                    IdentifyKey = "DDA00215122309005", ReckoningFromType = "完成订单"
                }
            };
        }