Capgemini Interview Question

They asked me to implement and explain the Generic Repository pattern with the complete CRUD operation flow along with xunit unit testing