moq return vlaue from mock 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);