It is a console application project that applies a discount as much as the campaign rate according to the product added to the cart. In this application, the strategy pattern is used.
We may need more than one algorithm when implementing a campaign based on product type. Campaign algorithms are different for each product group, and we used this pattern to establish a more centralized and sustainable structure when adding a new product group or campaign type.
It is a console application project that applies a discount equal to the campaign rate depending on the product added to the cart. Strategy Pattern is used in this application.
We may need more than one algorithm when implementing campaigns depending on product type. Campaign algorithms are different for each product group, and we used Strategy Pattern to create a more centralized and sustainable structure when adding a new product group or campaign type and to determine the campaign strategy on a case-by-case basis at runtime.