コード例 #1
0
 public CreditCardInformation(ICreditCardInformationCreated @event)
 {
     CardHolder      = @event.CardHolder;
     CardNumber      = @event.CardNumber;
     ExpirationMonth = @event.ExpirationMonth;
     ExpirationYear  = @event.ExpirationYear;
 }
コード例 #2
0
 public CreditCardAdded(Guid customerId, ICreditCardInformationCreated creditCardInformation) : base()
 {
     Id               = customerId;
     _cardHolder      = creditCardInformation.CardHolder;
     _cardNumber      = creditCardInformation.CardNumber;
     _expirationMonth = creditCardInformation.ExpirationMonth;
     _expirationYear  = creditCardInformation.ExpirationYear;
 }
コード例 #3
0
            public static CreditCardInformation ReplayCreditCardInformation(ICreditCardInformationCreated @event)
            {
                var result = new CreditCardInformation(@event);

                return(result);
            }