public void DeserializeTest() { string fileWithPath = AppDomain.CurrentDomain.SetupInformation.ApplicationBase; fileWithPath = Path.Combine(fileWithPath, "testData.xml"); sventevitData data = sventevitData.DeserializeData(fileWithPath); }
public void SerializeTest() { string fileWithPath = AppDomain.CurrentDomain.SetupInformation.ApplicationBase; fileWithPath = Path.Combine(fileWithPath, "testData.xml"); sventevitData data = new sventevitData(); data.Id = "1"; data.Status = "OK"; data.DataGroup = new DataGroup() { Type = "SomeType", Value = new byte[] { 0x00, 0x01, 0x02 } }; data.SerializeData(fileWithPath); }