Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XPMan EventSourcing blurb

EventSourcing is the best thing ever?

In this session we'll discuss what EventSourcing is, its pros and cons, and some use-cases.

To make it real we'll be running through a demo EventSourced Checkout kata.

Before the event:

  • You don't need to do anything :)

Checkout Kata

Implement the code for a supermarket checkout that calculates the total price of a number of items.

The code will be used by an electronic till that

  • can only scan one item at a time.
  • sends a total to display as the items are scanned
  • can mark a basket as sold (any new items scanned are in a new basket)

Goods are priced individually, however there are weekly special offers for when multiple items are bought. For example "A is 50 each" or "3 for 130".

Weekly offers change frequently. The initial prices and offers are as follows:

SKU Item Price Special Offers
A 50 3 for 120
B 30 2 for 45
C 60
D 99

Creative Commons Licence
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages