As(TInterface) Method

Moq 2.6

Namespace:  Moq
Assembly:  Moq (in Moq.dll) Version: 2.6.1014.1 (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