Skip to content

Instantly share code, notes, and snippets.

@avegaraju

avegaraju/Order.cs

Last active Sep 22, 2018
Embed
What would you like to do?
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
You can’t perform that action at this time.