Skip to content

Instantly share code, notes, and snippets.

@avegaraju
Last active September 22, 2018 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avegaraju/a0738e33f449f4fda4c11328293b5c95 to your computer and use it in GitHub Desktop.
Save avegaraju/a0738e33f449f4fda4c11328293b5c95 to your computer and use it in GitHub Desktop.
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