Last active
August 22, 2018 04:09
-
-
Save arleypadua/4676d61b2b7423060790720f15b775e7 to your computer and use it in GitHub Desktop.
anemic-domain-model-private-setters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// We also want to encapsulate the way this class is instantiated. | |
private Order() { } | |
public string OrderId { get; private set; } | |
public string CustomerId { get; private set; } | |
public decimal Discount { get; private set; } | |
public bool Paid { get; private set; } | |
public DateTime? PaymentTime { get; private set; } | |
public DateTime CreationTime { get; private set; } | |
public List<OrderItem> Items { get; private set; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment