How do you get access to custom methods in a repository

Jun 11, 2015 at 4:12 PM
I am trying to figure out how the CustomerRepository static class method GetCustomerOrderTotalByYear is accessable in the CustomerService via the method
public decimal CustomerOrderTotalByYear(string customerId, int year)
            // add business logic here
            return _repository.GetCustomerOrderTotalByYear(customerId, year);
Which is then tested in the CustomerRepositoryTest.cs file... I am not understanding how the service is finding that method... Any help would be appreciated...
Jun 11, 2015 at 10:27 PM
Edited Jun 11, 2015 at 10:27 PM
Ok, I got my custom SiteRepository methods to show up.. But I am not sure how exactly it is working...
Any article I can read about this?