Unit testing
Controllers are the core for working of the ASP.NET MVC application. They are the first point of contact for request and coordinates both with models and views to send response back to user. Unit testing refers to the process of testing every code path in isolation to verify its actual working compared with an expected result. Unit test are written as part of unit testing process and includes multiple small and discrete tests.
Although a fully functional application consists of hundreds and thousands of unit tests, for the purpose of OnlinePharmacy sample application, few unit test are written and executed to demonstrate unit testing process as part of DevOps continuous integration practice and validate the correctness of code.
In general, controllers invoke data access operations either directly in its class or indirectly by delegating data access operations to some dedicated class. In both cases, the calls are time-consuming and resource intensive in nature. Having hundreds...