Skip to content

timpharo/CheckoutKata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

This is the initail code that meets the kata/specification.

Improvments in the future could include:

  • A database with all the prices
  • Each item could have a quantity instead of being added to a List inside the scannedItems Map, this would allow only a SKU to be passed to the scanItem method and would reduce the overhead.
  • A database with the discounts configure so that they can be configured separately and read into objects by the provider.
  • Spring autowiring to allow things to be replaced for testing purposes

The assumptions made are:

  • The price can be read as each item is scanned as this is a supermarket and the prices will not be updated in working hours.
  • Discounts will follow the same principle.

About

A practice code Kata for a shopping checkout

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages