This the sample project for the workshop, in C# / .NET Core.
TL;DR if you can run dotnet test
and see tests pass then chances are you are all set.
Be warned: the code in this project may change from time to time and workshop to workshop (possibly just very slightly and the gist should stay the same).
- .NET Core
- Git
- an IDE to work with, e.g. Visual Studio Code
- ... and an open mind :)
A contrived shopping feature that works as follows,
- accepts a
BuyRequest
- calculates and applies discounts
- charges member the discounted price
- if member is having a birthday, then a certain discount is given
- if promo code "AM" is presented and checkout time is AM then a discount is given
- similarly for promo code "PM"
- only some items are discountable
- the higher discount applies if an item qualifies for more than one types of discounts
- halve the code for this project
- happily write simple code and simple unit tests, and benefit now! Not later
- and then a great reveal