SetupSet(T, TProperty) Method

Moq

Collapse imageExpand ImageCopy imageCopyHover image

[Missing <summary> documentation for "M:Moq.MockExtensions.SetupSet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func`2})"]

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

Syntax

C#
[ObsoleteAttribute("Replaced by SetupSet(Action)")]
public static ISetupSetter<T, TProperty> SetupSet<T, TProperty>(
	this Mock<T> mock,
	Expression<Func> expression
)
where T : class

Parameters

mock
Type: Moq..::..Mock<(Of <(<'T>)>)>
expression
Type: System.Linq.Expressions..::..Expression<(Of <(<'Func<(Of <(<'T, TResult>)>)>>)>)>

Type Parameters

T
TProperty

See Also