コード例 #1
0
 /*
  * Clear the report variable by overriding it with a new empty report
  */
 private void Clear() => _productStockReport = new ProductStockReport();
コード例 #2
0
 /*
  * Take a collection of products in the parameter and create a new report
  */
 public ProductStockReportBuilder(IEnumerable <Product> products)
 {
     _products           = products;
     _productStockReport = new ProductStockReport();
 }