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