Skip to content

Instantly share code, notes, and snippets.

@tuannguyenssu
Created July 7, 2019 09:50
Show Gist options
  • Select an option

  • Save tuannguyenssu/1f8346543281fb9fc99e2fb4194b9c2e to your computer and use it in GitHub Desktop.

Select an option

Save tuannguyenssu/1f8346543281fb9fc99e2fb4194b9c2e to your computer and use it in GitHub Desktop.
public class Cart
{
public void Checkout(int orderId, int userId)
{
Database db = new Database();
db.Save(orderId);
Logger log = new Logger();
log.LogInfo("Order has been checkout");
EmailSender es = new EmailSender();
es.SendEmail(userId);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment