Basic design using web api and EF
Problem Statement Build the domain for a check out counter in an online retail store that scans products and generates an itemized bill. The bill should also total the cost of all the products and the applicable salestax for each product. The total cost and total sales tax should be printedSales tax varies based on the type of products
- category A products carry a levy of 10%
- category B products carry a levy of 20%
- category C products carry no levy
The solution should address the following aspects 0. Self sufficient project that can be tested and run
- Must use best practices, design methodologies, patterns
- Must use a dependency injection framework
- Must be unit tested
- May use ORM frameworks as required
Pending Items for Solution
- Unit tests
- Multiple scenario validations
- DB optimizations (No index or query cost considered)
Steps to execute the application
- Use VS2017 (roslyn compiler)
- Restore Nugets
- Replace DB file connection string in StoreDbContext.cs file
- Host Application
- Use client console application to test
Share if any issues.