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.
Sepete eklenen ürüne göre kampanya oranı kadar indirim uygulayan konsol uygulama projesidir. Bu uygulamada Strategy Pattern kullanılmaktadır.
Ürün türüne göre kampanya uygularken birden fazla algoritmaya ihtiyaç duyabiliriz. Kampanya algoritmaları her ürün grubu için farklıdır ve yeni bir ürün grubu veya kampanya türü eklerken daha merkezi ve sürdürülebilir bir yapı oluşturmak için ve çalışma zamanında duruma göre kampanya stratejisi belirlemek için Strategy Pattern kullandık.