Skip to content

This is my take on Steve Smith (@ardalis)'s discount calculator that combines the rules design pattern with a bit of reflection and ordering to automatically detect and sort new rules to avoid having to modify existing classes when new discounts are introduced.

License

Notifications You must be signed in to change notification settings

clementcampagna/Discount-Calculator-Demo-Using-Rules-Design-Pattern

Repository files navigation

Discount Calculator Demo Using Rules Design Pattern

This is my take on Steve Smith (@ardalis)'s discount calculator that combines the rules design pattern with a bit of reflection and ordering to automatically detect and sort new rules to avoid having to modify existing classes when new discounts are introduced.

Development:

Want to contribute? Great, Discount Calculator Demo Using Rules Design Pattern is open-source!

Please feel free to clone this repository, fork it, make changes to the code, submit pull requests, raise issues, and/or email me using the address below for any suggestions, questions or remarks you may have.

Contact Information:

Author's email address: clementcampagna+github@gmail.com
Author's website: https://clementcampagna.com

About

This is my take on Steve Smith (@ardalis)'s discount calculator that combines the rules design pattern with a bit of reflection and ordering to automatically detect and sort new rules to avoid having to modify existing classes when new discounts are introduced.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages