-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathXmlClass.cs
31 lines (28 loc) · 859 Bytes
/
XmlClass.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System.Xml.Linq;
namespace BridgeVs.UnitTest.Model
{
public class XmlClass
{
public int MyProperty => 12;
public XElement Contacts
{
get;
}
public XmlClass()
{
Contacts =
new XElement("Contacts",
new XElement("Contact",
new XElement("Name", "Patrick Hines"),
new XElement("Phone", "206-555-0144"),
new XElement("Address",
new XElement("Street1", "123 Main St"),
new XElement("City", "Mercer Island"),
new XElement("State", "WA"),
new XElement("Postal", "68042")
)
)
);
}
}
}