Self exercise
- Open the
packtbookslibrary-api
solution that we created earlier in Chapter 6, Implementing Continuous Deployment and Release Management, Exercises section and add a new project (select NUnit Test Project).
Figure 10.24 – Self exercise – adding a new test project
- Create a new test project.
Figure 10.25 – Self exercise – creating a new test project
- Once the test project is created, add a reference to
packtbookslibrary-api
in Dependencies.
Figure 10.26 – Self exercise – configuring Dependencies
- Add a Services folder and then add the
IBookService.cs
interface and theBookService.cs
class, which implements theIBookService
interface.
Figure 10.27 – Self exercise – adding the IBookService.cs interface
IBookService.cs
will have the following code:using packtbookslibrary.Shared.Models...