Namespace:  Moq
Assembly:  Moq (in Moq.dll) Version: 2.6.1006.3 (2.6.0.0)

Syntax

C#
public virtual IMock<TInterface> As<TInterface>()
where TInterface : class

Type Parameters

TInterface
Type of interface to cast the mock to.

See Also