ouzdev / CampaingStrategy

Strategy Pattern Example Project 🚀🚀

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Strategy Pattern Example Project (EN) 🚀🚀

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.

Why Strategy pattern ?

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.

Strategy Pattern Example Project (TR) 🚀🚀

Sepete eklenen ürüne göre kampanya oranı kadar indirim uygulayan konsol uygulama projesidir. Bu uygulamada Strategy Pattern kullanılmaktadır.

Neden Strategy Pattern Kullandık ?

Ü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.

About

Strategy Pattern Example Project 🚀🚀


Languages

Language:C# 100.0%