Of(T) Method

Moq

Collapse imageExpand ImageCopy imageCopyHover image
Access the universe of mocks of the given type, to retrieve those that behave according to the LINQ query specification.

Namespace: Moq
Assembly: Moq (in Moq.dll) Version: 4.0.10827.0 (4.0.0.0)

Syntax

C#
public IQueryable<T> Of<T>()
where T : class

Type Parameters

T
The type of the mocked object to query.

See Also