public CreditCardInformation(ICreditCardInformationCreated @event) { CardHolder = @event.CardHolder; CardNumber = @event.CardNumber; ExpirationMonth = @event.ExpirationMonth; ExpirationYear = @event.ExpirationYear; }
public CreditCardAdded(Guid customerId, ICreditCardInformationCreated creditCardInformation) : base() { Id = customerId; _cardHolder = creditCardInformation.CardHolder; _cardNumber = creditCardInformation.CardNumber; _expirationMonth = creditCardInformation.ExpirationMonth; _expirationYear = creditCardInformation.ExpirationYear; }
public static CreditCardInformation ReplayCreditCardInformation(ICreditCardInformationCreated @event) { var result = new CreditCardInformation(@event); return(result); }