Building an App with Repositories and Document DB
In Chapter 8, Designing an Appointment Booking App, we laid the technical specifications and the design decisions for building an appointment booking system for a barber salon called Heads Up Barbers. This chapter is a continuation of Chapter 8, so I strongly advise you to be familiar with it first.
This chapter will implement the requirements in TDD style and will use the repository pattern with Azure Cosmos DB. The implementation will be applicable to other document databases aka NoSQL such as MongoDB, Amazon DynamoDB, GCP Firestore, and others.
If you are a fan of document DBs or you are using one at work, then this chapter is for you, while if you are using a relational database, then you might want to skip this chapter and go back to the previous chapter, Chapter 9. Both chapters, Chapter 9 and Chapter 10 have the same outcome, but they use different backend DB categories.
The chapter assumes you are familiar with a document...