Пример #1
0
        public PageListContract GetSearchEditionsPageList(List <SearchCriteriaContract> searchCriterias)
        {
            var filteredCriterias = GetFilteredResultSearchCriterias(searchCriterias);

            if (filteredCriterias.ResultBooks == null)
            {
                return(null);
            }

            return(PageListContract.FromXml(m_communicationManager.GetSearchEditionsPageList(filteredCriterias.ToXml())));
        }
Пример #2
0
        public void PageListContractSerializationTest()
        {
            var xml = new PageListContract
            {
                PageList = new List <PageDescriptionContract>
                {
                    new PageDescriptionContract {
                        PageName = "name", PageXmlId = "xmlId1"
                    },
                    new PageDescriptionContract {
                        PageName = "name2", PageXmlId = "xmlId2"
                    },
                    new PageDescriptionContract {
                        PageName = "name3", PageXmlId = "xmlId3"
                    },
                }
            }.ToXml();

            Assert.IsNotNull(xml);
        }