{"push_id":1129396699,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"49ef0ea537f7a182eb9fafc7a967e3d655ee7600","before":"b2418c90f172bc4aa51728e16b8dea03626b71fd","commits":[{"sha":"49ef0ea537f7a182eb9fafc7a967e3d655ee7600","author":{"email":"3f2132fc381ee3186016a447d3239d1662d6d65d@email.com","name":"rb"},"message":"Method pendingPurchaseTotal() does not really calculate the total of scanned items. It only gets the price of the first item. We want to make it compute the ***sum*** of multiple items using TDD. Unfortunately, the method cares about the context in which sum is to be done, i.e. in the context of a Sale. So, to test pendingPurchaseTotal() we will have to create a Catalog & Display, Scan items, press onTotal button to finish a sale etc. Actually, we only care about calculating a simple sum of numbers, without any context attached to it. So, we refactored pendingPurchaseTotal() into computePurchaseTotal() which simply calculates sum of a random list of prices. Testing computePurchaseTotal() will be much easier.","distinct":true,"url":"https://api.github.com/repos/raj4dev/PointOfSale-java/commits/49ef0ea537f7a182eb9fafc7a967e3d655ee7600"}]}
{"actor":{"display_login":"raj4dev"}}