コード例 #1
0
 public NewPaymentCommand(Guid paymentID, Guid shopperID, Guid merchantID, CreditCard creditCard,
                          Money amount, ICommandValidation <PaymentCommand> paymentValidation)
 {
     this.Id                = paymentID;
     this.ShopperID         = shopperID;
     this.MerchantID        = merchantID;
     this.CreditCard        = creditCard;
     this.Amount            = amount;
     this.Status            = PaymentStatus.Received;
     this.paymentValidation = paymentValidation;
 }
コード例 #2
0
 public NewShopperCommand(Guid id, string firstname, string lastname, string email, Gender gender,
                          Address address, DateTime birthDate, ICommandValidation <ShopperCommand> commandValidation)
 {
     this.Id                = id;
     this.FirstName         = firstname;
     this.LastName          = lastname;
     this.Email             = email;
     this.Gender            = gender;
     this.Address           = address;
     this.BirthDate         = birthDate;
     this.commandValidation = commandValidation;
 }
 public NewMerchantCommand(Guid id, string name, string acronym, Currency currency, Country country,
                           bool isVisible, bool isOnline, ICommandValidation <MerchantCommand> merchantValidation)
 {
     this.Id                 = id;
     this.Name               = name;
     this.Acronym            = acronym;
     this.Currency           = currency;
     this.Country            = country;
     this.IsVisible          = IsVisible;
     this.IsOnline           = IsOnline;
     this.merchantValidation = merchantValidation;
 }
コード例 #4
0
 public CommandObjectCreation(ICommandValidation _commandValidation)
 {
     commandValidation = _commandValidation;
 }