Example #1
0
        public void EmptyColumnBandViewSerializeTest()
        {
            var    view    = new AvrView(-1, "layoutName", -1);
            string viewXml = AvrViewSerializer.Serialize(view);

            Assert.IsNotNull(viewXml);

            var    bandSerializer = new EidssSerializer <AvrViewBand>();
            var    band           = new AvrViewBand();
            string bandXml        = bandSerializer.Serialize(band);

            Assert.IsNotNull(bandXml);

            var colSerializer = new EidssSerializer <AvrViewColumn>();
            var column        = new AvrViewColumn();

            column.FieldType = typeof(string);
            string columnXml = colSerializer.Serialize(column);

            Assert.IsNotNull(columnXml);

            AvrViewColumn newColumn = colSerializer.Deserialize(columnXml);

            Assert.AreEqual(column.FieldType, newColumn.FieldType);
        }
Example #2
0
 public static AvrChartProperties Deserialize(string xml)
 {
     return(m_Singletone.Deserialize(xml));
 }
Example #3
0
 public static DataTable Deserialize(string xml)
 {
     return(m_Singletone.Deserialize(xml));
 }
Example #4
0
 public static AvrView Deserialize(string xml)
 {
     return(m_Singletone.Deserialize(xml));
 }