Add private setters so deserializing on integration event handler works as expected.

This commit is contained in:
Miguel Veloso 2018-10-05 09:46:19 +01:00
parent b0090ccb1c
commit 535044e4f4

View File

@ -6,11 +6,11 @@ namespace Microsoft.eShopOnContainers.Services.Ordering.Domain.AggregatesModel.O
{ {
public class Address : ValueObject public class Address : ValueObject
{ {
public String Street { get; } public String Street { get; private set; }
public String City { get; } public String City { get; private set; }
public String State { get; } public String State { get; private set; }
public String Country { get; } public String Country { get; private set; }
public String ZipCode { get; } public String ZipCode { get; private set; }
private Address() { } private Address() { }