示例#1
0
 public void Handle(PurchasePayPerViewCommand command)
 {
     CommandProcess
     .Start(command.Email)
     .Execute(account => account.PurchasePayPerView(command.MovieId))
     .Complete();
 }
示例#2
0
 public void Handle(StartSubscriptionCommand command)
 {
     CommandProcess
     .Start(command.Email)
     .Execute(account => account.StartSubscription())
     .Complete();
 }
 public void Handle(RemoveCreditCardCommand command)
 {
     CommandProcess
     .Start(command.Email)
     .Execute(account => account.RemoveCreditCard(command.Creditcard))
     .Complete();
 }