Develop the Resource Tier

We will develop the resource (entity) tier in this lesson, which is the first step in the process of developing the service.

We'll cover the following

There are four major steps in service development

  • Creating the entity
  • Creating the data access tier
  • Creating the business service tier
  • Creating the JSON-based REST service, which will be integrated with the user interface

We will follow a bottom-up approach here, starting with the entity and ending with the REST service.

Following a test-driven development approach, we will write the test for each method, followed by the definition of the actual method. In the entity test method, we first create two instances of a book entity followed by an update and a delete. Finally, we check whether or not one instance of the book remains. After the test executes, the operation is rolled back.

Get hands-on with 1200+ tech skills courses.