/// <summary> /// 计算(价格、费用) /// </summary> /// <param name="info">订单信息</param> public SOInfo Calculate(SOInfo entity) { SOCaculator cacler = new SOCaculator(); if (entity != null && entity.SysNo.HasValue) { cacler.IsUpdate = true; cacler.OriginalSOInfo = ObjectFactory <SOProcessor> .Instance.GetSOBySOSysNo(entity.SysNo.Value); } cacler.Calculate(entity); return(entity); }
public void Test_SO_Calculate() { //SOInfo soInfo = GetTestSO(); SOCaculator processor = new SOCaculator(); //mock接口方法 //processor.CommonBiz = new mock_CommonBiz(); //processor.CustomerBiz = new mock_CustomerBiz(); //processor.Calculate(soInfo); }