-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathSampleData.cs
More file actions
76 lines (73 loc) · 2.49 KB
/
SampleData.cs
File metadata and controls
76 lines (73 loc) · 2.49 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// Copyright Bastian Eicher
// Licensed under the MIT License
using NanoByte.StructureEditor.Sample.Model;
namespace NanoByte.StructureEditor.Sample;
public static class SampleData
{
public static AddressBook AddressBook => new()
{
Name = "My Address Book",
Groups =
{
new Group
{
Name = "Scientists",
Contacts =
{
new Contact
{
FirstName = "Marie",
LastName = "Curie",
WorkAddress = new Address
{
Street = "1 Rue Victor Cousin",
City = "Paris",
Country = "France"
}
},
new Contact
{
FirstName = "Albert",
LastName = "Einstein",
HomeAddress = new Address
{
Street = "112 Mercer Street",
City = "New Jersey",
Country = "United States"
},
PhoneNumbers =
{
new LandlineNumber {CountryCode = "+1", AreaCode = "555", LocalNumber = "0200"}
}
}
}
}
},
Contacts =
{
new Contact
{
FirstName = "John",
LastName = "Doe",
HomeAddress = new Address
{
Street = "123 Fake Street",
City = "New York",
Country = "United States"
},
WorkAddress = new Address
{
Street = "456 Fake Street",
City = "New York",
Country = "United States"
},
PhoneNumbers =
{
new LandlineNumber {CountryCode = "+1", AreaCode = "555", LocalNumber = "0101"},
new MobileNumber {CountryCode = "+1", AreaCode = "555", LocalNumber = "0102"},
new MobileNumber {CountryCode = "+1", AreaCode = "555", LocalNumber = "0103"}
}
}
}
};
}