Commit graph

9 commits

Author SHA1 Message Date
Simon Zeltser
546562fe53 Fixing AddItem and adding more tests/cartservice/CartServiceTests
Updated AddItem functionality so it handles update quantities scenario.
Added tests
2018-06-29 11:08:06 -07:00
Simon Zeltser
2041bdcb48 Fixing GetCart for non-existing user
Now GetCart returns an empty cart for non-existing user
(user that haven't added anything to the cart before)
Added test to cover that

Also enhanced windows script for running cart service locally.
Now we have two options:
 - Running the service and redis locally (assuming redis emulator is installed)
   This is good for easier local debugging and troubleshooting

   docker_setup local

 - Running the service and redis in two separate docker containers
   This is good for better simulation of what will happen in the cloud
2018-06-26 14:41:00 -07:00
Simon Zeltser
c3c76effea Fixing cache implementation 2018-06-25 09:44:56 -07:00
Simon Zeltser
3262ff82b0 Updating docker file to not include ports. Added scripts folder and script to run docker with env vars passed via command line. Also now the build and packaging is happening in container 2018-06-22 17:17:34 -07:00
Simon Zeltser
5d44d019b3 Fixing docker issues. Now the server can run in linux docker container but doesn't work with real redis yet 2018-06-21 14:53:07 -07:00
Simon Zeltser
d7d9165da6 added gitignore file for .net proj 2018-06-21 11:19:48 -07:00
Simon Zeltser
0ce195bb80 command line arguments handling 2018-06-21 11:10:13 -07:00
Simon Zeltser
8860d8bfdd added redis integration and command line arguments handling to cart service. Didn't test in the cloud yet 2018-06-21 11:09:12 -07:00
Simon Zeltser
2df80b14c9 Initial commit of cart service using .net core 2.0. Working prototype without cache implementation (yet) 2018-06-20 15:40:07 -07:00