示例#1
0
 public void ChangeAddress(Buyer.Entities.Address.State shipping, Buyer.Entities.Address.State billing)
 {
     Apply <Events.AddressChanged>(x =>
     {
         x.OrderId    = Id;
         x.ShippingId = shipping.Id;
         x.BillingId  = billing.Id;
     });
 }
示例#2
0
 public void Draft(Buyer.State buyer, Basket.Basket.State basket, Buyer.Entities.Address.State shipping, Buyer.Entities.Address.State billing, Buyer.Entities.PaymentMethod.State method)
 {
     Apply <Events.Drafted>(x =>
     {
         x.OrderId           = Id;
         x.UserName          = buyer.Id;
         x.BasketId          = basket.Id;
         x.ShippingAddressId = shipping.Id;
         x.BillingAddressId  = billing.Id;
         x.PaymentMethodId   = method.Id;
     });
 }