4
<name>NSubstitute</name>
7
<member name="M:NSubstitute.Raise.EventWith``1(System.Object,``0)">
9
Raise an event for an <c>EventHandler<TEventArgs></c> event with the provided <paramref name="sender"/> and <paramref name="eventArgs"/>.
12
<member name="M:NSubstitute.Raise.EventWith``1(``0)">
14
Raise an event for an <c>EventHandler<TEventArgs></c> event with the substitute as the sender and the provided <paramref name="eventArgs" />.
17
<member name="M:NSubstitute.Raise.EventWith``1">
19
Raise an event for an <c>EventHandler<EventArgsT></c> event with the substitute as the sender
20
and with a default instance of <typeparamref name="TEventArgs" />.
23
<member name="M:NSubstitute.Raise.Event">
25
Raise an event for an <c>EventHandler</c> or <c>EventHandler<EventArgs></c> event with the substitute
26
as the sender and with empty <c>EventArgs</c>.
29
<member name="M:NSubstitute.Raise.Event``1(System.Object[])">
31
Raise an event of type <typeparamref name="THandler" /> with the provided arguments. If no arguments are provided
32
NSubstitute will try and provide reasonble defaults.
35
<member name="T:NSubstitute.Substitute">
37
Create a substitute for one or more types. For example: <c>Substitute.For<ISomeType>()</c>
40
<member name="M:NSubstitute.Substitute.For``1(System.Object[])">
42
Substitute for an interface or class.
43
<para>Be careful when specifying a class, as all non-virtual members will actually be executed. Only virtual members
44
can be recorded or have return values specified.</para>
46
<typeparam name="T">The type of interface or class to substitute.</typeparam>
47
<param name="constructorArguments">Arguments required to construct a class being substituted. Not required for interfaces or classes with default constructors.</param>
48
<returns>A substitute for the interface or class.</returns>
50
<member name="M:NSubstitute.Substitute.For``2(System.Object[])">
52
<para>Substitute for multiple interfaces or a class that implements an interface. At most one class can be specified.</para>
53
<para>Be careful when specifying a class, as all non-virtual members will actually be executed. Only virtual members
54
can be recorded or have return values specified.</para>
56
<typeparam name="T1">The type of interface or class to substitute.</typeparam>
57
<typeparam name="T2">An additional interface or class (maximum of one class) the substitute should implement.</typeparam>
58
<param name="constructorArguments">Arguments required to construct a class being substituted. Not required for interfaces or classes with default constructors.</param>
59
<returns>A substitute of type T1, that also implements T2.</returns>
61
<member name="M:NSubstitute.Substitute.For``3(System.Object[])">
63
<para>Substitute for multiple interfaces or a class that implements multiple interfaces. At most one class can be specified.</para>
64
If additional interfaces are required use the <see cref="M:NSubstitute.Substitute.For(System.Type[],System.Object[])"/> overload.
65
<para>Be careful when specifying a class, as all non-virtual members will actually be executed. Only virtual members
66
can be recorded or have return values specified.</para>
68
<typeparam name="T1">The type of interface or class to substitute.</typeparam>
69
<typeparam name="T2">An additional interface or class (maximum of one class) the substitute should implement.</typeparam>
70
<typeparam name="T3">An additional interface or class (maximum of one class) the substitute should implement.</typeparam>
71
<param name="constructorArguments">Arguments required to construct a class being substituted. Not required for interfaces or classes with default constructors.</param>
72
<returns>A substitute of type T1, that also implements T2 and T3.</returns>
74
<member name="M:NSubstitute.Substitute.For(System.Type[],System.Object[])">
76
<para>Substitute for multiple interfaces or a class that implements multiple interfaces. At most one class can be specified.</para>
77
<para>Be careful when specifying a class, as all non-virtual members will actually be executed. Only virtual members
78
can be recorded or have return values specified.</para>
80
<param name="typesToProxy">The types of interfaces or a type of class and multiple interfaces the substitute should implement.</param>
81
<param name="constructorArguments">Arguments required to construct a class being substituted. Not required for interfaces or classes with default constructors.</param>
82
<returns>A substitute implementing the specified types.</returns>