Let's say I have this class:
public abstract class CustomerCollectionBase : Collection<Customer>{}
One of my classes under test accepts CustomerCollectionBase instance (it will be some subclass). In the method under test, this collection is enumerated via for loop and results are examined and processed. like follows:
for(int i=0;i<_customers.Count; i++){
//process customer
}
Is it possible to stub this collection with Moq so I could pass stub as a dependency to my class-under-test's constructor?
Thank you.