-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathAddress.cs
More file actions
27 lines (24 loc) · 850 Bytes
/
Copy pathAddress.cs
File metadata and controls
27 lines (24 loc) · 850 Bytes
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
namespace QueryKit.WebApiTestProject.Entities;
public class Address : ValueObject
{
public string Line1 { get; } = null!;
public string Line2 { get; } = null!;
public string City { get; } = null!;
public string State { get; } = null!;
public PostalCode PostalCode { get; } = null!;
public string Country { get; } = null!;
public Address(string line1, string line2, string city, string state, string postalCode, string country)
: this(line1, line2, city, state, PostalCode.Of(postalCode), country)
{
}
public Address(string line1, string line2, string city, string state, PostalCode postalCode, string country)
{
Line1 = line1;
Line2 = line2;
City = city;
State = state;
PostalCode = postalCode;
Country = country;
}
private Address() { }
}