Skip to content

Instantly share code, notes, and snippets.

@jasongorman
Created December 30, 2020 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasongorman/96504b3b7a33636586d394379171ea0d to your computer and use it in GitHub Desktop.
Save jasongorman/96504b3b7a33636586d394379171ea0d to your computer and use it in GitHub Desktop.
StockMonitor monitor = new StockMonitor(
alert,
new ProductData(
new RESTClient(
new Web(),
new RequestBuilder())),
new LeadTimeReorderLevel(
new ThirtyDayAverageSalesRate(
new SalesData(
new RESTClient(
new Web(),
new RequestBuilder()
),
() -> {
Calendar calendar = Calendar.getInstance();
calendar.set(2019, Calendar.AUGUST, 1);
return calendar.getTime();
}
)
)
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment