-
-
Save dcomartin/27f6b9c0aea4ffdfb784e839a7a21d3f 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
using System; | |
using ValueObject; | |
namespace ValueObject2 | |
{ | |
public record PlaceOrderCommand(Guid CustomerId, string ProductSku, int Quantity, string CurrencySymbol) | |
{ | |
public PlaceOrderCommand(Guid customerId, string productSku) | |
: this(customerId, productSku, 1, Currency.USD.ToString()) { } | |
public PlaceOrderCommand(Guid customerId, string productSku, string currency) | |
: this(customerId, productSku, 1, currency) { } | |
public PlaceOrderCommand(Guid customerId, string productSku, int quantity) | |
: this(customerId, productSku, quantity, Currency.USD.ToString()) { } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment