I am going to demonstrate the use of a very popular mocking framework, Moq, to mock database calls. The example in the article is an Order Processing class, mimicking the order processing system. For the sake of simplicity, I am focusing on fetching an order from database (by order Id), adding 10% GST on the amount and then saving it back to database. public class OrderProcessing ... On 28 Nov 2018 Viewed: 2,312