Example #1
0
        public void TestNewCreateReckoningInfoList()
        {
            var goodsOrderInfo    = new GoodsOrderInfo();
            var goodsOrderDetails = new List <GoodsOrderDetailInfo>();

            _reckoningManager = new ReckoningManager(_stubIGoodsCenterSao, _stubIReckoning, _stubIExpress, _stubICompanyCussent, _stubGoodsPriceVerificationDao, _stubIGoodsOrder,
                                                     _stubIGoodsOrderDetail, _stubIGoodsOrderDeliver, _stubICode);
        }
Example #2
0
 public void TestNewCreateReckoningInfoList2()
 {
     try
     {
         _reckoningManager = new ReckoningManager(_stubIGoodsCenterSao, _stubIReckoning, _stubIExpress, _stubICompanyCussent, _stubGoodsPriceVerificationDao, _stubIGoodsOrder,
                                                  _stubIGoodsOrderDetail, _stubIGoodsOrderDeliver, _stubICode);
         string errorMsg = "";
         _reckoningManager.NewCreateReckoningInfoList(null, null, out errorMsg);
     }
     catch (Exception ex)
     {
         Assert.IsTrue(!string.IsNullOrEmpty(ex.Message));
     }
 }
Example #3
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 = "完成订单"
                }
            };
        }
Example #4
0
 public void TestReckoningManager()
 {
     _reckoningManager = new ReckoningManager(Environment.GlobalConfig.DB.FromType.Read);
 }