public void GetItemLoadRabattTestOk() { _common.Invoice = InvoiceFactory.LoadTemplate(Common.InvTest); var det = DetailsListConverter.Load(_common.Invoice.Details.ItemList, _common.UContainer, false); var detList = DetailsListConverter.ConvertToItemList(det, "Z01"); var det2 = DetailsListConverter.Load(detList, _common.UContainer, false); Assert.AreEqual(det[0].Rabatt, det2[0].Rabatt); }
public void LoadTest() { _common.Invoice = InvoiceFactory.LoadTemplate(Common.InvTest); var det = DetailsListConverter.Load(_common.Invoice.Details.ItemList, _common.UContainer, false); Assert.IsNotNull(det); Assert.AreEqual((int)4, det.Count); Assert.AreEqual("DAY", det[0].Einheit); Assert.AreEqual("LS", det[2].Einheit); }