Remove private property setters in Address value object to make it truly immutable
This commit is contained in:
parent
455b2562ee
commit
6869ad249a
@ -6,11 +6,11 @@ namespace Microsoft.eShopOnContainers.Services.Ordering.Domain.AggregatesModel.O
|
||||
{
|
||||
public class Address : ValueObject
|
||||
{
|
||||
public String Street { get; private set; }
|
||||
public String City { get; private set; }
|
||||
public String State { get; private set; }
|
||||
public String Country { get; private set; }
|
||||
public String ZipCode { get; private set; }
|
||||
public String Street { get; }
|
||||
public String City { get; }
|
||||
public String State { get; }
|
||||
public String Country { get; }
|
||||
public String ZipCode { get; }
|
||||
|
||||
private Address() { }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user