Created
March 12, 2022 13:02
-
-
Save arnaudgeiser/2069c7e5fb8c557ed85c7d8f503b7db4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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