public void GetPurPaymentInfoTest() { CommodityImpl target = new CommodityImpl(); // TODO: 初始化为适当的值 string strPurOrderID = "PO_ID_20101110_00001"; // TODO: 初始化为适当的值 PurPayFormEntity actual; actual = target.POGetPayInfo(strPurOrderID); Assert.AreEqual(10, actual.AmountPaying); }
public void GetPurRecvListTest() { CommodityImpl target = new CommodityImpl(); // TODO: Initialize to an appropriate value string strPurOrderID = "PO_ID_20101101_00001"; // TODO: Initialize to an appropriate value List<PurRecEntity> actual; actual = target.POGetRecvList(strPurOrderID); Assert.AreEqual(1, actual[0].AmountReceived); Assert.AreEqual(2, actual[0].AmountTotal); Assert.AreEqual(1, actual[1].AmountReceived); Assert.AreEqual(2, actual[1].AmountTotal); Assert.AreEqual(1, actual[2].AmountReceived); }
public void GetPurchaseParentByMultiFilterTest() { CommodityImpl target = new CommodityImpl(); // TODO: 初始化为适当的值 POSearchTerm filter = new POSearchTerm(); // TODO: 初始化为适当的值 filter.ComdID = "Comd_ID_00003"; filter.ComdName = "雷"; filter.PurchaseEmpName = "杨"; filter.Supplier = "大连"; filter.PurchaseDateStart = DateTime.Parse("2010-11-01"); filter.PurchaseDateEnd = DateTime.Parse("2010-11-10"); filter.StatusKBN = 2; filter.PaymentFLG = 0; filter.ReceivingFLG = 1; List<PurchaseParent> actual; actual = target.POGetParentByMultiFilter(filter); Assert.AreEqual(1, actual.Count); }
public void GetPurOederInfoByIdTest() { CommodityImpl target = new CommodityImpl(); // TODO: Initialize to an appropriate value string strPurOrderID = "PO_ID_20101110_00001"; // TODO: Initialize to an appropriate value PurFormEntity actual; actual = target.POGetInfoByOrderId(strPurOrderID); Assert.AreEqual(4, actual.PurChildren.Count); }
public void SaveTest() { CommodityImpl target = new CommodityImpl(); // TODO: Initialize to an appropriate value string recEmpId = "lk"; // TODO: Initialize to an appropriate value DateTime recDate = DateTime.Parse("2010-12-2"); // TODO: Initialize to an appropriate value List<PurRecEntity> recs = new List<PurRecEntity>(); // TODO: Initialize to an appropriate value PurRecEntity purRecEntity = new PurRecEntity(); // TODO: Initialize to an appropriate value purRecEntity.OrderId = "1"; purRecEntity.DetailId = 11; purRecEntity.CommId = "111"; purRecEntity.AmountReceiving = 2; purRecEntity.Remark = "remarkkkkk"; recs.Add(purRecEntity); purRecEntity = new PurRecEntity(); purRecEntity.OrderId = "1"; purRecEntity.DetailId = 12; purRecEntity.CommId = "112"; purRecEntity.AmountReceiving = 2; recs.Add(purRecEntity); target.POSaveRecv(recEmpId, recDate, recs); Assert.Inconclusive("A method that does not return a value cannot be verified."); }
public void GenerateComdIDTest() { CommodityImpl target = new CommodityImpl(); // TODO: Initialize to an appropriate value string expected = "Comd_ID_00007"; // TODO: Initialize to an appropriate value string actual; actual = target.GenerateComdID(); Assert.AreEqual(expected, actual); }
public void GetComdPriceBySaleEmpIDTest() { CommodityImpl target = new CommodityImpl(); // TODO: Initialize to an appropriate value string strComdID = "Comd_ID_00001"; // TODO: Initialize to an appropriate value string strSaleEmpID = "EMP_ID_001"; // TODO: Initialize to an appropriate value CommodityPrice actual; actual = target.GetComdPriceBySaleEmpID(strComdID, strSaleEmpID); Assert.AreEqual(4100, actual.Price); }
public void MarkReceivingCompleteForPurOrderTest() { CommodityImpl target = new CommodityImpl(); // TODO: Initialize to an appropriate value string strPurOrderID = "1"; // TODO: Initialize to an appropriate value target.POMarkReceivingComplete(strPurOrderID); }
public void getComdByComdIDTest2() { CommodityImpl target = new CommodityImpl(); // TODO: Initialize to an appropriate value string strComdID = "Comd_ID_00001"; // TODO: Initialize to an appropriate value Commodity actual; actual = target.getComdByComdID(strComdID); Assert.AreEqual(true, actual.Valid); }
public void GetComdPriceByPriceTypeIDTest() { CommodityImpl target = new CommodityImpl(); // TODO: Initialize to an appropriate value string strComdID = "Comd_ID_00001"; // TODO: Initialize to an appropriate value string strPriceTypeID = "PRICE_TYPE_ID_03_01"; // TODO: Initialize to an appropriate value CommodityPrice expected = null; // TODO: Initialize to an appropriate value CommodityPrice actual; actual = target.GetComdPriceByPriceTypeID(strComdID, strPriceTypeID); Assert.AreEqual(4300, actual.Price); }
public void getComdByComdIDTest1() { CommodityImpl target = new CommodityImpl(); // TODO: Initialize to an appropriate value string strComdID = string.Empty; // TODO: Initialize to an appropriate value Commodity expected = new Commodity(); // TODO: Initialize to an appropriate value Commodity actual; actual = target.getComdByComdID(strComdID); Assert.AreEqual(false, actual.Valid); }
public void GenerateSaleOrderIdTest() { CommodityImpl target = new CommodityImpl(); // TODO: Initialize to an appropriate value string expected = "SO_ID_20101207_00001"; // TODO: Initialize to an appropriate value string actual; actual = target.GenerateSaleOrderId(); Assert.AreEqual(expected, actual); }
public void GenerateSaleOrderDetailIdTest() { CommodityImpl target = new CommodityImpl(); // TODO: Initialize to an appropriate value string strSaleOrderID = "SO_ID_20101122_00001"; // TODO: Initialize to an appropriate value int expected = 4; // TODO: Initialize to an appropriate value int actual; actual = target.GenerateSaleOrderDetailId(strSaleOrderID); Assert.AreEqual(expected, actual); }
public void ActivePurOrderTest() { CommodityImpl target = new CommodityImpl(); // TODO: Initialize to an appropriate value string strPurOrderID = "1"; // TODO: Initialize to an appropriate value target.POActive(strPurOrderID); }
public void GetComdPriceListTest() { CommodityImpl target = new CommodityImpl(); // TODO: 初始化为适当的值 string strComdID = "Comd_ID_00001"; // TODO: 初始化为适当的值 List<CommodityPrice> actual; actual = target.GetComdPriceList(strComdID); Assert.AreEqual(8, actual.Count); }
public void GetSaleParentByMultiFilterTest() { CommodityImpl target = new CommodityImpl(); // TODO: Initialize to an appropriate value SOSearchTerm filter = new SOSearchTerm(); // TODO: Initialize to an appropriate value //filter.OrderId = "SO_ID_20101123_00001"; //filter.SaleEmpID = "EMP_ID_003"; //filter.SaleEmpName = "卷"; //filter.CustomerID = "CUS_ID_000009"; //filter.CustomerName = "团"; //filter.ComdID = "Comd_ID_00005"; //filter.ComdName = "无线"; filter.SaleDateStart = DateTime.Parse("2010-11-01"); //filter.SaleDateEnd = DateTime.Parse("2010-12-31"); //filter.StatusKBN = 1; //filter.DeliveryFLG = 1; //filter.PaymentFLG = 0; List<SaleParent> actual; actual = target.SOGetParentByMultiFilter(filter); Assert.AreEqual(1, actual.Count); }
public void getListComdNameTest() { CommodityImpl target = new CommodityImpl(); // TODO: Initialize to an appropriate value Hashtable actual; actual = target.getListComdName(); Assert.AreEqual(4, actual.Count); }
public void QuickReceiveTest() { CommodityImpl target = new CommodityImpl(); // TODO: Initialize to an appropriate value string orderId = "PO_ID_20101110_00001"; // TODO: Initialize to an appropriate value target.POQuickReceive(orderId); Assert.Inconclusive("A method that does not return a value cannot be verified."); }
public void getListComdStandardTest2() { CommodityImpl target = new CommodityImpl(); // TODO: Initialize to an appropriate value string strComdName = "明基电脑"; // TODO: Initialize to an appropriate value Hashtable actual; actual = target.getListComdStandard(strComdName); Assert.AreEqual(2, actual.Count); }
public void SaveTest1() { CommodityImpl target = new CommodityImpl(); // TODO: 初始化为适当的值 PurchasePayment purchasePayment = new PurchasePayment(); // TODO: 初始化为适当的值 purchasePayment.PayEmpID = "LK"; purchasePayment.PaymentAmount = 200; purchasePayment.PaymentDate = DateTime.Parse("2010-1-1"); purchasePayment.PurOrderID = "PO_ID_20101110_00001"; purchasePayment.Remark = "备注"; target.POSavePay(purchasePayment); Assert.Inconclusive("无法验证不返回值的方法。"); }
public void CommodityImplConstructorTest() { CommodityImpl target = new CommodityImpl(); Assert.Inconclusive("TODO: Implement code to verify target"); }