public void GetCustomerByNameNotPresent_ShouldNotCustomerDetails()
        {
            //Arrange
            var context = MockDbRepository();
            var service = new CustomerDetailsRepository(context.Object);
            var name    = "Virat Kholi";

            //Act
            var customerDetails = service.GetCustomerDetailsByName(name);

            // Assert
            Assert.Empty(customerDetails);
        }
        public void GetCustomerByName_ShouldReturnCustomerDetails()
        {
            //Arrange
            var context      = MockDbRepository();
            var service      = new CustomerDetailsRepository(context.Object);
            var customerName = "customername3";

            //Act
            var customerDetails = service.GetCustomerDetailsByName(customerName);

            // Assert
            Assert.NotNull(customerDetails);
            Assert.Equal(2, customerDetails.Count);
            foreach (var customerDetail in customerDetails)
            {
                Assert.Equal(customerName, customerDetail.Name);
            }
        }