Last active
September 22, 2018 21:39
-
-
Save avegaraju/a0738e33f449f4fda4c11328293b5c95 to your computer and use it in GitHub Desktop.
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
public class Order | |
{ | |
public OrderId OrderId { get; } | |
public CustomerId CustomerId { get; } | |
public IReadOnlyCollection<OrderLine> OrderLines { get; } | |
public IPaymentMethod PaymentMethod {get;} | |
public DiscountCode DiscountCode {get;} | |
public Order(OrderId orderId, | |
CustomerId customer, | |
IReadOnlyCollection<OrderLine> orderLines, | |
IPaymentMethod paymentMethodId, | |
DiscountCode discountCode | |
) | |
{ | |
OrderId = orderId; | |
Customer = customer; | |
OrderLines = orderLines; | |
PaymentMethodId = paymentMethodId; | |
DiscountCode = discountCode; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment