public void ReturnsProvider() { // Arrange var mockDbSet = new MockDbSet <object>(); var queryable = mockDbSet.As <IQueryable <object> >().Object; // Act var provider = queryable.Provider; // Assert Assert.NotNull(provider); }
public void ReturnsAsyncEnumerator() { // Arrange var mockDbSet = new MockDbSet <object>(); var asyncEnumerable = mockDbSet.As <IDbAsyncEnumerable <object> >().Object; // Act var asyncEnumerator = asyncEnumerable.GetAsyncEnumerator(); // Assert Assert.NotNull(asyncEnumerator); }
public void ReturnsElementType() { // Arrange var mockDbSet = new MockDbSet <object>(); var queryable = mockDbSet.As <IQueryable <object> >().Object; // Act var elementType = queryable.ElementType; // Assert Assert.NotNull(elementType); }
public void ReturnsElementType() { // Arrange var mockDbSet = new MockDbSet <object>(); var queryable = mockDbSet.As <IQueryable <object> >().Object; // Act var enumerator = queryable.GetEnumerator(); // Assert Assert.NotNull(enumerator); }
public void ReturnsExpression() { // Arrange var mockDbSet = new MockDbSet <object>(); var queryable = mockDbSet.As <IQueryable <object> >().Object; // Act var expression = queryable.Expression; // Assert Assert.NotNull(expression); }