Example #1
0
 public void Handle(PurchasePayPerViewCommand command)
 {
     CommandProcess
     .Start(command.Email)
     .Execute(account => account.PurchasePayPerView(command.MovieId))
     .Complete();
 }
Example #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();
 }