/// <summary> /// Map item Group. /// </summary> /// <param name="keyword"></param> /// <returns></returns> private PimItemGroup MapPimItemGroup(IDictionary <string, object> keyword) { var pimKeyword = new PimItemGroup { Code = (string)keyword["Code"], Description = (string)keyword["Description"], Description_2 = (string)keyword["Description_2"], System_Status = (string)keyword["System_Status"], LocalDescription = (string)keyword["LocalDescription"], LocalDescription2 = (string)keyword["LocalDescription2"], Base_Unit = (string)keyword["Base_Unit"], Standard_Product_Group = (string)keyword["Standard_Product_Group"], Picture_Document_ID = (string)keyword["Picture_Document_ID"], Template_Code = (string)keyword["Template_Code"], Item_Template_Code = (string)keyword["Item_Template_Code"], Publication_Group = (string)keyword["Publication_Group"], Short_Text = (string)keyword["Short_Text"], Created_By = (string)keyword["Created_By"], Updated_By = (string)keyword["Updated_By"], Additional_Information_1 = (string)keyword["Additional_Information_1"], Additional_Information_2 = (string)keyword["Additional_Information_2"], Additional_Information_3 = (string)keyword["Additional_Information_3"], Additional_Information_4 = (string)keyword["Additional_Information_4"], Additional_Information_5 = (string)keyword["Additional_Information_5"], ETag = (string)keyword["ETag"], }; return(pimKeyword); }
public static IEnumerable <PimItem> CreateDummyItems() { var items = new List <PimItem>(); var item1 = new PimItem(); item1.PimItemGroups = new List <PimItemGroup>(); var itemCategory1 = new PimItemGroup(); itemCategory1.Code = "1000"; itemCategory1.Description = "Roma benches"; item1.PimItemGroups.Add(itemCategory1); item1.No = "1000"; item1.Description = "Chair Camilla"; item1.Unit_Price = 500; item1.Picture_Document_ID = "PicID1"; items.Add(item1); var item2 = new PimItem(); item2.No = "1001"; item2.Description = "Chair Roma"; item2.Unit_Price = 700; item2.Picture_Document_ID = "PicID1"; items.Add(item2); var item3 = new PimItem(); item3.No = "1002"; item3.Description = "Chair Milada"; item3.Unit_Price = 1000; item3.Picture_Document_ID = "PicID1"; items.Add(item3); var item4 = new PimItem(); item4.No = "1003"; item4.Description = "Table"; item4.Unit_Price = 2000; items.Add(item4); return(items); }
public static IEnumerable <PimItemGroup> CreateDummyItemGroup() { var itemGroups = new List <PimItemGroup>(); var itemCategory1 = new PimItemGroup(); itemCategory1.Code = "1000"; itemCategory1.Description = "Roma benches"; itemGroups.Add(itemCategory1); var itemCategory2 = new PimItemGroup(); itemCategory2.Code = "1001"; itemCategory2.Description = "Camila benches"; itemGroups.Add(itemCategory2); var itemCategory3 = new PimItemGroup(); itemCategory3.Code = "1002"; itemCategory3.Description = "table"; itemGroups.Add(itemCategory3); return(itemGroups); }