public void UT_Copy() { supl = boot.ssInit[2]; Assert.AreEqual("", supl.name); var supl_I = new SupplierInit(boot); var v = supl_I.Copy(supl); }
private void si(string suplName, string psName, string FileName, string SheetN, string LoadDescriptor) { Supplier supl = boot.Suppliers.AllSuppliers.Find(x => x.name == suplName); Assert.IsNotNull(supl, $"UT: Bad suplName={suplName}"); suplInit = boot.ssInit.Find(x => x.name == suplName); if (suplInit == null) { suplInit = new SupplierInit(boot); ProductSet ps = supl.productSets.Find(x => x.name == psName); if (ps == null) { ps = new ProductSet(boot); ps.name = psName; } psInit psi = new psInit(boot); psi.Copy(ps, FileName, SheetN, LoadDescriptor); suplInit.Copy(supl); suplInit.productSets.Add(psi); } }