Skip to content

Instantly share code, notes, and snippets.

@arnaudgeiser
Created March 12, 2022 13:02
Show Gist options
  • Save arnaudgeiser/2069c7e5fb8c557ed85c7d8f503b7db4 to your computer and use it in GitHub Desktop.
Save arnaudgeiser/2069c7e5fb8c557ed85c7d8f503b7db4 to your computer and use it in GitHub Desktop.
public class OrderService {
private final EmailService emailService;
public OrderService(EmailService emailService) {
this.emailService = emailService;
}
public void createOrder(Order order) {
// ...
emailService.send(email)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment