Moq set Mock manually code example
Example: moq return mockset
mockSet.As<IQueryable<ClassA>>().Setup(m => m.GetEnumerator())
.Returns(myClassAs.GetEnumerator);
mockSet.As<IQueryable<ClassA>>().Setup(m => m.GetEnumerator())
.Returns(myClassAs.GetEnumerator);