diff options
author | Brandon West <brawest@gmail.com> | 2014-06-14 11:47:55 -0600 |
---|---|---|
committer | Brandon West <brawest@gmail.com> | 2014-06-14 11:47:55 -0600 |
commit | 4d894d7f8543360a7e7414263898083436fe36b9 (patch) | |
tree | 665363771f98bcc9ce5633aeb18b001934063158 | |
parent | a7625a4ae8e37c7732cb30f0c981d41ee7fff8ae (diff) | |
download | sendgrid-csharp-4d894d7f8543360a7e7414263898083436fe36b9.zip sendgrid-csharp-4d894d7f8543360a7e7414263898083436fe36b9.tar.gz sendgrid-csharp-4d894d7f8543360a7e7414263898083436fe36b9.tar.bz2 |
enable package restore for Tests.csproj
22 files changed, 1 insertions, 18432 deletions
diff --git a/SendGrid/Tests/Tests.csproj b/SendGrid/Tests/Tests.csproj index 5214954..ab14452 100644 --- a/SendGrid/Tests/Tests.csproj +++ b/SendGrid/Tests/Tests.csproj @@ -23,7 +23,7 @@ <DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
- <RestorePackages>false</RestorePackages>
+ <RestorePackages>true</RestorePackages>
<Prefer32Bit>false</Prefer32Bit>
<BuildPackage>false</BuildPackage>
<SignAssembly>false</SignAssembly>
diff --git a/SendGrid/packages/Microsoft.Net.Http.2.0.20710.0/Microsoft.Net.Http.2.0.20710.0.nupkg b/SendGrid/packages/Microsoft.Net.Http.2.0.20710.0/Microsoft.Net.Http.2.0.20710.0.nupkg Binary files differdeleted file mode 100644 index 1d93a25..0000000 --- a/SendGrid/packages/Microsoft.Net.Http.2.0.20710.0/Microsoft.Net.Http.2.0.20710.0.nupkg +++ /dev/null diff --git a/SendGrid/packages/Microsoft.Net.Http.2.0.20710.0/Microsoft.Net.Http.2.0.20710.0.nuspec b/SendGrid/packages/Microsoft.Net.Http.2.0.20710.0/Microsoft.Net.Http.2.0.20710.0.nuspec deleted file mode 100644 index 1173130..0000000 --- a/SendGrid/packages/Microsoft.Net.Http.2.0.20710.0/Microsoft.Net.Http.2.0.20710.0.nuspec +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0"?>
-<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
- <metadata>
- <id>Microsoft.Net.Http</id>
- <version>2.0.20710.0</version>
- <title>Microsoft .NET Framework 4 HTTP Client Libraries</title>
- <authors>Microsoft</authors>
- <owners>Microsoft</owners>
- <licenseUrl>http://www.microsoft.com/web/webpi/eula/MVC_4_eula_ENU.htm</licenseUrl>
- <projectUrl>http://www.asp.net/web-api</projectUrl>
- <requireLicenseAcceptance>true</requireLicenseAcceptance>
- <description>This package provides a programming interface for modern HTTP applications. This package includes HttpClient for sending requests over HTTP, as well as HttpRequestMessage and HttpResponseMessage for processing HTTP messages.</description>
- <frameworkAssemblies>
- <frameworkAssembly assemblyName="System.Net.Http" targetFramework=".NETFramework4.5" />
- <frameworkAssembly assemblyName="System.Net.Http.WebRequest" targetFramework=".NETFramework4.5" />
- </frameworkAssemblies>
- <references>
- <reference file="System.Net.Http.dll" />
- <reference file="System.Net.Http.WebRequest.dll" />
- <reference file="_._" />
- </references>
- </metadata>
-</package>
\ No newline at end of file diff --git a/SendGrid/packages/Microsoft.Net.Http.2.0.20710.0/lib/net40/System.Net.Http.WebRequest.dll b/SendGrid/packages/Microsoft.Net.Http.2.0.20710.0/lib/net40/System.Net.Http.WebRequest.dll Binary files differdeleted file mode 100644 index b26b59a..0000000 --- a/SendGrid/packages/Microsoft.Net.Http.2.0.20710.0/lib/net40/System.Net.Http.WebRequest.dll +++ /dev/null diff --git a/SendGrid/packages/Microsoft.Net.Http.2.0.20710.0/lib/net40/System.Net.Http.WebRequest.xml b/SendGrid/packages/Microsoft.Net.Http.2.0.20710.0/lib/net40/System.Net.Http.WebRequest.xml deleted file mode 100644 index abfb1aa..0000000 --- a/SendGrid/packages/Microsoft.Net.Http.2.0.20710.0/lib/net40/System.Net.Http.WebRequest.xml +++ /dev/null @@ -1,63 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?>
-<doc>
- <assembly>
- <name>System.Net.Http.WebRequest</name>
- </assembly>
- <members>
- <member name="T:System.Net.Http.RtcRequestFactory">
- <summary>Represents the class that is used to create special <see cref="T:System.Net.Http.HttpRequestMessage" /> for use with the Real-Time-Communications (RTC) background notification infrastructure.</summary>
- </member>
- <member name="M:System.Net.Http.RtcRequestFactory.Create(System.Net.Http.HttpMethod,System.Uri)">
- <summary>Creates a special <see cref="T:System.Net.Http.HttpRequestMessage" /> for use with the Real-Time-Communications (RTC) background notification infrastructure.</summary>
- <returns>Returns <see cref="T:System.Net.Http.HttpRequestMessage" />.An HTTP request message for use with the RTC background notification infrastructure.</returns>
- <param name="method">The HTTP method.</param>
- <param name="uri">The Uri the request is sent to.</param>
- </member>
- <member name="T:System.Net.Http.WebRequestHandler">
- <summary>Provides desktop-specific features not available to Windows Store apps or other environments. </summary>
- </member>
- <member name="M:System.Net.Http.WebRequestHandler.#ctor">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.WebRequestHandler" /> class.</summary>
- </member>
- <member name="P:System.Net.Http.WebRequestHandler.AllowPipelining">
- <summary> Gets or sets a value that indicates whether to pipeline the request to the Internet resource.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the request should be pipelined; otherwise, false. The default is true. </returns>
- </member>
- <member name="P:System.Net.Http.WebRequestHandler.AuthenticationLevel">
- <summary>Gets or sets a value indicating the level of authentication and impersonation used for this request.</summary>
- <returns>Returns <see cref="T:System.Net.Security.AuthenticationLevel" />.A bitwise combination of the <see cref="T:System.Net.Security.AuthenticationLevel" /> values. The default value is <see cref="F:System.Net.Security.AuthenticationLevel.MutualAuthRequested" />.</returns>
- </member>
- <member name="P:System.Net.Http.WebRequestHandler.CachePolicy">
- <summary>Gets or sets the cache policy for this request.</summary>
- <returns>Returns <see cref="T:System.Net.Cache.RequestCachePolicy" />.A <see cref="T:System.Net.Cache.RequestCachePolicy" /> object that defines a cache policy. The default is <see cref="P:System.Net.WebRequest.DefaultCachePolicy" />.</returns>
- </member>
- <member name="P:System.Net.Http.WebRequestHandler.ClientCertificates">
- <summary>Gets or sets the collection of security certificates that are associated with this request.</summary>
- <returns>Returns <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" />.The collection of security certificates associated with this request.</returns>
- </member>
- <member name="P:System.Net.Http.WebRequestHandler.ContinueTimeout">
- <summary>Gets or sets the amount of time, in milliseconds, the application will wait for 100-continue from the server before uploading data.</summary>
- <returns>Returns <see cref="T:System.TimeSpan" />.The amount of time, in milliseconds, the application will wait for 100-continue from the server before uploading data. The default value is 350 milliseconds.</returns>
- </member>
- <member name="P:System.Net.Http.WebRequestHandler.ImpersonationLevel">
- <summary>Gets or sets the impersonation level for the current request.</summary>
- <returns>Returns <see cref="T:System.Security.Principal.TokenImpersonationLevel" />.The impersonation level for the request. The default is <see cref="F:System.Security.Principal.TokenImpersonationLevel.Delegation" />.</returns>
- </member>
- <member name="P:System.Net.Http.WebRequestHandler.MaxResponseHeadersLength">
- <summary>Gets or sets the maximum allowed length of the response headers.</summary>
- <returns>Returns <see cref="T:System.Int32" />.The length, in kilobytes (1024 bytes), of the response headers.</returns>
- </member>
- <member name="P:System.Net.Http.WebRequestHandler.ReadWriteTimeout">
- <summary>Gets or sets a time-out in milliseconds when writing a request to or reading a response from a server.</summary>
- <returns>Returns <see cref="T:System.Int32" />.The number of milliseconds before the writing or reading times out. The default value is 300,000 milliseconds (5 minutes). </returns>
- </member>
- <member name="P:System.Net.Http.WebRequestHandler.ServerCertificateValidationCallback">
- <summary>Gets or sets a callback method to validate the server certificate.</summary>
- <returns>Returns <see cref="T:System.Net.Security.RemoteCertificateValidationCallback" />.A callback method to validate the server certificate.</returns>
- </member>
- <member name="P:System.Net.Http.WebRequestHandler.UnsafeAuthenticatedConnectionSharing">
- <summary>Gets or sets a value that indicates whether to allow high-speed NTLM-authenticated connection sharing.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true to keep the authenticated connection open; otherwise, false.</returns>
- </member>
- </members>
-</doc>
\ No newline at end of file diff --git a/SendGrid/packages/Microsoft.Net.Http.2.0.20710.0/lib/net40/System.Net.Http.dll b/SendGrid/packages/Microsoft.Net.Http.2.0.20710.0/lib/net40/System.Net.Http.dll Binary files differdeleted file mode 100644 index 2ee8ff7..0000000 --- a/SendGrid/packages/Microsoft.Net.Http.2.0.20710.0/lib/net40/System.Net.Http.dll +++ /dev/null diff --git a/SendGrid/packages/Microsoft.Net.Http.2.0.20710.0/lib/net40/System.Net.Http.xml b/SendGrid/packages/Microsoft.Net.Http.2.0.20710.0/lib/net40/System.Net.Http.xml deleted file mode 100644 index 6506939..0000000 --- a/SendGrid/packages/Microsoft.Net.Http.2.0.20710.0/lib/net40/System.Net.Http.xml +++ /dev/null @@ -1,2308 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?>
-<doc>
- <assembly>
- <name>System.Net.Http</name>
- </assembly>
- <members>
- <member name="T:System.Net.Http.ByteArrayContent">
- <summary>Provides HTTP content based on a byte array.</summary>
- </member>
- <member name="M:System.Net.Http.ByteArrayContent.#ctor(System.Byte[])">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.ByteArrayContent" /> class.</summary>
- <param name="content">The content used to initialize the <see cref="T:System.Net.Http.ByteArrayContent" />.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="content" /> parameter is null. </exception>
- </member>
- <member name="M:System.Net.Http.ByteArrayContent.#ctor(System.Byte[],System.Int32,System.Int32)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.ByteArrayContent" /> class.</summary>
- <param name="content">The content used to initialize the <see cref="T:System.Net.Http.ByteArrayContent" />.</param>
- <param name="offset">The offset, in bytes, in the <paramref name="content" /> parameter used to initialize the <see cref="T:System.Net.Http.ByteArrayContent" />.</param>
- <param name="count">The number of bytes in the <paramref name="content" /> starting from the <paramref name="offset" /> parameter used to initialize the <see cref="T:System.Net.Http.ByteArrayContent" />.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="content" /> parameter is null. </exception>
- <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="offset" /> parameter is less than zero.-or-The <paramref name="offset" /> parameter is greater than the length of content specified by the <paramref name="content" /> parameter.-or-The <paramref name="count " /> parameter is less than zero.-or-The <paramref name="count" /> parameter is greater than the length of content specified by the <paramref name="content" /> parameter - minus the <paramref name="offset" /> parameter.</exception>
- </member>
- <member name="M:System.Net.Http.ByteArrayContent.CreateContentReadStreamAsync">
- <summary>Creates an HTTP content stream as an asynchronous operation for reading whose backing store is memory from the <see cref="T:System.Net.Http.ByteArrayContent" />.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- </member>
- <member name="M:System.Net.Http.ByteArrayContent.SerializeToStreamAsync(System.IO.Stream,System.Net.TransportContext)">
- <summary>Serialize and write the byte array provided in the constructor to an HTTP content stream as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task" />. The task object representing the asynchronous operation.</returns>
- <param name="stream">The target stream.</param>
- <param name="context">Information about the transport, like channel binding token. This parameter may be null.</param>
- </member>
- <member name="M:System.Net.Http.ByteArrayContent.TryComputeLength(System.Int64@)">
- <summary>Determines whether a byte array has a valid length in bytes.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if <paramref name="length" /> is a valid length; otherwise, false.</returns>
- <param name="length">The length in bytes of the byte array.</param>
- </member>
- <member name="T:System.Net.Http.ClientCertificateOption">
- <summary>Specifies how client certificates are provided.</summary>
- </member>
- <member name="F:System.Net.Http.ClientCertificateOption.Manual">
- <summary>The application manually provides the client certificates to the <see cref="T:System.Net.Http.WebRequestHandler" />. This value is the default. </summary>
- </member>
- <member name="F:System.Net.Http.ClientCertificateOption.Automatic">
- <summary>The <see cref="T:System.Net.Http.HttpClientHandler" /> will attempt to provide all available client certificates automatically.</summary>
- </member>
- <member name="T:System.Net.Http.DelegatingHandler">
- <summary>A base type for HTTP handlers that delegate the processing of HTTP response messages to another handler, called the inner handler.</summary>
- </member>
- <member name="M:System.Net.Http.DelegatingHandler.#ctor">
- <summary>Creates a new instance of the <see cref="T:System.Net.Http.DelegatingHandler" /> class.</summary>
- </member>
- <member name="M:System.Net.Http.DelegatingHandler.#ctor(System.Net.Http.HttpMessageHandler)">
- <summary>Creates a new instance of the <see cref="T:System.Net.Http.DelegatingHandler" /> class with a specific inner handler.</summary>
- <param name="innerHandler">The inner handler which is responsible for processing the HTTP response messages.</param>
- </member>
- <member name="M:System.Net.Http.DelegatingHandler.Dispose(System.Boolean)">
- <summary>Releases the unmanaged resources used by the <see cref="T:System.Net.Http.DelegatingHandler" />, and optionally disposes of the managed resources.</summary>
- <param name="disposing">true to release both managed and unmanaged resources; false to releases only unmanaged resources. </param>
- </member>
- <member name="P:System.Net.Http.DelegatingHandler.InnerHandler">
- <summary>Gets or sets the inner handler which processes the HTTP response messages.</summary>
- <returns>Returns <see cref="T:System.Net.Http.HttpMessageHandler" />.The inner handler for HTTP response messages.</returns>
- </member>
- <member name="M:System.Net.Http.DelegatingHandler.SendAsync(System.Net.Http.HttpRequestMessage,System.Threading.CancellationToken)">
- <summary>Sends an HTTP request to the inner handler to send to the server as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />. The task object representing the asynchronous operation.</returns>
- <param name="request">The HTTP request message to send to the server.</param>
- <param name="cancellationToken">A cancellation token to cancel operation.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="request" /> was null.</exception>
- </member>
- <member name="T:System.Net.Http.FormUrlEncodedContent">
- <summary>A container for name/value tuples encoded using application/x-www-form-urlencoded MIME type.</summary>
- </member>
- <member name="M:System.Net.Http.FormUrlEncodedContent.#ctor(System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{System.String,System.String}})">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.FormUrlEncodedContent" /> class with a specific collection of name/value pairs.</summary>
- <param name="nameValueCollection">A collection of name/value pairs.</param>
- </member>
- <member name="T:System.Net.Http.HttpClient">
- <summary>Provides a base class for sending HTTP requests and receiving HTTP responses from a resource identified by a URI. </summary>
- </member>
- <member name="M:System.Net.Http.HttpClient.#ctor">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.HttpClient" /> class.</summary>
- </member>
- <member name="M:System.Net.Http.HttpClient.#ctor(System.Net.Http.HttpMessageHandler)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.HttpClient" /> class with a specific handler.</summary>
- <param name="handler">The HTTP handler stack to use for sending requests. </param>
- </member>
- <member name="M:System.Net.Http.HttpClient.#ctor(System.Net.Http.HttpMessageHandler,System.Boolean)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.HttpClient" /> class with a specific handler.</summary>
- <param name="handler">The <see cref="T:System.Net.Http.HttpMessageHandler" /> responsible for processing the HTTP response messages.</param>
- <param name="disposeHandler">true if the inner handler should be disposed of by Dispose(),false if you intend to reuse the inner handler.</param>
- </member>
- <member name="P:System.Net.Http.HttpClient.BaseAddress">
- <summary>Gets or sets the base address of Uniform Resource Identifier (URI) of the Internet resource used when sending requests.</summary>
- <returns>Returns <see cref="T:System.Uri" />.The base address of Uniform Resource Identifier (URI) of the Internet resource used when sending requests.</returns>
- </member>
- <member name="M:System.Net.Http.HttpClient.CancelPendingRequests">
- <summary>Cancel all pending requests on this instance.</summary>
- </member>
- <member name="P:System.Net.Http.HttpClient.DefaultRequestHeaders">
- <summary>Gets the headers which should be sent with each request.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.HttpRequestHeaders" />.The headers which should be sent with each request.</returns>
- </member>
- <member name="M:System.Net.Http.HttpClient.DeleteAsync(System.String)">
- <summary>Send a DELETE request to the specified Uri as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- <param name="requestUri">The Uri the request is sent to.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="requestUri" /> was null.</exception>
- </member>
- <member name="M:System.Net.Http.HttpClient.DeleteAsync(System.String,System.Threading.CancellationToken)">
- <summary>Send a DELETE request to the specified Uri with a cancellation token as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- <param name="requestUri">The Uri the request is sent to.</param>
- <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="requestUri" /> was null.</exception>
- </member>
- <member name="M:System.Net.Http.HttpClient.DeleteAsync(System.Uri)">
- <summary>Send a DELETE request to the specified Uri as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- <param name="requestUri">The Uri the request is sent to.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="requestUri" /> was null.</exception>
- </member>
- <member name="M:System.Net.Http.HttpClient.DeleteAsync(System.Uri,System.Threading.CancellationToken)">
- <summary>Send a DELETE request to the specified Uri with a cancellation token as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- <param name="requestUri">The Uri the request is sent to.</param>
- <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="requestUri" /> was null.</exception>
- </member>
- <member name="M:System.Net.Http.HttpClient.Dispose(System.Boolean)">
- <summary>Releases the unmanaged resources used by the <see cref="T:System.Net.Http.HttpClient" /> and optionally disposes of the managed resources.</summary>
- <param name="disposing">true to release both managed and unmanaged resources; false to releases only unmanaged resources.</param>
- </member>
- <member name="M:System.Net.Http.HttpClient.GetAsync(System.String)">
- <summary>Send a GET request to the specified Uri as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- <param name="requestUri">The Uri the request is sent to.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="requestUri" /> was null.</exception>
- </member>
- <member name="M:System.Net.Http.HttpClient.GetAsync(System.String,System.Net.Http.HttpCompletionOption)">
- <summary>Send a GET request to the specified Uri with an HTTP completion option as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.</returns>
- <param name="requestUri">The Uri the request is sent to.</param>
- <param name="completionOption">An HTTP completion option value that indicates when the operation should be considered completed.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="requestUri" /> was null.</exception>
- </member>
- <member name="M:System.Net.Http.HttpClient.GetAsync(System.String,System.Net.Http.HttpCompletionOption,System.Threading.CancellationToken)">
- <summary>Send a GET request to the specified Uri with an HTTP completion option and a cancellation token as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.</returns>
- <param name="requestUri">The Uri the request is sent to.</param>
- <param name="completionOption">An HTTP completion option value that indicates when the operation should be considered completed.</param>
- <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="requestUri" /> was null.</exception>
- </member>
- <member name="M:System.Net.Http.HttpClient.GetAsync(System.String,System.Threading.CancellationToken)">
- <summary>Send a GET request to the specified Uri with a cancellation token as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.</returns>
- <param name="requestUri">The Uri the request is sent to.</param>
- <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="requestUri" /> was null.</exception>
- </member>
- <member name="M:System.Net.Http.HttpClient.GetAsync(System.Uri)">
- <summary>Send a GET request to the specified Uri as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- <param name="requestUri">The Uri the request is sent to.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="requestUri" /> was null.</exception>
- </member>
- <member name="M:System.Net.Http.HttpClient.GetAsync(System.Uri,System.Net.Http.HttpCompletionOption)">
- <summary>Send a GET request to the specified Uri with an HTTP completion option as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- <param name="requestUri">The Uri the request is sent to.</param>
- <param name="completionOption">An HTTP completion option value that indicates when the operation should be considered completed.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="requestUri" /> was null.</exception>
- </member>
- <member name="M:System.Net.Http.HttpClient.GetAsync(System.Uri,System.Net.Http.HttpCompletionOption,System.Threading.CancellationToken)">
- <summary>Send a GET request to the specified Uri with an HTTP completion option and a cancellation token as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- <param name="requestUri">The Uri the request is sent to.</param>
- <param name="completionOption">An HTTP completion option value that indicates when the operation should be considered completed.</param>
- <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="requestUri" /> was null.</exception>
- </member>
- <member name="M:System.Net.Http.HttpClient.GetAsync(System.Uri,System.Threading.CancellationToken)">
- <summary>Send a GET request to the specified Uri with a cancellation token as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- <param name="requestUri">The Uri the request is sent to.</param>
- <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="requestUri" /> was null.</exception>
- </member>
- <member name="M:System.Net.Http.HttpClient.GetByteArrayAsync(System.String)">
- <summary>Send a GET request to the specified Uri and return the response body as a byte array in an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- <param name="requestUri">The Uri the request is sent to.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="requestUri" /> was null.</exception>
- </member>
- <member name="M:System.Net.Http.HttpClient.GetByteArrayAsync(System.Uri)">
- <summary>Send a GET request to the specified Uri and return the response body as a byte array in an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- <param name="requestUri">The Uri the request is sent to.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="requestUri" /> was null.</exception>
- </member>
- <member name="M:System.Net.Http.HttpClient.GetStreamAsync(System.String)">
- <summary>Send a GET request to the specified Uri and return the response body as a stream in an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- <param name="requestUri">The Uri the request is sent to.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="requestUri" /> was null.</exception>
- </member>
- <member name="M:System.Net.Http.HttpClient.GetStreamAsync(System.Uri)">
- <summary>Send a GET request to the specified Uri and return the response body as a stream in an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- <param name="requestUri">The Uri the request is sent to.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="requestUri" /> was null.</exception>
- </member>
- <member name="M:System.Net.Http.HttpClient.GetStringAsync(System.String)">
- <summary>Send a GET request to the specified Uri and return the response body as a string in an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- <param name="requestUri">The Uri the request is sent to.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="requestUri" /> was null.</exception>
- </member>
- <member name="M:System.Net.Http.HttpClient.GetStringAsync(System.Uri)">
- <summary>Send a GET request to the specified Uri and return the response body as a string in an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- <param name="requestUri">The Uri the request is sent to.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="requestUri" /> was null.</exception>
- </member>
- <member name="P:System.Net.Http.HttpClient.MaxResponseContentBufferSize">
- <summary>Gets or sets the maximum number of bytes to buffer when reading the response content.</summary>
- <returns>Returns <see cref="T:System.Int32" />.The maximum number of bytes to buffer when reading the response content. The default value for this property is 64K.</returns>
- <exception cref="T:System.ArgumentOutOfRangeException">The size specified is less than or equal to zero.</exception>
- <exception cref="T:System.InvalidOperationException">An operation has already been started on the current instance. </exception>
- <exception cref="T:System.ObjectDisposedException">The current instance has been disposed. </exception>
- </member>
- <member name="M:System.Net.Http.HttpClient.PostAsync(System.String,System.Net.Http.HttpContent)">
- <summary>Send a POST request to the specified Uri as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- <param name="requestUri">The Uri the request is sent to.</param>
- <param name="content">The HTTP request content sent to the server.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="requestUri" /> was null.</exception>
- </member>
- <member name="M:System.Net.Http.HttpClient.PostAsync(System.String,System.Net.Http.HttpContent,System.Threading.CancellationToken)">
- <summary>Send a POST request with a cancellation token as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- <param name="requestUri">The Uri the request is sent to.</param>
- <param name="content">The HTTP request content sent to the server.</param>
- <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="requestUri" /> was null.</exception>
- </member>
- <member name="M:System.Net.Http.HttpClient.PostAsync(System.Uri,System.Net.Http.HttpContent)">
- <summary>Send a POST request to the specified Uri as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- <param name="requestUri">The Uri the request is sent to.</param>
- <param name="content">The HTTP request content sent to the server.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="requestUri" /> was null.</exception>
- </member>
- <member name="M:System.Net.Http.HttpClient.PostAsync(System.Uri,System.Net.Http.HttpContent,System.Threading.CancellationToken)">
- <summary>Send a POST request with a cancellation token as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- <param name="requestUri">The Uri the request is sent to.</param>
- <param name="content">The HTTP request content sent to the server.</param>
- <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="requestUri" /> was null.</exception>
- </member>
- <member name="M:System.Net.Http.HttpClient.PutAsync(System.String,System.Net.Http.HttpContent)">
- <summary>Send a PUT request to the specified Uri as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- <param name="requestUri">The Uri the request is sent to.</param>
- <param name="content">The HTTP request content sent to the server.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="requestUri" /> was null.</exception>
- </member>
- <member name="M:System.Net.Http.HttpClient.PutAsync(System.String,System.Net.Http.HttpContent,System.Threading.CancellationToken)">
- <summary>Send a PUT request with a cancellation token as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- <param name="requestUri">The Uri the request is sent to.</param>
- <param name="content">The HTTP request content sent to the server.</param>
- <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="requestUri" /> was null.</exception>
- </member>
- <member name="M:System.Net.Http.HttpClient.PutAsync(System.Uri,System.Net.Http.HttpContent)">
- <summary>Send a PUT request to the specified Uri as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- <param name="requestUri">The Uri the request is sent to.</param>
- <param name="content">The HTTP request content sent to the server.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="requestUri" /> was null.</exception>
- </member>
- <member name="M:System.Net.Http.HttpClient.PutAsync(System.Uri,System.Net.Http.HttpContent,System.Threading.CancellationToken)">
- <summary>Send a PUT request with a cancellation token as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- <param name="requestUri">The Uri the request is sent to.</param>
- <param name="content">The HTTP request content sent to the server.</param>
- <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="requestUri" /> was null.</exception>
- </member>
- <member name="M:System.Net.Http.HttpClient.SendAsync(System.Net.Http.HttpRequestMessage)">
- <summary>Send an HTTP request as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- <param name="request">The HTTP request message to send.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="request" /> was null.</exception>
- <exception cref="T:System.InvalidOperationException">The request message was already sent by the <see cref="T:System.Net.Http.HttpClient" /> instance.</exception>
- </member>
- <member name="M:System.Net.Http.HttpClient.SendAsync(System.Net.Http.HttpRequestMessage,System.Net.Http.HttpCompletionOption)">
- <summary>Send an HTTP request as an asynchronous operation. </summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- <param name="request">The HTTP request message to send.</param>
- <param name="completionOption">When the operation should complete (as soon as a response is available or after reading the whole response content).</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="request" /> was null.</exception>
- <exception cref="T:System.InvalidOperationException">The request message was already sent by the <see cref="T:System.Net.Http.HttpClient" /> instance.</exception>
- </member>
- <member name="M:System.Net.Http.HttpClient.SendAsync(System.Net.Http.HttpRequestMessage,System.Net.Http.HttpCompletionOption,System.Threading.CancellationToken)">
- <summary>Send an HTTP request as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- <param name="request">The HTTP request message to send.</param>
- <param name="completionOption">When the operation should complete (as soon as a response is available or after reading the whole response content).</param>
- <param name="cancellationToken">The cancellation token to cancel operation.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="request" /> was null.</exception>
- <exception cref="T:System.InvalidOperationException">The request message was already sent by the <see cref="T:System.Net.Http.HttpClient" /> instance.</exception>
- </member>
- <member name="M:System.Net.Http.HttpClient.SendAsync(System.Net.Http.HttpRequestMessage,System.Threading.CancellationToken)">
- <summary>Send an HTTP request as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- <param name="request">The HTTP request message to send.</param>
- <param name="cancellationToken">The cancellation token to cancel operation.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="request" /> was null.</exception>
- <exception cref="T:System.InvalidOperationException">The request message was already sent by the <see cref="T:System.Net.Http.HttpClient" /> instance.</exception>
- </member>
- <member name="P:System.Net.Http.HttpClient.Timeout">
- <summary>Gets or sets the number of milliseconds to wait before the request times out.</summary>
- <returns>Returns <see cref="T:System.TimeSpan" />.The number of milliseconds to wait before the request times out.</returns>
- <exception cref="T:System.ArgumentOutOfRangeException">The timeout specified is less than or equal to zero and is not <see cref="F:System.Threading.Timeout.Infinite" />.</exception>
- <exception cref="T:System.InvalidOperationException">An operation has already been started on the current instance. </exception>
- <exception cref="T:System.ObjectDisposedException">The current instance has been disposed.</exception>
- </member>
- <member name="T:System.Net.Http.HttpClientHandler">
- <summary>The default message handler used by <see cref="T:System.Net.Http.HttpClient" />. </summary>
- </member>
- <member name="M:System.Net.Http.HttpClientHandler.#ctor">
- <summary>Creates an instance of a <see cref="T:System.Net.Http.HttpClientHandler" /> class.</summary>
- </member>
- <member name="P:System.Net.Http.HttpClientHandler.AllowAutoRedirect">
- <summary>Gets or sets a value that indicates whether the handler should follow redirection responses.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the if the handler should follow redirection responses; otherwise false. The default value is true.</returns>
- </member>
- <member name="P:System.Net.Http.HttpClientHandler.AutomaticDecompression">
- <summary>Gets or sets the type of decompression method used by the handler for automatic decompression of the HTTP content response.</summary>
- <returns>Returns <see cref="T:System.Net.DecompressionMethods" />.The automatic decompression method used by the handler. The default value is <see cref="F:System.Net.DecompressionMethods.None" />.</returns>
- </member>
- <member name="P:System.Net.Http.HttpClientHandler.ClientCertificateOptions">
- <summary>Gets or sets the collection of security certificates that are associated with this handler.</summary>
- <returns>Returns <see cref="T:System.Net.Http.ClientCertificateOption" />.The collection of security certificates associated with this handler.</returns>
- </member>
- <member name="P:System.Net.Http.HttpClientHandler.CookieContainer">
- <summary>Gets or sets the cookie container used to store server cookies by the handler.</summary>
- <returns>Returns <see cref="T:System.Net.CookieContainer" />.The cookie container used to store server cookies by the handler.</returns>
- </member>
- <member name="P:System.Net.Http.HttpClientHandler.Credentials">
- <summary>Gets or sets authentication information used by this handler.</summary>
- <returns>Returns <see cref="T:System.Net.ICredentials" />.The authentication credentials associated with the handler. The default is null.</returns>
- </member>
- <member name="M:System.Net.Http.HttpClientHandler.Dispose(System.Boolean)">
- <summary>Releases the unmanaged resources used by the <see cref="T:System.Net.Http.HttpClientHandler" /> and optionally disposes of the managed resources.</summary>
- <param name="disposing">true to release both managed and unmanaged resources; false to releases only unmanaged resources.</param>
- </member>
- <member name="P:System.Net.Http.HttpClientHandler.MaxAutomaticRedirections">
- <summary>Gets or sets the maximum number of redirects that the handler follows.</summary>
- <returns>Returns <see cref="T:System.Int32" />.The maximum number of redirection responses that the handler follows. The default value is 50.</returns>
- </member>
- <member name="P:System.Net.Http.HttpClientHandler.MaxRequestContentBufferSize">
- <summary>Gets or sets the maximum request content buffer size used by the handler.</summary>
- <returns>Returns <see cref="T:System.Int32" />.The maximum request content buffer size in bytes. The default value is 65,536 bytes.</returns>
- </member>
- <member name="P:System.Net.Http.HttpClientHandler.PreAuthenticate">
- <summary>Gets or sets a value that indicates whether the handler sends an Authorization header with the request.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true for the handler to send an HTTP Authorization header with requests after authentication has taken place; otherwise, false. The default is false.</returns>
- </member>
- <member name="P:System.Net.Http.HttpClientHandler.Proxy">
- <summary>Gets or sets proxy information used by the handler.</summary>
- <returns>Returns <see cref="T:System.Net.IWebProxy" />.The proxy information used by the handler. The default value is null.</returns>
- </member>
- <member name="M:System.Net.Http.HttpClientHandler.SendAsync(System.Net.Http.HttpRequestMessage,System.Threading.CancellationToken)">
- <summary>Creates an instance of <see cref="T:System.Net.Http.HttpResponseMessage" /> based on the information provided in the <see cref="T:System.Net.Http.HttpRequestMessage" /> as an operation that will not block.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- <param name="request">The HTTP request message.</param>
- <param name="cancellationToken">A cancellation token to cancel the operation.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="request" /> was null.</exception>
- </member>
- <member name="P:System.Net.Http.HttpClientHandler.SupportsAutomaticDecompression">
- <summary>Gets a value that indicates whether the handler supports automatic response content decompression.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the if the handler supports automatic response content decompression; otherwise false. The default value is true.</returns>
- </member>
- <member name="P:System.Net.Http.HttpClientHandler.SupportsProxy">
- <summary>Gets a value that indicates whether the handler supports proxy settings.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the if the handler supports proxy settings; otherwise false. The default value is true.</returns>
- </member>
- <member name="P:System.Net.Http.HttpClientHandler.SupportsRedirectConfiguration">
- <summary>Gets a value that indicates whether the handler supports configuration settings for the <see cref="P:System.Net.Http.HttpClientHandler.AllowAutoRedirect" /> and <see cref="P:System.Net.Http.HttpClientHandler.MaxAutomaticRedirections" /> properties.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the if the handler supports configuration settings for the <see cref="P:System.Net.Http.HttpClientHandler.AllowAutoRedirect" /> and <see cref="P:System.Net.Http.HttpClientHandler.MaxAutomaticRedirections" /> properties; otherwise false. The default value is true.</returns>
- </member>
- <member name="P:System.Net.Http.HttpClientHandler.UseCookies">
- <summary>Gets or sets a value that indicates whether the handler uses the <see cref="P:System.Net.Http.HttpClientHandler.CookieContainer" /> property to store server cookies and uses these cookies when sending requests.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the if the handler supports uses the <see cref="P:System.Net.Http.HttpClientHandler.CookieContainer" /> property to store server cookies and uses these cookies when sending requests; otherwise false. The default value is true.</returns>
- </member>
- <member name="P:System.Net.Http.HttpClientHandler.UseDefaultCredentials">
- <summary>Gets or sets a value that controls whether default credentials are sent with requests by the handler.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the default credentials are used; otherwise false. The default value is false.</returns>
- </member>
- <member name="P:System.Net.Http.HttpClientHandler.UseProxy">
- <summary>Gets or sets a value that indicates whether the handler uses a proxy for requests. </summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the handler should use a proxy for requests; otherwise false. The default value is true.</returns>
- </member>
- <member name="T:System.Net.Http.HttpCompletionOption">
- <summary>Indicates if <see cref="T:System.Net.Http.HttpClient" /> operations should be considered completed either as soon as a response is available, or after reading the entire response message including the content. </summary>
- </member>
- <member name="F:System.Net.Http.HttpCompletionOption.ResponseContentRead">
- <summary>The operation should complete after reading the entire response including the content.</summary>
- </member>
- <member name="F:System.Net.Http.HttpCompletionOption.ResponseHeadersRead">
- <summary>The operation should complete as soon as a response is available and headers are read. The content is not read yet. </summary>
- </member>
- <member name="T:System.Net.Http.HttpContent">
- <summary>A base class representing an HTTP entity body and content headers.</summary>
- </member>
- <member name="M:System.Net.Http.HttpContent.#ctor">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.HttpContent" /> class.</summary>
- </member>
- <member name="M:System.Net.Http.HttpContent.CopyToAsync(System.IO.Stream)">
- <summary>Write the HTTP content to a stream as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task" />.The task object representing the asynchronous operation.</returns>
- <param name="stream">The target stream.</param>
- </member>
- <member name="M:System.Net.Http.HttpContent.CopyToAsync(System.IO.Stream,System.Net.TransportContext)">
- <summary>Write the HTTP content to a stream as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task" />.The task object representing the asynchronous operation.</returns>
- <param name="stream">The target stream.</param>
- <param name="context">Information about the transport (channel binding token, for example). This parameter may be null.</param>
- </member>
- <member name="M:System.Net.Http.HttpContent.CreateContentReadStreamAsync">
- <summary>Write the HTTP content to a memory stream as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- </member>
- <member name="M:System.Net.Http.HttpContent.Dispose">
- <summary>Releases the unmanaged resources and disposes of the managed resources used by the <see cref="T:System.Net.Http.HttpContent" />.</summary>
- </member>
- <member name="M:System.Net.Http.HttpContent.Dispose(System.Boolean)">
- <summary>Releases the unmanaged resources used by the <see cref="T:System.Net.Http.HttpContent" /> and optionally disposes of the managed resources.</summary>
- <param name="disposing">true to release both managed and unmanaged resources; false to releases only unmanaged resources.</param>
- </member>
- <member name="P:System.Net.Http.HttpContent.Headers">
- <summary>Gets the HTTP content headers as defined in RFC 2616.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.HttpContentHeaders" />.The content headers as defined in RFC 2616.</returns>
- </member>
- <member name="M:System.Net.Http.HttpContent.LoadIntoBufferAsync">
- <summary>Serialize the HTTP content to a memory buffer as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task" />.The task object representing the asynchronous operation.</returns>
- </member>
- <member name="M:System.Net.Http.HttpContent.LoadIntoBufferAsync(System.Int64)">
- <summary>Serialize the HTTP content to a memory buffer as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task" />.The task object representing the asynchronous operation.</returns>
- <param name="maxBufferSize">The maximum size, in bytes, of the buffer to use.</param>
- </member>
- <member name="M:System.Net.Http.HttpContent.ReadAsByteArrayAsync">
- <summary>Write the HTTP content to a byte array as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- </member>
- <member name="M:System.Net.Http.HttpContent.ReadAsStreamAsync">
- <summary>Write the HTTP content to a stream as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- </member>
- <member name="M:System.Net.Http.HttpContent.ReadAsStringAsync">
- <summary>Write the HTTP content to a string as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- </member>
- <member name="M:System.Net.Http.HttpContent.SerializeToStreamAsync(System.IO.Stream,System.Net.TransportContext)">
- <summary>Serialize the HTTP content to a stream as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task" />.The task object representing the asynchronous operation.</returns>
- <param name="stream">The target stream.</param>
- <param name="context">Information about the transport (channel binding token, for example). This parameter may be null.</param>
- </member>
- <member name="M:System.Net.Http.HttpContent.TryComputeLength(System.Int64@)">
- <summary>Determines whether the HTTP content has a valid length in bytes.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if <paramref name="length" /> is a valid length; otherwise, false.</returns>
- <param name="length">The length in bytes of the HHTP content.</param>
- </member>
- <member name="T:System.Net.Http.HttpMessageHandler">
- <summary>A base type for HTTP message handlers.</summary>
- </member>
- <member name="M:System.Net.Http.HttpMessageHandler.#ctor">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.HttpMessageHandler" /> class.</summary>
- </member>
- <member name="M:System.Net.Http.HttpMessageHandler.Dispose">
- <summary>Releases the unmanaged resources and disposes of the managed resources used by the <see cref="T:System.Net.Http.HttpMessageHandler" />.</summary>
- </member>
- <member name="M:System.Net.Http.HttpMessageHandler.Dispose(System.Boolean)">
- <summary>Releases the unmanaged resources used by the <see cref="T:System.Net.Http.HttpMessageHandler" /> and optionally disposes of the managed resources.</summary>
- <param name="disposing">true to release both managed and unmanaged resources; false to releases only unmanaged resources.</param>
- </member>
- <member name="M:System.Net.Http.HttpMessageHandler.SendAsync(System.Net.Http.HttpRequestMessage,System.Threading.CancellationToken)">
- <summary>Send an HTTP request as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- <param name="request">The HTTP request message to send.</param>
- <param name="cancellationToken">The cancellation token to cancel operation.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="request" /> was null.</exception>
- </member>
- <member name="T:System.Net.Http.HttpMessageInvoker">
- <summary>The base type for <see cref="T:System.Net.Http.HttpClient" /> and other message originators.</summary>
- </member>
- <member name="M:System.Net.Http.HttpMessageInvoker.#ctor(System.Net.Http.HttpMessageHandler)">
- <summary>Initializes an instance of a <see cref="T:System.Net.Http.HttpMessageInvoker" /> class with a specific <see cref="T:System.Net.Http.HttpMessageHandler" />.</summary>
- <param name="handler">The <see cref="T:System.Net.Http.HttpMessageHandler" /> responsible for processing the HTTP response messages.</param>
- </member>
- <member name="M:System.Net.Http.HttpMessageInvoker.#ctor(System.Net.Http.HttpMessageHandler,System.Boolean)">
- <summary>Initializes an instance of a <see cref="T:System.Net.Http.HttpMessageInvoker" /> class with a specific <see cref="T:System.Net.Http.HttpMessageHandler" />.</summary>
- <param name="handler">The <see cref="T:System.Net.Http.HttpMessageHandler" /> responsible for processing the HTTP response messages.</param>
- <param name="disposeHandler">true if the inner handler should be disposed of by Dispose(),false if you intend to reuse the inner handler.</param>
- </member>
- <member name="M:System.Net.Http.HttpMessageInvoker.Dispose">
- <summary>Releases the unmanaged resources and disposes of the managed resources used by the <see cref="T:System.Net.Http.HttpMessageInvoker" />.</summary>
- </member>
- <member name="M:System.Net.Http.HttpMessageInvoker.Dispose(System.Boolean)">
- <summary>Releases the unmanaged resources used by the <see cref="T:System.Net.Http.HttpMessageInvoker" /> and optionally disposes of the managed resources.</summary>
- <param name="disposing">true to release both managed and unmanaged resources; false to releases only unmanaged resources.</param>
- </member>
- <member name="M:System.Net.Http.HttpMessageInvoker.SendAsync(System.Net.Http.HttpRequestMessage,System.Threading.CancellationToken)">
- <summary>Send an HTTP request as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- <param name="request">The HTTP request message to send.</param>
- <param name="cancellationToken">The cancellation token to cancel operation.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="request" /> was null.</exception>
- </member>
- <member name="T:System.Net.Http.HttpMethod">
- <summary>A helper class for retrieving and comparing standard HTTP methods.</summary>
- </member>
- <member name="M:System.Net.Http.HttpMethod.#ctor(System.String)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.HttpMethod" /> class with a specific HTTP method.</summary>
- <param name="method">The HTTP method.</param>
- </member>
- <member name="P:System.Net.Http.HttpMethod.Delete">
- <summary>Represents an HTTP DELETE protocol method.</summary>
- <returns>Returns <see cref="T:System.Net.Http.HttpMethod" />.</returns>
- </member>
- <member name="M:System.Net.Http.HttpMethod.Equals(System.Net.Http.HttpMethod)">
- <summary>Determines whether the specified <see cref="T:System.Net.Http.HttpMethod" /> is equal to the current <see cref="T:System.Object" />.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the specified object is equal to the current object; otherwise, false.</returns>
- <param name="other">The HTTP method to compare with the current object.</param>
- </member>
- <member name="M:System.Net.Http.HttpMethod.Equals(System.Object)">
- <summary>Determines whether the specified <see cref="T:System.Object" /> is equal to the current <see cref="T:System.Object" />.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the specified object is equal to the current object; otherwise, false.</returns>
- <param name="obj">The object to compare with the current object.</param>
- </member>
- <member name="P:System.Net.Http.HttpMethod.Get">
- <summary>Represents an HTTP GET protocol method.</summary>
- <returns>Returns <see cref="T:System.Net.Http.HttpMethod" />.</returns>
- </member>
- <member name="M:System.Net.Http.HttpMethod.GetHashCode">
- <summary>Serves as a hash function for this type.</summary>
- <returns>Returns <see cref="T:System.Int32" />.A hash code for the current <see cref="T:System.Object" />.</returns>
- </member>
- <member name="P:System.Net.Http.HttpMethod.Head">
- <summary>Represents an HTTP HEAD protocol method. The HEAD method is identical to GET except that the server only returns message-headers in the response, without a message-body.</summary>
- <returns>Returns <see cref="T:System.Net.Http.HttpMethod" />.</returns>
- </member>
- <member name="P:System.Net.Http.HttpMethod.Method">
- <summary>An HTTP method. </summary>
- <returns>Returns <see cref="T:System.String" />.An HTTP method represented as a <see cref="T:System.String" />.</returns>
- </member>
- <member name="M:System.Net.Http.HttpMethod.op_Equality(System.Net.Http.HttpMethod,System.Net.Http.HttpMethod)">
- <summary>The equality operator for comparing two <see cref="T:System.Net.Http.HttpMethod" /> objects.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the specified <paramref name="left" /> and <paramref name="right" /> parameters are equal; otherwise, false.</returns>
- <param name="left">The left <see cref="T:System.Net.Http.HttpMethod" /> to an equality operator.</param>
- <param name="right">The right <see cref="T:System.Net.Http.HttpMethod" /> to an equality operator.</param>
- </member>
- <member name="M:System.Net.Http.HttpMethod.op_Inequality(System.Net.Http.HttpMethod,System.Net.Http.HttpMethod)">
- <summary>The inequality operator for comparing two <see cref="T:System.Net.Http.HttpMethod" /> objects.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the specified <paramref name="left" /> and <paramref name="right" /> parameters are inequal; otherwise, false.</returns>
- <param name="left">The left <see cref="T:System.Net.Http.HttpMethod" /> to an inequality operator.</param>
- <param name="right">The right <see cref="T:System.Net.Http.HttpMethod" /> to an inequality operator.</param>
- </member>
- <member name="P:System.Net.Http.HttpMethod.Options">
- <summary>Represents an HTTP OPTIONS protocol method.</summary>
- <returns>Returns <see cref="T:System.Net.Http.HttpMethod" />.</returns>
- </member>
- <member name="P:System.Net.Http.HttpMethod.Post">
- <summary>Represents an HTTP POST protocol method that is used to post a new entity as an addition to a URI.</summary>
- <returns>Returns <see cref="T:System.Net.Http.HttpMethod" />.</returns>
- </member>
- <member name="P:System.Net.Http.HttpMethod.Put">
- <summary>Represents an HTTP PUT protocol method that is used to replace an entity identified by a URI.</summary>
- <returns>Returns <see cref="T:System.Net.Http.HttpMethod" />.</returns>
- </member>
- <member name="M:System.Net.Http.HttpMethod.ToString">
- <summary>Returns a string that represents the current object.</summary>
- <returns>Returns <see cref="T:System.String" />.A string representing the current object.</returns>
- </member>
- <member name="P:System.Net.Http.HttpMethod.Trace">
- <summary>Represents an HTTP TRACE protocol method.</summary>
- <returns>Returns <see cref="T:System.Net.Http.HttpMethod" />.</returns>
- </member>
- <member name="T:System.Net.Http.HttpRequestException">
- <summary>A base class for exceptions thrown by the <see cref="T:System.Net.Http.HttpClient" /> and <see cref="T:System.Net.Http.HttpMessageHandler" /> classes.</summary>
- </member>
- <member name="M:System.Net.Http.HttpRequestException.#ctor">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.HttpRequestException" /> class.</summary>
- </member>
- <member name="M:System.Net.Http.HttpRequestException.#ctor(System.String)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.HttpRequestException" /> class with a specific message that describes the current exception.</summary>
- <param name="message">A message that describes the current exception.</param>
- </member>
- <member name="M:System.Net.Http.HttpRequestException.#ctor(System.String,System.Exception)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.HttpRequestException" /> class with a specific message that describes the current exception and an inner exception.</summary>
- <param name="message">A message that describes the current exception.</param>
- <param name="inner">The inner exception.</param>
- </member>
- <member name="T:System.Net.Http.HttpRequestMessage">
- <summary>Represents a HTTP request message.</summary>
- </member>
- <member name="M:System.Net.Http.HttpRequestMessage.#ctor">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.HttpRequestMessage" /> class.</summary>
- </member>
- <member name="M:System.Net.Http.HttpRequestMessage.#ctor(System.Net.Http.HttpMethod,System.String)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.HttpRequestMessage" /> class with an HTTP method and a request <see cref="T:System.Uri" />.</summary>
- <param name="method">The HTTP method.</param>
- <param name="requestUri">A string that represents the request <see cref="T:System.Uri" />.</param>
- </member>
- <member name="M:System.Net.Http.HttpRequestMessage.#ctor(System.Net.Http.HttpMethod,System.Uri)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.HttpRequestMessage" /> class with an HTTP method and a request <see cref="T:System.Uri" />.</summary>
- <param name="method">The HTTP method.</param>
- <param name="requestUri">The <see cref="T:System.Uri" /> to request.</param>
- </member>
- <member name="P:System.Net.Http.HttpRequestMessage.Content">
- <summary>Gets or sets the contents of the HTTP message. </summary>
- <returns>Returns <see cref="T:System.Net.Http.HttpContent" />.The content of a message</returns>
- </member>
- <member name="M:System.Net.Http.HttpRequestMessage.Dispose">
- <summary>Releases the unmanaged resources and disposes of the managed resources used by the <see cref="T:System.Net.Http.HttpRequestMessage" />.</summary>
- </member>
- <member name="M:System.Net.Http.HttpRequestMessage.Dispose(System.Boolean)">
- <summary>Releases the unmanaged resources used by the <see cref="T:System.Net.Http.HttpRequestMessage" /> and optionally disposes of the managed resources.</summary>
- <param name="disposing">true to release both managed and unmanaged resources; false to releases only unmanaged resources.</param>
- </member>
- <member name="P:System.Net.Http.HttpRequestMessage.Headers">
- <summary>Gets the collection of HTTP request headers.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.HttpRequestHeaders" />.The collection of HTTP request headers.</returns>
- </member>
- <member name="P:System.Net.Http.HttpRequestMessage.Method">
- <summary>Gets or sets the HTTP method used by the HTTP request message.</summary>
- <returns>Returns <see cref="T:System.Net.Http.HttpMethod" />.The HTTP method used by the request message. The default is the GET method.</returns>
- </member>
- <member name="P:System.Net.Http.HttpRequestMessage.Properties">
- <summary>Gets a set of properties for the HTTP request.</summary>
- <returns>Returns <see cref="T:System.Collections.Generic.IDictionary`2" />.</returns>
- </member>
- <member name="P:System.Net.Http.HttpRequestMessage.RequestUri">
- <summary>Gets or sets the <see cref="T:System.Uri" /> used for the HTTP request.</summary>
- <returns>Returns <see cref="T:System.Uri" />.The <see cref="T:System.Uri" /> used for the HTTP request.</returns>
- </member>
- <member name="M:System.Net.Http.HttpRequestMessage.ToString">
- <summary>Returns a string that represents the current object.</summary>
- <returns>Returns <see cref="T:System.String" />.A string representation of the current object.</returns>
- </member>
- <member name="P:System.Net.Http.HttpRequestMessage.Version">
- <summary>Gets or sets the HTTP message version.</summary>
- <returns>Returns <see cref="T:System.Version" />.The HTTP message version. The default is 1.1.</returns>
- </member>
- <member name="T:System.Net.Http.HttpResponseMessage">
- <summary>Represents a HTTP response message.</summary>
- </member>
- <member name="M:System.Net.Http.HttpResponseMessage.#ctor">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.HttpResponseMessage" /> class.</summary>
- </member>
- <member name="M:System.Net.Http.HttpResponseMessage.#ctor(System.Net.HttpStatusCode)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.HttpResponseMessage" /> class with a specific <see cref="P:System.Net.Http.HttpResponseMessage.StatusCode" />.</summary>
- <param name="statusCode">The status code of the HTTP response.</param>
- </member>
- <member name="P:System.Net.Http.HttpResponseMessage.Content">
- <summary>Gets or sets the content of a HTTP response message. </summary>
- <returns>Returns <see cref="T:System.Net.Http.HttpContent" />.The content of the HTTP response message.</returns>
- </member>
- <member name="M:System.Net.Http.HttpResponseMessage.Dispose">
- <summary>Releases the unmanaged resources and disposes of unmanaged resources used by the <see cref="T:System.Net.Http.HttpResponseMessage" />.</summary>
- </member>
- <member name="M:System.Net.Http.HttpResponseMessage.Dispose(System.Boolean)">
- <summary>Releases the unmanaged resources used by the <see cref="T:System.Net.Http.HttpResponseMessage" /> and optionally disposes of the managed resources.</summary>
- <param name="disposing">true to release both managed and unmanaged resources; false to releases only unmanaged resources.</param>
- </member>
- <member name="M:System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode">
- <summary>Throws an exception if the <see cref="P:System.Net.Http.HttpResponseMessage.IsSuccessStatusCode" /> property for the HTTP response is false.</summary>
- <returns>Returns <see cref="T:System.Net.Http.HttpResponseMessage" />.The HTTP response message if the call is successful.</returns>
- </member>
- <member name="P:System.Net.Http.HttpResponseMessage.Headers">
- <summary>Gets the collection of HTTP response headers. </summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.HttpResponseHeaders" />.The collection of HTTP response headers.</returns>
- </member>
- <member name="P:System.Net.Http.HttpResponseMessage.IsSuccessStatusCode">
- <summary>Gets a value that indicates if the HTTP response was successful.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.A value that indicates if the HTTP response was successful. true if <see cref="P:System.Net.Http.HttpResponseMessage.StatusCode" /> was in the range 200-299; otherwise false.</returns>
- </member>
- <member name="P:System.Net.Http.HttpResponseMessage.ReasonPhrase">
- <summary>Gets or sets the reason phrase which typically is sent by servers together with the status code. </summary>
- <returns>Returns <see cref="T:System.String" />.The reason phrase sent by the server.</returns>
- </member>
- <member name="P:System.Net.Http.HttpResponseMessage.RequestMessage">
- <summary>Gets or sets the request message which led to this response message.</summary>
- <returns>Returns <see cref="T:System.Net.Http.HttpRequestMessage" />.The request message which led to this response message.</returns>
- </member>
- <member name="P:System.Net.Http.HttpResponseMessage.StatusCode">
- <summary>Gets or sets the status code of the HTTP response.</summary>
- <returns>Returns <see cref="T:System.Net.HttpStatusCode" />.The status code of the HTTP response.</returns>
- </member>
- <member name="M:System.Net.Http.HttpResponseMessage.ToString">
- <summary>Returns a string that represents the current object.</summary>
- <returns>Returns <see cref="T:System.String" />.A string representation of the current object.</returns>
- </member>
- <member name="P:System.Net.Http.HttpResponseMessage.Version">
- <summary>Gets or sets the HTTP message version. </summary>
- <returns>Returns <see cref="T:System.Version" />.The HTTP message version. The default is 1.1. </returns>
- </member>
- <member name="T:System.Net.Http.MessageProcessingHandler">
- <summary>A base type for handlers which only do some small processing of request and/or response messages.</summary>
- </member>
- <member name="M:System.Net.Http.MessageProcessingHandler.#ctor">
- <summary>Creates an instance of a <see cref="T:System.Net.Http.MessageProcessingHandler" /> class.</summary>
- </member>
- <member name="M:System.Net.Http.MessageProcessingHandler.#ctor(System.Net.Http.HttpMessageHandler)">
- <summary>Creates an instance of a <see cref="T:System.Net.Http.MessageProcessingHandler" /> class with a specific inner handler.</summary>
- <param name="innerHandler">The inner handler which is responsible for processing the HTTP response messages.</param>
- </member>
- <member name="M:System.Net.Http.MessageProcessingHandler.ProcessRequest(System.Net.Http.HttpRequestMessage,System.Threading.CancellationToken)">
- <summary>Processes an HTTP request message.</summary>
- <returns>Returns <see cref="T:System.Net.Http.HttpRequestMessage" />.The HTTP request message that was processed.</returns>
- <param name="request">The HTTP request message to process.</param>
- <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
- </member>
- <member name="M:System.Net.Http.MessageProcessingHandler.ProcessResponse(System.Net.Http.HttpResponseMessage,System.Threading.CancellationToken)">
- <summary>Processes an HTTP response message.</summary>
- <returns>Returns <see cref="T:System.Net.Http.HttpResponseMessage" />.The HTTP response message that was processed.</returns>
- <param name="response">The HTTP response message to process.</param>
- <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
- </member>
- <member name="M:System.Net.Http.MessageProcessingHandler.SendAsync(System.Net.Http.HttpRequestMessage,System.Threading.CancellationToken)">
- <summary>Sends an HTTP request to the inner handler to send to the server as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- <param name="request">The HTTP request message to send to the server.</param>
- <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="request" /> was null.</exception>
- </member>
- <member name="T:System.Net.Http.MultipartContent">
- <summary>Provides a collection of <see cref="T:System.Net.Http.HttpContent" /> objects that get serialized using the multipart/* content type specification.</summary>
- </member>
- <member name="M:System.Net.Http.MultipartContent.#ctor">
- <summary>Creates a new instance of the <see cref="T:System.Net.Http.MultipartContent" /> class.</summary>
- </member>
- <member name="M:System.Net.Http.MultipartContent.#ctor(System.String)">
- <summary>Creates a new instance of the <see cref="T:System.Net.Http.MultipartContent" /> class.</summary>
- <param name="subtype">The subtype of the multipart content.</param>
- <exception cref="T:System.ArgumentException">The <paramref name="subtype" /> was null or contains only white space characters.</exception>
- </member>
- <member name="M:System.Net.Http.MultipartContent.#ctor(System.String,System.String)">
- <summary>Creates a new instance of the <see cref="T:System.Net.Http.MultipartContent" /> class.</summary>
- <param name="subtype">The subtype of the multipart content.</param>
- <param name="boundary">The boundary string for the multipart content.</param>
- <exception cref="T:System.ArgumentException">The <paramref name="subtype" /> was null or an empty string.The <paramref name="boundary" /> was null or contains only white space characters.-or-The <paramref name="boundary" /> ends with a space character.</exception>
- <exception cref="T:System.OutOfRangeException">The length of the <paramref name="boundary" /> was greater than 70.</exception>
- </member>
- <member name="M:System.Net.Http.MultipartContent.Add(System.Net.Http.HttpContent)">
- <summary>Add multipart HTTP content to a collection of <see cref="T:System.Net.Http.HttpContent" /> objects that get serialized using the multipart/* content type specification.</summary>
- <param name="content">The HTTP content to add to the collection.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="content" /> was null.</exception>
- </member>
- <member name="M:System.Net.Http.MultipartContent.Dispose(System.Boolean)">
- <summary>Releases the unmanaged resources used by the <see cref="T:System.Net.Http.MultipartContent" /> and optionally disposes of the managed resources.</summary>
- <param name="disposing">true to release both managed and unmanaged resources; false to releases only unmanaged resources.</param>
- </member>
- <member name="M:System.Net.Http.MultipartContent.GetEnumerator">
- <summary>Returns an enumerator that iterates through the collection of <see cref="T:System.Net.Http.HttpContent" /> objects that get serialized using the multipart/* content type specification..</summary>
- <returns>Returns <see cref="T:System.Collections.Generic.IEnumerator`1" />.An object that can be used to iterate through the collection.</returns>
- </member>
- <member name="M:System.Net.Http.MultipartContent.SerializeToStreamAsync(System.IO.Stream,System.Net.TransportContext)">
- <summary>Serialize the multipart HTTP content to a stream as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task" />.The task object representing the asynchronous operation.</returns>
- <param name="stream">The target stream.</param>
- <param name="context">Information about the transport (channel binding token, for example). This parameter may be null.</param>
- </member>
- <member name="M:System.Net.Http.MultipartContent.System#Collections#IEnumerable#GetEnumerator">
- <summary>The explicit implementation of the <see cref="M:System.Net.Http.MultipartContent.GetEnumerator" /> method.</summary>
- <returns>Returns <see cref="T:System.Collections.IEnumerator" />.An object that can be used to iterate through the collection.</returns>
- </member>
- <member name="M:System.Net.Http.MultipartContent.TryComputeLength(System.Int64@)">
- <summary>Determines whether the HTTP multipart content has a valid length in bytes.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if <paramref name="length" /> is a valid length; otherwise, false.</returns>
- <param name="length">The length in bytes of the HHTP content.</param>
- </member>
- <member name="T:System.Net.Http.MultipartFormDataContent">
- <summary>Provides a container for content encoded using multipart/form-data MIME type.</summary>
- </member>
- <member name="M:System.Net.Http.MultipartFormDataContent.#ctor">
- <summary>Creates a new instance of the <see cref="T:System.Net.Http.MultipartFormDataContent" /> class.</summary>
- </member>
- <member name="M:System.Net.Http.MultipartFormDataContent.#ctor(System.String)">
- <summary>Creates a new instance of the <see cref="T:System.Net.Http.MultipartFormDataContent" /> class.</summary>
- <param name="boundary">The boundary string for the multipart form data content.</param>
- <exception cref="T:System.ArgumentException">The <paramref name="boundary" /> was null or contains only white space characters.-or-The <paramref name="boundary" /> ends with a space character.</exception>
- <exception cref="T:System.OutOfRangeException">The length of the <paramref name="boundary" /> was greater than 70.</exception>
- </member>
- <member name="M:System.Net.Http.MultipartFormDataContent.Add(System.Net.Http.HttpContent)">
- <summary>Add HTTP content to a collection of <see cref="T:System.Net.Http.HttpContent" /> objects that get serialized to multipart/form-data MIME type.</summary>
- <param name="content">The HTTP content to add to the collection.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="content" /> was null.</exception>
- </member>
- <member name="M:System.Net.Http.MultipartFormDataContent.Add(System.Net.Http.HttpContent,System.String)">
- <summary>Add HTTP content to a collection of <see cref="T:System.Net.Http.HttpContent" /> objects that get serialized to multipart/form-data MIME type.</summary>
- <param name="content">The HTTP content to add to the collection.</param>
- <param name="name">The name for the HTTP content to add.</param>
- <exception cref="T:System.ArgumentException">The <paramref name="name" /> was null or contains only white space characters.</exception>
- <exception cref="T:System.ArgumentNullException">The <paramref name="content" /> was null.</exception>
- </member>
- <member name="M:System.Net.Http.MultipartFormDataContent.Add(System.Net.Http.HttpContent,System.String,System.String)">
- <summary>Add HTTP content to a collection of <see cref="T:System.Net.Http.HttpContent" /> objects that get serialized to multipart/form-data MIME type.</summary>
- <param name="content">The HTTP content to add to the collection.</param>
- <param name="name">The name for the HTTP content to add.</param>
- <param name="fileName">The file name for the HTTP content to add to the collection.</param>
- <exception cref="T:System.ArgumentException">The <paramref name="name" /> was null or contains only white space characters.-or-The <paramref name="fileName" /> was null or contains only white space characters.</exception>
- <exception cref="T:System.ArgumentNullException">The <paramref name="content" /> was null.</exception>
- </member>
- <member name="T:System.Net.Http.StreamContent">
- <summary>Provides HTTP content based on a stream.</summary>
- </member>
- <member name="M:System.Net.Http.StreamContent.#ctor(System.IO.Stream)">
- <summary>Creates a new instance of the <see cref="T:System.Net.Http.StreamContent" /> class.</summary>
- <param name="content">The content used to initialize the <see cref="T:System.Net.Http.StreamContent" />.</param>
- </member>
- <member name="M:System.Net.Http.StreamContent.#ctor(System.IO.Stream,System.Int32)">
- <summary>Creates a new instance of the <see cref="T:System.Net.Http.StreamContent" /> class.</summary>
- <param name="content">The content used to initialize the <see cref="T:System.Net.Http.StreamContent" />.</param>
- <param name="bufferSize">The size, in bytes, of the buffer for the <see cref="T:System.Net.Http.StreamContent" />.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="content" /> was null.</exception>
- <exception cref="T:System.OutOfRangeException">The <paramref name="bufferSize" /> was less than or equal to zero. </exception>
- </member>
- <member name="M:System.Net.Http.StreamContent.CreateContentReadStreamAsync">
- <summary>Write the HTTP stream content to a memory stream as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />.The task object representing the asynchronous operation.</returns>
- </member>
- <member name="M:System.Net.Http.StreamContent.Dispose(System.Boolean)">
- <summary>Releases the unmanaged resources used by the <see cref="T:System.Net.Http.StreamContent" /> and optionally disposes of the managed resources.</summary>
- <param name="disposing">true to release both managed and unmanaged resources; false to releases only unmanaged resources.</param>
- </member>
- <member name="M:System.Net.Http.StreamContent.SerializeToStreamAsync(System.IO.Stream,System.Net.TransportContext)">
- <summary>Serialize the HTTP content to a stream as an asynchronous operation.</summary>
- <returns>Returns <see cref="T:System.Threading.Tasks.Task" />.The task object representing the asynchronous operation.</returns>
- <param name="stream">The target stream.</param>
- <param name="context">Information about the transport (channel binding token, for example). This parameter may be null.</param>
- </member>
- <member name="M:System.Net.Http.StreamContent.TryComputeLength(System.Int64@)">
- <summary>Determines whether the stream content has a valid length in bytes.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if <paramref name="length" /> is a valid length; otherwise, false.</returns>
- <param name="length">The length in bytes of the stream content.</param>
- </member>
- <member name="T:System.Net.Http.StringContent">
- <summary>Provides HTTP content based on a string.</summary>
- </member>
- <member name="M:System.Net.Http.StringContent.#ctor(System.String)">
- <summary>Creates a new instance of the <see cref="T:System.Net.Http.StringContent" /> class.</summary>
- <param name="content">The content used to initialize the <see cref="T:System.Net.Http.StringContent" />.</param>
- </member>
- <member name="M:System.Net.Http.StringContent.#ctor(System.String,System.Text.Encoding)">
- <summary>Creates a new instance of the <see cref="T:System.Net.Http.StringContent" /> class.</summary>
- <param name="content">The content used to initialize the <see cref="T:System.Net.Http.StringContent" />.</param>
- <param name="encoding">The encoding to use for the content.</param>
- </member>
- <member name="M:System.Net.Http.StringContent.#ctor(System.String,System.Text.Encoding,System.String)">
- <summary>Creates a new instance of the <see cref="T:System.Net.Http.StringContent" /> class.</summary>
- <param name="content">The content used to initialize the <see cref="T:System.Net.Http.StringContent" />.</param>
- <param name="encoding">The encoding to use for the content.</param>
- <param name="mediaType">The media type to use for the content.</param>
- </member>
- <member name="T:System.Net.Http.Headers.AuthenticationHeaderValue">
- <summary>Represents authentication information in Authorization, ProxyAuthorization, WWW-Authenticate, and Proxy-Authenticate header values.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.AuthenticationHeaderValue.#ctor(System.String)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.AuthenticationHeaderValue" /> class.</summary>
- <param name="scheme">The scheme to use for authorization.</param>
- </member>
- <member name="M:System.Net.Http.Headers.AuthenticationHeaderValue.#ctor(System.String,System.String)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.AuthenticationHeaderValue" /> class.</summary>
- <param name="scheme">The scheme to use for authorization.</param>
- <param name="parameter">The credentials containing the authentication information of the user agent for the resource being requested.</param>
- </member>
- <member name="M:System.Net.Http.Headers.AuthenticationHeaderValue.Equals(System.Object)">
- <summary>Determines whether the specified <see cref="T:System.Object" /> is equal to the current <see cref="T:System.Net.Http.Headers.AuthenticationHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the specified <see cref="T:System.Object" /> is equal to the current object; otherwise, false.</returns>
- <param name="obj">The object to compare with the current object. </param>
- </member>
- <member name="M:System.Net.Http.Headers.AuthenticationHeaderValue.GetHashCode">
- <summary>Serves as a hash function for an <see cref="T:System.Net.Http.Headers.AuthenticationHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.Int32" />.A hash code for the current object.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.AuthenticationHeaderValue.Parameter">
- <summary>Gets the credentials containing the authentication information of the user agent for the resource being requested.</summary>
- <returns>Returns <see cref="T:System.String" />.The credentials containing the authentication information.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.AuthenticationHeaderValue.Parse(System.String)">
- <summary>Converts a string to an <see cref="T:System.Net.Http.Headers.AuthenticationHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.AuthenticationHeaderValue" />.An <see cref="T:System.Net.Http.Headers.AuthenticationHeaderValue" /> instance.</returns>
- <param name="input">A string that represents authentication header value information.</param>
- <exception cref="T:System.ArgumentNullException">
- <paramref name="input" /> is a null reference.</exception>
- <exception cref="T:System.FormatException">
- <paramref name="input" /> is not valid authentication header value information.</exception>
- </member>
- <member name="P:System.Net.Http.Headers.AuthenticationHeaderValue.Scheme">
- <summary>Gets the scheme to use for authorization.</summary>
- <returns>Returns <see cref="T:System.String" />.The scheme to use for authorization.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.AuthenticationHeaderValue.System#ICloneable#Clone">
- <summary>Creates a new object that is a copy of the current <see cref="T:System.Net.Http.Headers.AuthenticationHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Object" />.A copy of the current instance.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.AuthenticationHeaderValue.ToString">
- <summary>Returns a string that represents the current <see cref="T:System.Net.Http.Headers.AuthenticationHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.String" />.A string that represents the current object.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.AuthenticationHeaderValue.TryParse(System.String,System.Net.Http.Headers.AuthenticationHeaderValue@)">
- <summary>Determines whether a string is valid <see cref="T:System.Net.Http.Headers.AuthenticationHeaderValue" /> information.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if <paramref name="input" /> is valid <see cref="T:System.Net.Http.Headers.AuthenticationHeaderValue" /> information; otherwise, false.</returns>
- <param name="input">The string to validate.</param>
- <param name="parsedValue">The <see cref="T:System.Net.Http.Headers.AuthenticationHeaderValue" /> version of the string.</param>
- </member>
- <member name="T:System.Net.Http.Headers.CacheControlHeaderValue">
- <summary>Represents the value of the Cache-Control header.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.CacheControlHeaderValue.#ctor">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.CacheControlHeaderValue" /> class.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.CacheControlHeaderValue.Equals(System.Object)">
- <summary>Determines whether the specified <see cref="T:System.Object" /> is equal to the current <see cref="T:System.Net.Http.Headers.CacheControlHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the specified <see cref="T:System.Object" /> is equal to the current object; otherwise, false.</returns>
- <param name="obj">The object to compare with the current object.</param>
- </member>
- <member name="P:System.Net.Http.Headers.CacheControlHeaderValue.Extensions">
- <summary>Cache-extension tokens, each with an optional assigned value.</summary>
- <returns>Returns <see cref="T:System.Collections.Generic.ICollection`1" />.A collection of cache-extension tokens each with an optional assigned value.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.CacheControlHeaderValue.GetHashCode">
- <summary>Serves as a hash function for a <see cref="T:System.Net.Http.Headers.CacheControlHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.Int32" />.A hash code for the current object.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.CacheControlHeaderValue.MaxAge">
- <summary>The maximum age, specified in seconds, that the HTTP client is willing to accept a response. </summary>
- <returns>Returns <see cref="T:System.TimeSpan" />.The time in seconds. </returns>
- </member>
- <member name="P:System.Net.Http.Headers.CacheControlHeaderValue.MaxStale">
- <summary>Whether an HTTP client is willing to accept a response that has exceeded its expiration time.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the HTTP client is willing to accept a response that has exceed the expiration time; otherwise, false.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.CacheControlHeaderValue.MaxStaleLimit">
- <summary>The maximum time, in seconds, an HTTP client is willing to accept a response that has exceeded its expiration time.</summary>
- <returns>Returns <see cref="T:System.TimeSpan" />.The time in seconds.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.CacheControlHeaderValue.MinFresh">
- <summary>The freshness lifetime, in seconds, that an HTTP client is willing to accept a response.</summary>
- <returns>Returns <see cref="T:System.TimeSpan" />.The time in seconds.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.CacheControlHeaderValue.MustRevalidate">
- <summary>Whether the origin server require revalidation of a cache entry on any subsequent use when the cache entry becomes stale.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the origin server requires revalidation of a cache entry on any subsequent use when the entry becomes stale; otherwise, false.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.CacheControlHeaderValue.NoCache">
- <summary>Whether an HTTP client is willing to accept a cached response.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the HTTP client is willing to accept a cached response; otherwise, false.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.CacheControlHeaderValue.NoCacheHeaders">
- <summary>A collection of fieldnames in the "no-cache" directive in a cache-control header field on an HTTP response.</summary>
- <returns>Returns <see cref="T:System.Collections.Generic.ICollection`1" />.A collection of fieldnames.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.CacheControlHeaderValue.NoStore">
- <summary>Whether a cache must not store any part of either the HTTP request mressage or any response.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if a cache must not store any part of either the HTTP request mressage or any response; otherwise, false.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.CacheControlHeaderValue.NoTransform">
- <summary>Whether a cache or proxy must not change any aspect of the entity-body.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if a cache or proxy must not change any aspect of the entity-body; otherwise, false.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.CacheControlHeaderValue.OnlyIfCached">
- <summary>Whether a cache should either respond using a cached entry that is consistent with the other constraints of the HTTP request, or respond with a 504 (Gateway Timeout) status.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if a cache should either respond using a cached entry that is consistent with the other constraints of the HTTP request, or respond with a 504 (Gateway Timeout) status; otherwise, false.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.CacheControlHeaderValue.Parse(System.String)">
- <summary>Converts a string to an <see cref="T:System.Net.Http.Headers.CacheControlHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.CacheControlHeaderValue" />.A <see cref="T:System.Net.Http.Headers.CacheControlHeaderValue" /> instance.</returns>
- <param name="input">A string that represents cache-control header value information.</param>
- <exception cref="T:System.ArgumentNullException">
- <paramref name="input" /> is a null reference.</exception>
- <exception cref="T:System.FormatException">
- <paramref name="input" /> is not valid cache-control header value information.</exception>
- </member>
- <member name="P:System.Net.Http.Headers.CacheControlHeaderValue.Private">
- <summary>Whether all or part of the HTTP response message is intended for a single user and must not be cached by a shared cache.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the HTTP response message is intended for a single user and must not be cached by a shared cache; otherwise, false.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.CacheControlHeaderValue.PrivateHeaders">
- <summary>A collection fieldnames in the "private" directive in a cache-control header field on an HTTP response.</summary>
- <returns>Returns <see cref="T:System.Collections.Generic.ICollection`1" />.A collection of fieldnames.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.CacheControlHeaderValue.ProxyRevalidate">
- <summary>Whether the origin server require revalidation of a cache entry on any subsequent use when the cache entry becomes stale for shared user agent caches.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the origin server requires revalidation of a cache entry on any subsequent use when the entry becomes stale for shared user agent caches; otherwise, false.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.CacheControlHeaderValue.Public">
- <summary>Whether an HTTP response may be cached by any cache, even if it would normally be non-cacheable or cacheable only within a non- shared cache.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the HTTP response may be cached by any cache, even if it would normally be non-cacheable or cacheable only within a non- shared cache; otherwise, false.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.CacheControlHeaderValue.SharedMaxAge">
- <summary>The shared maximum age, specified in seconds, in an HTTP response that overrides the "max-age" directive in a cache-control header or an Expires header for a shared cache.</summary>
- <returns>Returns <see cref="T:System.TimeSpan" />.The time in seconds.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.CacheControlHeaderValue.System#ICloneable#Clone">
- <summary>Creates a new object that is a copy of the current <see cref="T:System.Net.Http.Headers.CacheControlHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Object" />.A copy of the current instance.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.CacheControlHeaderValue.ToString">
- <summary>Returns a string that represents the current <see cref="T:System.Net.Http.Headers.CacheControlHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.String" />.A string that represents the current object.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.CacheControlHeaderValue.TryParse(System.String,System.Net.Http.Headers.CacheControlHeaderValue@)">
- <summary>Determines whether a string is valid <see cref="T:System.Net.Http.Headers.CacheControlHeaderValue" /> information.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if <paramref name="input" /> is valid <see cref="T:System.Net.Http.Headers.CacheControlHeaderValue" /> information; otherwise, false.</returns>
- <param name="input">The string to validate.</param>
- <param name="parsedValue">The <see cref="T:System.Net.Http.Headers.CacheControlHeaderValue" /> version of the string.</param>
- </member>
- <member name="T:System.Net.Http.Headers.ContentDispositionHeaderValue">
- <summary>Represents the value of the Content-Disposition header.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.ContentDispositionHeaderValue.#ctor(System.Net.Http.Headers.ContentDispositionHeaderValue)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.ContentDispositionHeaderValue" /> class.</summary>
- <param name="source">A <see cref="T:System.Net.Http.Headers.ContentDispositionHeaderValue" />. </param>
- </member>
- <member name="M:System.Net.Http.Headers.ContentDispositionHeaderValue.#ctor(System.String)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.ContentDispositionHeaderValue" /> class.</summary>
- <param name="dispositionType">A string that contains a <see cref="T:System.Net.Http.Headers.ContentDispositionHeaderValue" />.</param>
- </member>
- <member name="P:System.Net.Http.Headers.ContentDispositionHeaderValue.CreationDate">
- <summary>The date at which the file was created.</summary>
- <returns>Returns <see cref="T:System.DateTimeOffset" />.The file creation date.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.ContentDispositionHeaderValue.DispositionType">
- <summary>The disposition type for a content body part.</summary>
- <returns>Returns <see cref="T:System.String" />.The disposition type. </returns>
- </member>
- <member name="M:System.Net.Http.Headers.ContentDispositionHeaderValue.Equals(System.Object)">
- <summary>Determines whether the specified <see cref="T:System.Object" /> is equal to the current <see cref="T:System.Net.Http.Headers.ContentDispositionHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the specified <see cref="T:System.Object" /> is equal to the current object; otherwise, false.</returns>
- <param name="obj">The object to compare with the current object.</param>
- </member>
- <member name="P:System.Net.Http.Headers.ContentDispositionHeaderValue.FileName">
- <summary>A suggestion for how to construct a filename for storing the message payload to be used if the entity is detached and stored in a separate file.</summary>
- <returns>Returns <see cref="T:System.String" />.A suggested filename.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.ContentDispositionHeaderValue.FileNameStar">
- <summary>A suggestion for how to construct filenames for storing message payloads to be used if the entities are detached and stored in a separate files.</summary>
- <returns>Returns <see cref="T:System.String" />.A suggested filename of the form filename*.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.ContentDispositionHeaderValue.GetHashCode">
- <summary>Serves as a hash function for an <see cref="T:System.Net.Http.Headers.ContentDispositionHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.Int32" />.A hash code for the current object.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.ContentDispositionHeaderValue.ModificationDate">
- <summary>The date at which the file was last modified. </summary>
- <returns>Returns <see cref="T:System.DateTimeOffset" />.The file modification date.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.ContentDispositionHeaderValue.Name">
- <summary>The name for a content body part.</summary>
- <returns>Returns <see cref="T:System.String" />.The name for the content body part.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.ContentDispositionHeaderValue.Parameters">
- <summary>A set of parameters included the Content-Disposition header.</summary>
- <returns>Returns <see cref="T:System.Collections.Generic.ICollection`1" />.A collection of parameters. </returns>
- </member>
- <member name="M:System.Net.Http.Headers.ContentDispositionHeaderValue.Parse(System.String)">
- <summary>Converts a string to an <see cref="T:System.Net.Http.Headers.ContentDispositionHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.ContentDispositionHeaderValue" />.An <see cref="T:System.Net.Http.Headers.ContentDispositionHeaderValue" /> instance.</returns>
- <param name="input">A string that represents content disposition header value information.</param>
- <exception cref="T:System.ArgumentNullException">
- <paramref name="input" /> is a null reference.</exception>
- <exception cref="T:System.FormatException">
- <paramref name="input" /> is not valid content disposition header value information.</exception>
- </member>
- <member name="P:System.Net.Http.Headers.ContentDispositionHeaderValue.ReadDate">
- <summary>The date the file was last read.</summary>
- <returns>Returns <see cref="T:System.DateTimeOffset" />.The last read date.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.ContentDispositionHeaderValue.Size">
- <summary>The approximate size, in bytes, of the file. </summary>
- <returns>Returns <see cref="T:System.Int64" />.The approximate size, in bytes.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.ContentDispositionHeaderValue.System#ICloneable#Clone">
- <summary>Creates a new object that is a copy of the current <see cref="T:System.Net.Http.Headers.ContentDispositionHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Object" />.A copy of the current instance.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.ContentDispositionHeaderValue.ToString">
- <summary>Returns a string that represents the current <see cref="T:System.Net.Http.Headers.ContentDispositionHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.String" />.A string that represents the current object.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.ContentDispositionHeaderValue.TryParse(System.String,System.Net.Http.Headers.ContentDispositionHeaderValue@)">
- <summary>Determines whether a string is valid <see cref="T:System.Net.Http.Headers.ContentDispositionHeaderValue" /> information.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if <paramref name="input" /> is valid <see cref="T:System.Net.Http.Headers.ContentDispositionHeaderValue" /> information; otherwise, false.</returns>
- <param name="input">The string to validate.</param>
- <param name="parsedValue">The <see cref="T:System.Net.Http.Headers.ContentDispositionHeaderValue" /> version of the string.</param>
- </member>
- <member name="T:System.Net.Http.Headers.ContentRangeHeaderValue">
- <summary>Represents the value of the Content-Range header.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.ContentRangeHeaderValue.#ctor(System.Int64)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.ContentRangeHeaderValue" /> class.</summary>
- <param name="length">The starting or ending point of the range, in bytes.</param>
- </member>
- <member name="M:System.Net.Http.Headers.ContentRangeHeaderValue.#ctor(System.Int64,System.Int64)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.ContentRangeHeaderValue" /> class.</summary>
- <param name="from">The position, in bytes, at which to start sending data.</param>
- <param name="to">The position, in bytes, at which to stop sending data.</param>
- </member>
- <member name="M:System.Net.Http.Headers.ContentRangeHeaderValue.#ctor(System.Int64,System.Int64,System.Int64)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.ContentRangeHeaderValue" /> class.</summary>
- <param name="from">The position, in bytes, at which to start sending data.</param>
- <param name="to">The position, in bytes, at which to stop sending data.</param>
- <param name="length">The starting or ending point of the range, in bytes.</param>
- </member>
- <member name="M:System.Net.Http.Headers.ContentRangeHeaderValue.Equals(System.Object)">
- <summary>Determines whether the specified Object is equal to the current <see cref="T:System.Net.Http.Headers.ContentRangeHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the specified <see cref="T:System.Object" /> is equal to the current object; otherwise, false.</returns>
- <param name="obj">The object to compare with the current object.</param>
- </member>
- <member name="P:System.Net.Http.Headers.ContentRangeHeaderValue.From">
- <summary>Gets the position at which to start sending data.</summary>
- <returns>Returns <see cref="T:System.Int64" />.The position, in bytes, at which to start sending data.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.ContentRangeHeaderValue.GetHashCode">
- <summary>Serves as a hash function for an <see cref="T:System.Net.Http.Headers.ContentRangeHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.Int32" />.A hash code for the current object.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.ContentRangeHeaderValue.HasLength">
- <summary>Gets whether the Content-Range header has a length specified.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the Content-Range has a length specified; otherwise, false.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.ContentRangeHeaderValue.HasRange">
- <summary>Gets whether the Content-Range has a range specified. </summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the Content-Range has a range specified; otherwise, false.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.ContentRangeHeaderValue.Length">
- <summary>Gets the length of the full entity-body.</summary>
- <returns>Returns <see cref="T:System.Int64" />.The length of the full entity-body.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.ContentRangeHeaderValue.Parse(System.String)">
- <summary>Converts a string to an <see cref="T:System.Net.Http.Headers.ContentRangeHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.ContentRangeHeaderValue" />.An <see cref="T:System.Net.Http.Headers.ContentRangeHeaderValue" /> instance.</returns>
- <param name="input">A string that represents content range header value information.</param>
- <exception cref="T:System.ArgumentNullException">
- <paramref name="input" /> is a null reference.</exception>
- <exception cref="T:System.FormatException">
- <paramref name="input" /> is not valid content range header value information.</exception>
- </member>
- <member name="M:System.Net.Http.Headers.ContentRangeHeaderValue.System#ICloneable#Clone">
- <summary>Creates a new object that is a copy of the current <see cref="T:System.Net.Http.Headers.ContentRangeHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Object" />.A copy of the current instance.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.ContentRangeHeaderValue.To">
- <summary>Gets the position at which to stop sending data.</summary>
- <returns>Returns <see cref="T:System.Int64" />.The position at which to stop sending data.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.ContentRangeHeaderValue.ToString">
- <summary>Returns a string that represents the current <see cref="T:System.Net.Http.Headers.ContentRangeHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.String" />.A string that represents the current object.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.ContentRangeHeaderValue.TryParse(System.String,System.Net.Http.Headers.ContentRangeHeaderValue@)">
- <summary>Determines whether a string is valid <see cref="T:System.Net.Http.Headers.ContentRangeHeaderValue" /> information.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if <paramref name="input" /> is valid <see cref="T:System.Net.Http.Headers.ContentRangeHeaderValue" /> information; otherwise, false.</returns>
- <param name="input">The string to validate.</param>
- <param name="parsedValue">The <see cref="T:System.Net.Http.Headers.ContentRangeHeaderValue" /> version of the string.</param>
- </member>
- <member name="P:System.Net.Http.Headers.ContentRangeHeaderValue.Unit">
- <summary>The range units used.</summary>
- <returns>Returns <see cref="T:System.String" />.A <see cref="T:System.String" /> that contains range units. </returns>
- </member>
- <member name="T:System.Net.Http.Headers.EntityTagHeaderValue">
- <summary>Represents an entity-tag header value.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.EntityTagHeaderValue.#ctor(System.String)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.EntityTagHeaderValue" /> class.</summary>
- <param name="tag">A string that contains an <see cref="T:System.Net.Http.Headers.EntityTagHeaderValue" />.</param>
- </member>
- <member name="M:System.Net.Http.Headers.EntityTagHeaderValue.#ctor(System.String,System.Boolean)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.EntityTagHeaderValue" /> class.</summary>
- <param name="tag">A string that contains an <see cref="T:System.Net.Http.Headers.EntityTagHeaderValue" />.</param>
- <param name="isWeak">A value that indicates if this entity-tag header is a weak validator. If the entity-tag header is weak validator, then <paramref name="isWeak" /> should be set to true. If the entity-tag header is a strong validator, then <paramref name="isWeak" /> should be set to false.</param>
- </member>
- <member name="P:System.Net.Http.Headers.EntityTagHeaderValue.Any">
- <summary>Gets the entity-tag header value.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.EntityTagHeaderValue" />.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.EntityTagHeaderValue.Equals(System.Object)">
- <summary>Determines whether the specified <see cref="T:System.Object" /> is equal to the current <see cref="T:System.Net.Http.Headers.EntityTagHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the specified <see cref="T:System.Object" /> is equal to the current object; otherwise, false.</returns>
- <param name="obj">The object to compare with the current object.</param>
- </member>
- <member name="M:System.Net.Http.Headers.EntityTagHeaderValue.GetHashCode">
- <summary>Serves as a hash function for an <see cref="T:System.Net.Http.Headers.EntityTagHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.Int32" />.A hash code for the current object.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.EntityTagHeaderValue.IsWeak">
- <summary>Gets whether the entity-tag is prefaced by a weakness indicator.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the entity-tag is prefaced by a weakness indicator; otherwise, false.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.EntityTagHeaderValue.Parse(System.String)">
- <summary>Converts a string to an <see cref="T:System.Net.Http.Headers.EntityTagHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.EntityTagHeaderValue" />.An <see cref="T:System.Net.Http.Headers.EntityTagHeaderValue" /> instance.</returns>
- <param name="input">A string that represents entity tag header value information.</param>
- <exception cref="T:System.ArgumentNullException">
- <paramref name="input" /> is a null reference.</exception>
- <exception cref="T:System.FormatException">
- <paramref name="input" /> is not valid entity tag header value information.</exception>
- </member>
- <member name="M:System.Net.Http.Headers.EntityTagHeaderValue.System#ICloneable#Clone">
- <summary>Creates a new object that is a copy of the current <see cref="T:System.Net.Http.Headers.EntityTagHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Object" />.A copy of the current instance.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.EntityTagHeaderValue.Tag">
- <summary>Gets the opaque quoted string. </summary>
- <returns>Returns <see cref="T:System.String" />.An opaque quoted string.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.EntityTagHeaderValue.ToString">
- <summary>Returns a string that represents the current <see cref="T:System.Net.Http.Headers.EntityTagHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.String" />.A string that represents the current object.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.EntityTagHeaderValue.TryParse(System.String,System.Net.Http.Headers.EntityTagHeaderValue@)">
- <summary>Determines whether a string is valid <see cref="T:System.Net.Http.Headers.EntityTagHeaderValue" /> information.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if <paramref name="input" /> is valid <see cref="T:System.Net.Http.Headers.EntityTagHeaderValue" /> information; otherwise, false.</returns>
- <param name="input">The string to validate.</param>
- <param name="parsedValue">The <see cref="T:System.Net.Http.Headers.EntityTagHeaderValue" /> version of the string.</param>
- </member>
- <member name="T:System.Net.Http.Headers.HttpContentHeaders">
- <summary>Represents the collection of Content Headers as defined in RFC 2616.</summary>
- </member>
- <member name="P:System.Net.Http.Headers.HttpContentHeaders.Allow">
- <summary>Gets the value of the Allow content header on an HTTP response. </summary>
- <returns>Returns <see cref="T:System.Collections.Generic.ICollection`1" />.The value of the Allow header on an HTTP response.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpContentHeaders.ContentDisposition">
- <summary>Gets the value of the Content-Disposition content header on an HTTP response.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.ContentDispositionHeaderValue" />.The value of the Content-Disposition content header on an HTTP response.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpContentHeaders.ContentEncoding">
- <summary>Gets the value of the Content-Encoding content header on an HTTP response.</summary>
- <returns>Returns <see cref="T:System.Collections.Generic.ICollection`1" />.The value of the Content-Encoding content header on an HTTP response.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpContentHeaders.ContentLanguage">
- <summary>Gets the value of the Content-Language content header on an HTTP response.</summary>
- <returns>Returns <see cref="T:System.Collections.Generic.ICollection`1" />.The value of the Content-Language content header on an HTTP response.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpContentHeaders.ContentLength">
- <summary>Gets or sets the value of the Content-Length content header on an HTTP response.</summary>
- <returns>Returns <see cref="T:System.Int64" />.The value of the Content-Length content header on an HTTP response.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpContentHeaders.ContentLocation">
- <summary>Gets or sets the value of the Content-Location content header on an HTTP response.</summary>
- <returns>Returns <see cref="T:System.Uri" />.The value of the Content-Location content header on an HTTP response.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpContentHeaders.ContentMD5">
- <summary>Gets or sets the value of the Content-MD5 content header on an HTTP response.</summary>
- <returns>Returns <see cref="T:System.Byte" />.The value of the Content-MD5 content header on an HTTP response.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpContentHeaders.ContentRange">
- <summary>Gets or sets the value of the Content-Range content header on an HTTP response.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.ContentRangeHeaderValue" />.The value of the Content-Range content header on an HTTP response.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpContentHeaders.ContentType">
- <summary>Gets or sets the value of the Content-Type content header on an HTTP response.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.MediaTypeHeaderValue" />.The value of the Content-Type content header on an HTTP response.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpContentHeaders.Expires">
- <summary>Gets or sets the value of the Expires content header on an HTTP response.</summary>
- <returns>Returns <see cref="T:System.DateTimeOffset" />.The value of the Expires content header on an HTTP response.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpContentHeaders.LastModified">
- <summary>Gets or sets the value of the Last-Modified content header on an HTTP response.</summary>
- <returns>Returns <see cref="T:System.DateTimeOffset" />.The value of the Last-Modified content header on an HTTP response.</returns>
- </member>
- <member name="T:System.Net.Http.Headers.HttpHeaders">
- <summary>A collection of headers and their values as defined in RFC 2616.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.HttpHeaders.#ctor">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.HttpHeaders" /> class.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.HttpHeaders.Add(System.String,System.Collections.Generic.IEnumerable{System.String})">
- <summary>Adds the specified header and its values into the <see cref="T:System.Net.Http.Headers.HttpHeaders" /> collection.</summary>
- <param name="name">The header to add to the collection.</param>
- <param name="values">A list of header values to add to the collection.</param>
- </member>
- <member name="M:System.Net.Http.Headers.HttpHeaders.Add(System.String,System.String)">
- <summary>Adds the specified header and its value into the <see cref="T:System.Net.Http.Headers.HttpHeaders" /> collection.</summary>
- <param name="name">The header to add to the collection.</param>
- <param name="value">The content of the header.</param>
- </member>
- <member name="M:System.Net.Http.Headers.HttpHeaders.Clear">
- <summary>Removes all headers from the <see cref="T:System.Net.Http.Headers.HttpHeaders" /> collection.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.HttpHeaders.Contains(System.String)">
- <summary>Returns if a specific header exists in the <see cref="T:System.Net.Http.Headers.HttpHeaders" /> collection.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true is the specified header exists in the collection; otherwise false.</returns>
- <param name="name">The specific header.</param>
- </member>
- <member name="M:System.Net.Http.Headers.HttpHeaders.GetEnumerator">
- <summary>Returns an enumerator that can iterate through the <see cref="T:System.Net.Http.Headers.HttpHeaders" /> instance.</summary>
- <returns>Returns <see cref="T:System.Collections.Generic.IEnumerator`1" />.An enumerator for the <see cref="T:System.Net.Http.Headers.HttpHeaders" />.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.HttpHeaders.GetValues(System.String)">
- <summary>Returns all header values for a specified header stored in the <see cref="T:System.Net.Http.Headers.HttpHeaders" /> collection.</summary>
- <returns>Returns <see cref="T:System.Collections.Generic.IEnumerable`1" />.An array of header strings.</returns>
- <param name="name">The specified header to return values for.</param>
- </member>
- <member name="M:System.Net.Http.Headers.HttpHeaders.Remove(System.String)">
- <summary>Removes the specified header from the <see cref="T:System.Net.Http.Headers.HttpHeaders" /> collection.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.</returns>
- <param name="name">The name of the header to remove from the collection. </param>
- </member>
- <member name="M:System.Net.Http.Headers.HttpHeaders.System#Collections#IEnumerable#GetEnumerator">
- <summary>Gets an enumerator that can iterate through a <see cref="T:System.Net.Http.Headers.HttpHeaders" />.</summary>
- <returns>Returns <see cref="T:System.Collections.IEnumerator" />.An instance of an implementation of an <see cref="T:System.Collections.IEnumerator" /> that can iterate through a <see cref="T:System.Net.Http.Headers.HttpHeaders" />.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.HttpHeaders.ToString">
- <summary>Returns a string that represents the current <see cref="T:System.Net.Http.Headers.HttpHeaders" /> object.</summary>
- <returns>Returns <see cref="T:System.String" />.A string that represents the current object.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.HttpHeaders.TryAddWithoutValidation(System.String,System.Collections.Generic.IEnumerable{System.String})">
- <summary>Returns a value that indicates whether the specified header and its values were added to the <see cref="T:System.Net.Http.Headers.HttpHeaders" /> collection without validating the provided information.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the specified header <paramref name="name" /> and <paramref name="values" /> could be added to the collection; otherwise false.</returns>
- <param name="name">The header to add to the collection.</param>
- <param name="values">The values of the header.</param>
- </member>
- <member name="M:System.Net.Http.Headers.HttpHeaders.TryAddWithoutValidation(System.String,System.String)">
- <summary>Returns a value that indicates whether the specified header and its value were added to the <see cref="T:System.Net.Http.Headers.HttpHeaders" /> collection without validating the provided information.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the specified header <paramref name="name" /> and <paramref name="value" /> could be added to the collection; otherwise false.</returns>
- <param name="name">The header to add to the collection.</param>
- <param name="value">The content of the header.</param>
- </member>
- <member name="M:System.Net.Http.Headers.HttpHeaders.TryGetValues(System.String,System.Collections.Generic.IEnumerable{System.String}@)">
- <summary>Return if a specified header and specified values are stored in the <see cref="T:System.Net.Http.Headers.HttpHeaders" /> collection.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true is the specified header <paramref name="name" /> and values are stored in the collection; otherwise false.</returns>
- <param name="name">The specified header.</param>
- <param name="values">The specified header values.</param>
- </member>
- <member name="T:System.Net.Http.Headers.HttpHeaderValueCollection`1">
- <summary>Represents a collection of header values.</summary>
- <typeparam name="T"></typeparam>
- </member>
- <member name="M:System.Net.Http.Headers.HttpHeaderValueCollection`1.Add(`0)"></member>
- <member name="M:System.Net.Http.Headers.HttpHeaderValueCollection`1.Clear"></member>
- <member name="M:System.Net.Http.Headers.HttpHeaderValueCollection`1.Contains(`0)">
- <returns>Returns <see cref="T:System.Boolean" />.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.HttpHeaderValueCollection`1.CopyTo(`0[],System.Int32)"></member>
- <member name="P:System.Net.Http.Headers.HttpHeaderValueCollection`1.Count">
- <returns>Returns <see cref="T:System.Int32" />.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.HttpHeaderValueCollection`1.GetEnumerator">
- <returns>Returns <see cref="T:System.Collections.Generic.IEnumerator`1" />.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpHeaderValueCollection`1.IsReadOnly">
- <returns>Returns <see cref="T:System.Boolean" />.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.HttpHeaderValueCollection`1.ParseAdd(System.String)"></member>
- <member name="M:System.Net.Http.Headers.HttpHeaderValueCollection`1.Remove(`0)">
- <returns>Returns <see cref="T:System.Boolean" />.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.HttpHeaderValueCollection`1.System#Collections#IEnumerable#GetEnumerator">
- <returns>Returns <see cref="T:System.Collections.IEnumerator" />.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.HttpHeaderValueCollection`1.ToString">
- <summary>Returns a string that represents the current XXX object.</summary>
- <returns>Returns <see cref="T:System.String" />.A string that represents the current object.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.HttpHeaderValueCollection`1.TryParseAdd(System.String)">
- <summary>Determines whether a string is valid XXX information.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.</returns>
- <param name="input">The string to validate.</param>
- </member>
- <member name="T:System.Net.Http.Headers.HttpRequestHeaders">
- <summary>Represents the collection of Request Headers as defined in RFC 2616.</summary>
- </member>
- <member name="P:System.Net.Http.Headers.HttpRequestHeaders.Accept">
- <summary>Gets the value of the Accept header for an HTTP request.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.HttpHeaderValueCollection`1" />.The value of the Accept header for an HTTP request.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpRequestHeaders.AcceptCharset">
- <summary>Gets the value of the Accept-Charset header for an HTTP request.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.HttpHeaderValueCollection`1" />.The value of the Accept-Charset header for an HTTP request.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpRequestHeaders.AcceptEncoding">
- <summary>Gets the value of the Accept-Encoding header for an HTTP request.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.HttpHeaderValueCollection`1" />.The value of the Accept-Encoding header for an HTTP request.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpRequestHeaders.AcceptLanguage">
- <summary>Gets the value of the Accept-Language header for an HTTP request.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.HttpHeaderValueCollection`1" />.The value of the Accept-Language header for an HTTP request.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpRequestHeaders.Authorization">
- <summary>Gets or sets the value of the Authorization header for an HTTP request.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.AuthenticationHeaderValue" />.The value of the Authorization header for an HTTP request.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpRequestHeaders.CacheControl">
- <summary>Gets or sets the value of the Cache-Control header for an HTTP request.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.CacheControlHeaderValue" />.The value of the Cache-Control header for an HTTP request.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpRequestHeaders.Connection">
- <summary>Gets the value of the Connection header for an HTTP request.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.HttpHeaderValueCollection`1" />.The value of the Connection header for an HTTP request.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpRequestHeaders.ConnectionClose">
- <summary>Gets or sets a value that indicates if the Connection header for an HTTP request contains Close.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the Connection header contains Close, otherwise false.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpRequestHeaders.Date">
- <summary>Gets or sets the value of the Date header for an HTTP request.</summary>
- <returns>Returns <see cref="T:System.DateTimeOffset" />.The value of the Date header for an HTTP request.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpRequestHeaders.Expect">
- <summary>Gets the value of the Expect header for an HTTP request.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.HttpHeaderValueCollection`1" />.The value of the Expect header for an HTTP request.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpRequestHeaders.ExpectContinue">
- <summary>Gets or sets a value that indicates if the Expect header for an HTTP request contains Continue.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the Expect header contains Continue, otherwise false.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpRequestHeaders.From">
- <summary>Gets or sets the value of the From header for an HTTP request.</summary>
- <returns>Returns <see cref="T:System.String" />.The value of the From header for an HTTP request.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpRequestHeaders.Host">
- <summary>Gets or sets the value of the Host header for an HTTP request.</summary>
- <returns>Returns <see cref="T:System.String" />.The value of the Host header for an HTTP request.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpRequestHeaders.IfMatch">
- <summary>Gets the value of the If-Match header for an HTTP request.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.HttpHeaderValueCollection`1" />.The value of the If-Match header for an HTTP request.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpRequestHeaders.IfModifiedSince">
- <summary>Gets or sets the value of the If-Modified-Since header for an HTTP request.</summary>
- <returns>Returns <see cref="T:System.DateTimeOffset" />.The value of the If-Modified-Since header for an HTTP request.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpRequestHeaders.IfNoneMatch">
- <summary>Gets the value of the If-None-Match header for an HTTP request.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.HttpHeaderValueCollection`1" />.Gets the value of the If-None-Match header for an HTTP request.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpRequestHeaders.IfRange">
- <summary>Gets or sets the value of the If-Range header for an HTTP request.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.RangeConditionHeaderValue" />.The value of the If-Range header for an HTTP request.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpRequestHeaders.IfUnmodifiedSince">
- <summary>Gets or sets the value of the If-Unmodified-Since header for an HTTP request.</summary>
- <returns>Returns <see cref="T:System.DateTimeOffset" />.The value of the If-Unmodified-Since header for an HTTP request.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpRequestHeaders.MaxForwards">
- <summary>Gets or sets the value of the Max-Forwards header for an HTTP request.</summary>
- <returns>Returns <see cref="T:System.Int32" />.The value of the Max-Forwards header for an HTTP request.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpRequestHeaders.Pragma">
- <summary>Gets the value of the Pragma header for an HTTP request.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.HttpHeaderValueCollection`1" />.The value of the Pragma header for an HTTP request.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpRequestHeaders.ProxyAuthorization">
- <summary>Gets or sets the value of the Proxy-Authorization header for an HTTP request.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.AuthenticationHeaderValue" />.The value of the Proxy-Authorization header for an HTTP request.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpRequestHeaders.Range">
- <summary>Gets or sets the value of the Range header for an HTTP request.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.RangeHeaderValue" />.The value of the Range header for an HTTP request.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpRequestHeaders.Referrer">
- <summary>Gets or sets the value of the Referer header for an HTTP request.</summary>
- <returns>Returns <see cref="T:System.Uri" />.The value of the Referer header for an HTTP request.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpRequestHeaders.TE">
- <summary>Gets the value of the TE header for an HTTP request.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.HttpHeaderValueCollection`1" />.The value of the TE header for an HTTP request.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpRequestHeaders.Trailer">
- <summary>Gets the value of the Trailer header for an HTTP request.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.HttpHeaderValueCollection`1" />.The value of the Trailer header for an HTTP request.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpRequestHeaders.TransferEncoding">
- <summary>Gets the value of the Transfer-Encoding header for an HTTP request.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.HttpHeaderValueCollection`1" />.The value of the Transfer-Encoding header for an HTTP request.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpRequestHeaders.TransferEncodingChunked">
- <summary>Gets or sets a value that indicates if the Transfer-Encoding header for an HTTP request contains chunked.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the Transfer-Encoding header contains chunked, otherwise false.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpRequestHeaders.Upgrade">
- <summary>Gets the value of the Upgrade header for an HTTP request.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.HttpHeaderValueCollection`1" />.The value of the Upgrade header for an HTTP request.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpRequestHeaders.UserAgent">
- <summary>Gets the value of the User-Agent header for an HTTP request.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.HttpHeaderValueCollection`1" />.The value of the User-Agent header for an HTTP request.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpRequestHeaders.Via">
- <summary>Gets the value of the Via header for an HTTP request.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.HttpHeaderValueCollection`1" />.The value of the Via header for an HTTP request.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpRequestHeaders.Warning">
- <summary>Gets the value of the Warning header for an HTTP request.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.HttpHeaderValueCollection`1" />.The value of the Warning header for an HTTP request.</returns>
- </member>
- <member name="T:System.Net.Http.Headers.HttpResponseHeaders">
- <summary>Represents the collection of Response Headers as defined in RFC 2616.</summary>
- </member>
- <member name="P:System.Net.Http.Headers.HttpResponseHeaders.AcceptRanges">
- <summary>Gets the value of the Accept-Ranges header for an HTTP response.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.HttpHeaderValueCollection`1" />.The value of the Accept-Ranges header for an HTTP response.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpResponseHeaders.Age">
- <summary>Gets or sets the value of the Age header for an HTTP response.</summary>
- <returns>Returns <see cref="T:System.TimeSpan" />.The value of the Age header for an HTTP response.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpResponseHeaders.CacheControl">
- <summary>Gets or sets the value of the Cache-Control header for an HTTP response.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.CacheControlHeaderValue" />.The value of the Cache-Control header for an HTTP response.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpResponseHeaders.Connection">
- <summary>Gets the value of the Connection header for an HTTP response.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.HttpHeaderValueCollection`1" />.The value of the Connection header for an HTTP response.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpResponseHeaders.ConnectionClose">
- <summary>Gets or sets a value that indicates if the Connection header for an HTTP response contains Close.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the Connection header contains Close, otherwise false.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpResponseHeaders.Date">
- <summary>Gets or sets the value of the Date header for an HTTP response.</summary>
- <returns>Returns <see cref="T:System.DateTimeOffset" />.The value of the Date header for an HTTP response.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpResponseHeaders.ETag">
- <summary>Gets or sets the value of the ETag header for an HTTP response.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.EntityTagHeaderValue" />.The value of the ETag header for an HTTP response.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpResponseHeaders.Location">
- <summary>Gets or sets the value of the Location header for an HTTP response.</summary>
- <returns>Returns <see cref="T:System.Uri" />.The value of the Location header for an HTTP response.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpResponseHeaders.Pragma">
- <summary>Gets the value of the Pragma header for an HTTP response.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.HttpHeaderValueCollection`1" />.The value of the Pragma header for an HTTP response.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpResponseHeaders.ProxyAuthenticate">
- <summary>Gets the value of the Proxy-Authenticate header for an HTTP response.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.HttpHeaderValueCollection`1" />.The value of the Proxy-Authenticate header for an HTTP response.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpResponseHeaders.RetryAfter">
- <summary>Gets or sets the value of the Retry-After header for an HTTP response.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.RetryConditionHeaderValue" />.The value of the Retry-After header for an HTTP response.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpResponseHeaders.Server">
- <summary>Gets the value of the Server header for an HTTP response.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.HttpHeaderValueCollection`1" />.The value of the Server header for an HTTP response.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpResponseHeaders.Trailer">
- <summary>Gets the value of the Trailer header for an HTTP response.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.HttpHeaderValueCollection`1" />.The value of the Trailer header for an HTTP response.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpResponseHeaders.TransferEncoding">
- <summary>Gets the value of the Transfer-Encoding header for an HTTP response.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.HttpHeaderValueCollection`1" />.The value of the Transfer-Encoding header for an HTTP response.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpResponseHeaders.TransferEncodingChunked">
- <summary>Gets or sets a value that indicates if the Transfer-Encoding header for an HTTP response contains chunked.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the Transfer-Encoding header contains chunked, otherwise false.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpResponseHeaders.Upgrade">
- <summary>Gets the value of the Upgrade header for an HTTP response.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.HttpHeaderValueCollection`1" />.The value of the Upgrade header for an HTTP response.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpResponseHeaders.Vary">
- <summary>Gets the value of the Vary header for an HTTP response.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.HttpHeaderValueCollection`1" />.The value of the Vary header for an HTTP response.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpResponseHeaders.Via">
- <summary>Gets the value of the Via header for an HTTP response.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.HttpHeaderValueCollection`1" />.The value of the Via header for an HTTP response.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpResponseHeaders.Warning">
- <summary>Gets the value of the Warning header for an HTTP response.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.HttpHeaderValueCollection`1" />.The value of the Warning header for an HTTP response.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.HttpResponseHeaders.WwwAuthenticate">
- <summary>Gets the value of the WWW-Authenticate header for an HTTP response.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.HttpHeaderValueCollection`1" />.The value of the WWW-Authenticate header for an HTTP response.</returns>
- </member>
- <member name="T:System.Net.Http.Headers.MediaTypeHeaderValue">
- <summary>Represents a media-type as defined in the RFC 2616.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.MediaTypeHeaderValue.#ctor(System.Net.Http.Headers.MediaTypeHeaderValue)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.MediaTypeHeaderValue" /> class.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.MediaTypeHeaderValue.#ctor(System.String)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.MediaTypeHeaderValue" /> class.</summary>
- </member>
- <member name="P:System.Net.Http.Headers.MediaTypeHeaderValue.CharSet">
- <summary>Gets or sets the character set.</summary>
- <returns>Returns <see cref="T:System.String" />.The character set.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.MediaTypeHeaderValue.Equals(System.Object)">
- <summary>Determines whether the specified <see cref="T:System.Object" /> is equal to the current <see cref="T:System.Net.Http.Headers.MediaTypeHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the specified <see cref="T:System.Object" /> is equal to the current object; otherwise, false.</returns>
- <param name="obj">The object to compare with the current object.</param>
- </member>
- <member name="M:System.Net.Http.Headers.MediaTypeHeaderValue.GetHashCode">
- <summary>Serves as a hash function for an <see cref="T:System.Net.Http.Headers.MediaTypeHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.Int32" />.A hash code for the current object.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.MediaTypeHeaderValue.MediaType">
- <summary>Gets or sets the media-type header value.</summary>
- <returns>Returns <see cref="T:System.String" />.The media-type header value.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.MediaTypeHeaderValue.Parameters">
- <summary>Gets or sets the media-type header value parameters.</summary>
- <returns>Returns <see cref="T:System.Collections.Generic.ICollection`1" />.The media-type header value parameters.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.MediaTypeHeaderValue.Parse(System.String)">
- <summary>Converts a string to an <see cref="T:System.Net.Http.Headers.MediaTypeHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.MediaTypeHeaderValue" />.An <see cref="T:System.Net.Http.Headers.MediaTypeHeaderValue" /> instance.</returns>
- <param name="input">A string that represents media type header value information.</param>
- <exception cref="T:System.ArgumentNullException">
- <paramref name="input" /> is a null reference.</exception>
- <exception cref="T:System.FormatException">
- <paramref name="input" /> is not valid media type header value information.</exception>
- </member>
- <member name="M:System.Net.Http.Headers.MediaTypeHeaderValue.System#ICloneable#Clone">
- <summary>Creates a new object that is a copy of the current <see cref="T:System.Net.Http.Headers.MediaTypeHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Object" />.A copy of the current instance.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.MediaTypeHeaderValue.ToString">
- <summary>Returns a string that represents the current <see cref="T:System.Net.Http.Headers.MediaTypeHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.String" />.A string that represents the current object.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.MediaTypeHeaderValue.TryParse(System.String,System.Net.Http.Headers.MediaTypeHeaderValue@)">
- <summary>Determines whether a string is valid <see cref="T:System.Net.Http.Headers.MediaTypeHeaderValue" /> information.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if <paramref name="input" /> is valid <see cref="T:System.Net.Http.Headers.MediaTypeHeaderValue" /> information; otherwise, false.</returns>
- <param name="input">The string to validate.</param>
- <param name="parsedValue">The <see cref="T:System.Net.Http.Headers.MediaTypeHeaderValue" /> version of the string.</param>
- </member>
- <member name="T:System.Net.Http.Headers.MediaTypeWithQualityHeaderValue">
- <summary>Represents a content-type header value with an additional quality.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.#ctor(System.String)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.MediaTypeWithQualityHeaderValue" /> class.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.#ctor(System.String,System.Double)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.MediaTypeWithQualityHeaderValue" /> class.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse(System.String)">
- <summary>Converts a string to an <see cref="T:System.Net.Http.Headers.MediaTypeWithQualityHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.MediaTypeWithQualityHeaderValue" />.An <see cref="T:System.Net.Http.Headers.MediaTypeWithQualityHeaderValue" /> instance.</returns>
- <param name="input">A string that represents media type with quality header value information.</param>
- <exception cref="T:System.ArgumentNullException">
- <paramref name="input" /> is a null reference.</exception>
- <exception cref="T:System.FormatException">
- <paramref name="input" /> is not valid media type with quality header value information.</exception>
- </member>
- <member name="P:System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Quality">
- <returns>Returns <see cref="T:System.Double" />.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.System#ICloneable#Clone">
- <summary>Creates a new object that is a copy of the current <see cref="T:System.Net.Http.Headers.MediaTypeWithQualityHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Object" />.A copy of the current instance.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.TryParse(System.String,System.Net.Http.Headers.MediaTypeWithQualityHeaderValue@)">
- <summary>Determines whether a string is valid <see cref="T:System.Net.Http.Headers.MediaTypeWithQualityHeaderValue" /> information.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if <paramref name="input" /> is valid <see cref="T:System.Net.Http.Headers.MediaTypeWithQualityHeaderValue" /> information; otherwise, false.</returns>
- <param name="input">The string to validate.</param>
- <param name="parsedValue">The <see cref="T:System.Net.Http.Headers.MediaTypeWithQualityHeaderValue" /> version of the string.</param>
- </member>
- <member name="T:System.Net.Http.Headers.NameValueHeaderValue">
- <summary>Represents a name/value pair.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.NameValueHeaderValue.#ctor(System.Net.Http.Headers.NameValueHeaderValue)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.NameValueHeaderValue" /> class.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.NameValueHeaderValue.#ctor(System.String)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.NameValueHeaderValue" /> class.</summary>
- <param name="name">The header name.</param>
- </member>
- <member name="M:System.Net.Http.Headers.NameValueHeaderValue.#ctor(System.String,System.String)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.NameValueHeaderValue" /> class.</summary>
- <param name="name">The header name.</param>
- <param name="value">The header value.</param>
- </member>
- <member name="M:System.Net.Http.Headers.NameValueHeaderValue.Equals(System.Object)">
- <summary>Determines whether the specified <see cref="T:System.Object" /> is equal to the current <see cref="T:System.Net.Http.Headers.NameValueHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the specified <see cref="T:System.Object" /> is equal to the current object; otherwise, false.</returns>
- <param name="obj">The object to compare with the current object.</param>
- </member>
- <member name="M:System.Net.Http.Headers.NameValueHeaderValue.GetHashCode">
- <summary>Serves as a hash function for an <see cref="T:System.Net.Http.Headers.NameValueHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.Int32" />.A hash code for the current object.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.NameValueHeaderValue.Name">
- <summary>Gets the header name.</summary>
- <returns>Returns <see cref="T:System.String" />.The header name.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.NameValueHeaderValue.Parse(System.String)">
- <summary>Converts a string to an <see cref="T:System.Net.Http.Headers.NameValueHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.NameValueHeaderValue" />.An <see cref="T:System.Net.Http.Headers.NameValueHeaderValue" /> instance.</returns>
- <param name="input">A string that represents name value header value information.</param>
- <exception cref="T:System.ArgumentNullException">
- <paramref name="input" /> is a null reference.</exception>
- <exception cref="T:System.FormatException">
- <paramref name="input" /> is not valid name value header value information.</exception>
- </member>
- <member name="M:System.Net.Http.Headers.NameValueHeaderValue.System#ICloneable#Clone">
- <summary>Creates a new object that is a copy of the current <see cref="T:System.Net.Http.Headers.NameValueHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Object" />.A copy of the current instance.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.NameValueHeaderValue.ToString">
- <summary>Returns a string that represents the current <see cref="T:System.Net.Http.Headers.NameValueHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.String" />.A string that represents the current object.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.NameValueHeaderValue.TryParse(System.String,System.Net.Http.Headers.NameValueHeaderValue@)">
- <summary>Determines whether a string is valid <see cref="T:System.Net.Http.Headers.NameValueHeaderValue" /> information.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if <paramref name="input" /> is valid <see cref="T:System.Net.Http.Headers.NameValueHeaderValue" /> information; otherwise, false.</returns>
- <param name="input">The string to validate.</param>
- <param name="parsedValue">The <see cref="T:System.Net.Http.Headers.NameValueHeaderValue" /> version of the string.</param>
- </member>
- <member name="P:System.Net.Http.Headers.NameValueHeaderValue.Value">
- <summary>Gets the header value.</summary>
- <returns>Returns <see cref="T:System.String" />.The header value.</returns>
- </member>
- <member name="T:System.Net.Http.Headers.NameValueWithParametersHeaderValue">
- <summary>Represents a name/value pair with parameters.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.NameValueWithParametersHeaderValue.#ctor(System.Net.Http.Headers.NameValueWithParametersHeaderValue)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.NameValueWithParametersHeaderValue" /> class.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.NameValueWithParametersHeaderValue.#ctor(System.String)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.NameValueWithParametersHeaderValue" /> class.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.NameValueWithParametersHeaderValue.#ctor(System.String,System.String)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.NameValueWithParametersHeaderValue" /> class.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.NameValueWithParametersHeaderValue.Equals(System.Object)">
- <summary>Determines whether the specified <see cref="T:System.Object" /> is equal to the current <see cref="T:System.Net.Http.Headers.NameValueWithParametersHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the specified <see cref="T:System.Object" /> is equal to the current object; otherwise, false.</returns>
- <param name="obj">The object to compare with the current object.</param>
- </member>
- <member name="M:System.Net.Http.Headers.NameValueWithParametersHeaderValue.GetHashCode">
- <summary>Serves as a hash function for an <see cref="T:System.Net.Http.Headers.NameValueWithParametersHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.Int32" />.A hash code for the current object.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.NameValueWithParametersHeaderValue.Parameters">
- <returns>Returns <see cref="T:System.Collections.Generic.ICollection`1" />.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.NameValueWithParametersHeaderValue.Parse(System.String)">
- <summary>Converts a string to an <see cref="T:System.Net.Http.Headers.NameValueWithParametersHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.NameValueWithParametersHeaderValue" />.An <see cref="T:System.Net.Http.Headers.NameValueWithParametersHeaderValue" /> instance.</returns>
- <param name="input">A string that represents name value with parameter header value information.</param>
- <exception cref="T:System.ArgumentNullException">
- <paramref name="input" /> is a null reference.</exception>
- <exception cref="T:System.FormatException">
- <paramref name="input" /> is not valid name value with parameter header value information.</exception>
- </member>
- <member name="M:System.Net.Http.Headers.NameValueWithParametersHeaderValue.System#ICloneable#Clone">
- <summary>Creates a new object that is a copy of the current <see cref="T:System.Net.Http.Headers.NameValueWithParametersHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Object" />.A copy of the current instance.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.NameValueWithParametersHeaderValue.ToString">
- <summary>Returns a string that represents the current <see cref="T:System.Net.Http.Headers.NameValueWithParametersHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.String" />.A string that represents the current object.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.NameValueWithParametersHeaderValue.TryParse(System.String,System.Net.Http.Headers.NameValueWithParametersHeaderValue@)">
- <summary>Determines whether a string is valid <see cref="T:System.Net.Http.Headers.NameValueWithParametersHeaderValue" /> information.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if <paramref name="input" /> is valid <see cref="T:System.Net.Http.Headers.NameValueWithParametersHeaderValue" /> information; otherwise, false.</returns>
- <param name="input">The string to validate.</param>
- <param name="parsedValue">The <see cref="T:System.Net.Http.Headers.NameValueWithParametersHeaderValue" /> version of the string.</param>
- </member>
- <member name="T:System.Net.Http.Headers.ProductHeaderValue">
- <summary>Represents a product token in header value.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.ProductHeaderValue.#ctor(System.String)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.ProductHeaderValue" /> class.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.ProductHeaderValue.#ctor(System.String,System.String)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.ProductHeaderValue" /> class.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.ProductHeaderValue.Equals(System.Object)">
- <summary>Determines whether the specified <see cref="T:System.Object" /> is equal to the current <see cref="T:System.Net.Http.Headers.ProductHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the specified <see cref="T:System.Object" /> is equal to the current object; otherwise, false.</returns>
- <param name="obj">The object to compare with the current object.</param>
- </member>
- <member name="M:System.Net.Http.Headers.ProductHeaderValue.GetHashCode">
- <summary>Serves as a hash function for an <see cref="T:System.Net.Http.Headers.ProductHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.Int32" />.A hash code for the current object.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.ProductHeaderValue.Name">
- <summary>Gets the name of the product token.</summary>
- <returns>Returns <see cref="T:System.String" />.The name of the product token.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.ProductHeaderValue.Parse(System.String)">
- <summary>Converts a string to an <see cref="T:System.Net.Http.Headers.ProductHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.ProductHeaderValue" />.An <see cref="T:System.Net.Http.Headers.ProductHeaderValue" /> instance.</returns>
- <param name="input">A string that represents product header value information.</param>
- </member>
- <member name="M:System.Net.Http.Headers.ProductHeaderValue.System#ICloneable#Clone">
- <summary>Creates a new object that is a copy of the current <see cref="T:System.Net.Http.Headers.ProductHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Object" />.A copy of the current instance.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.ProductHeaderValue.ToString">
- <summary>Returns a string that represents the current <see cref="T:System.Net.Http.Headers.ProductHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.String" />.A string that represents the current object.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.ProductHeaderValue.TryParse(System.String,System.Net.Http.Headers.ProductHeaderValue@)">
- <summary>Determines whether a string is valid <see cref="T:System.Net.Http.Headers.ProductHeaderValue" /> information.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if <paramref name="input" /> is valid <see cref="T:System.Net.Http.Headers.ProductHeaderValue" /> information; otherwise, false.</returns>
- <param name="input">The string to validate.</param>
- <param name="parsedValue">The <see cref="T:System.Net.Http.Headers.ProductHeaderValue" /> version of the string.</param>
- </member>
- <member name="P:System.Net.Http.Headers.ProductHeaderValue.Version">
- <summary>Gets the version of the product token.</summary>
- <returns>Returns <see cref="T:System.String" />.The version of the product token. </returns>
- </member>
- <member name="T:System.Net.Http.Headers.ProductInfoHeaderValue">
- <summary>Represents a value which can either be a product or a comment.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.ProductInfoHeaderValue.#ctor(System.Net.Http.Headers.ProductHeaderValue)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.ProductInfoHeaderValue" /> class.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.ProductInfoHeaderValue.#ctor(System.String)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.ProductInfoHeaderValue" /> class.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.ProductInfoHeaderValue.#ctor(System.String,System.String)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.ProductInfoHeaderValue" /> class.</summary>
- </member>
- <member name="P:System.Net.Http.Headers.ProductInfoHeaderValue.Comment">
- <returns>Returns <see cref="T:System.String" />.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.ProductInfoHeaderValue.Equals(System.Object)">
- <summary>Determines whether the specified <see cref="T:System.Object" /> is equal to the current <see cref="T:System.Net.Http.Headers.ProductInfoHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the specified <see cref="T:System.Object" /> is equal to the current object; otherwise, false.</returns>
- <param name="obj">The object to compare with the current object.</param>
- </member>
- <member name="M:System.Net.Http.Headers.ProductInfoHeaderValue.GetHashCode">
- <summary>Serves as a hash function for an <see cref="T:System.Net.Http.Headers.ProductInfoHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.Int32" />.A hash code for the current object.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.ProductInfoHeaderValue.Parse(System.String)">
- <summary>Converts a string to an <see cref="T:System.Net.Http.Headers.ProductInfoHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.ProductInfoHeaderValue" />.An <see cref="T:System.Net.Http.Headers.ProductInfoHeaderValue" /> instance.</returns>
- <param name="input">A string that represents product info header value information.</param>
- <exception cref="T:System.ArgumentNullException">
- <paramref name="input" /> is a null reference.</exception>
- <exception cref="T:System.FormatException">
- <paramref name="input" /> is not valid product info header value information.</exception>
- </member>
- <member name="P:System.Net.Http.Headers.ProductInfoHeaderValue.Product">
- <returns>Returns <see cref="T:System.Net.Http.Headers.ProductHeaderValue" />.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.ProductInfoHeaderValue.System#ICloneable#Clone">
- <summary>Creates a new object that is a copy of the current <see cref="T:System.Net.Http.Headers.ProductInfoHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Object" />.A copy of the current instance.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.ProductInfoHeaderValue.ToString">
- <summary>Returns a string that represents the current <see cref="T:System.Net.Http.Headers.ProductInfoHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.String" />.A string that represents the current object.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.ProductInfoHeaderValue.TryParse(System.String,System.Net.Http.Headers.ProductInfoHeaderValue@)">
- <summary>Determines whether a string is valid <see cref="T:System.Net.Http.Headers.ProductInfoHeaderValue" /> information.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if <paramref name="input" /> is valid <see cref="T:System.Net.Http.Headers.ProductInfoHeaderValue" /> information; otherwise, false.</returns>
- <param name="input">The string to validate.</param>
- <param name="parsedValue">The <see cref="T:System.Net.Http.Headers.ProductInfoHeaderValue" /> version of the string.</param>
- </member>
- <member name="T:System.Net.Http.Headers.RangeConditionHeaderValue">
- <summary>Represents a header value which can either be a date/time or an entity-tag value.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.RangeConditionHeaderValue.#ctor(System.DateTimeOffset)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.RangeConditionHeaderValue" /> class.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.RangeConditionHeaderValue.#ctor(System.Net.Http.Headers.EntityTagHeaderValue)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.RangeConditionHeaderValue" /> class.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.RangeConditionHeaderValue.#ctor(System.String)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.RangeConditionHeaderValue" /> class.</summary>
- </member>
- <member name="P:System.Net.Http.Headers.RangeConditionHeaderValue.Date">
- <returns>Returns <see cref="T:System.DateTimeOffset" />.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.RangeConditionHeaderValue.EntityTag">
- <returns>Returns <see cref="T:System.Net.Http.Headers.EntityTagHeaderValue" />.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.RangeConditionHeaderValue.Equals(System.Object)">
- <summary>Determines whether the specified <see cref="T:System.Object" /> is equal to the current <see cref="T:System.Net.Http.Headers.RangeConditionHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the specified <see cref="T:System.Object" /> is equal to the current object; otherwise, false.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.RangeConditionHeaderValue.GetHashCode">
- <summary>Serves as a hash function for an <see cref="T:System.Net.Http.Headers.RangeConditionHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.Int32" />.A hash code for the current object.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.RangeConditionHeaderValue.Parse(System.String)">
- <summary>Converts a string to an <see cref="T:System.Net.Http.Headers.RangeConditionHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.RangeConditionHeaderValue" />.An <see cref="T:System.Net.Http.Headers.RangeConditionHeaderValue" /> instance.</returns>
- <param name="input">A string that represents range condition header value information.</param>
- <exception cref="T:System.ArgumentNullException">
- <paramref name="input" /> is a null reference.</exception>
- <exception cref="T:System.FormatException">
- <paramref name="input" /> is not valid range Condition header value information.</exception>
- </member>
- <member name="M:System.Net.Http.Headers.RangeConditionHeaderValue.System#ICloneable#Clone">
- <summary>Creates a new object that is a copy of the current <see cref="T:System.Net.Http.Headers.RangeConditionHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Object" />.A copy of the current instance.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.RangeConditionHeaderValue.ToString">
- <summary>Returns a string that represents the current <see cref="T:System.Net.Http.Headers.RangeConditionHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.String" />.A string that represents the current object.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.RangeConditionHeaderValue.TryParse(System.String,System.Net.Http.Headers.RangeConditionHeaderValue@)">
- <summary>Determines whether a string is valid <see cref="T:System.Net.Http.Headers.RangeConditionHeaderValue" /> information.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if <paramref name="input" /> is valid <see cref="T:System.Net.Http.Headers.RangeConditionHeaderValue" /> information; otherwise, false.</returns>
- <param name="input">The string to validate.</param>
- <param name="parsedValue">The <see cref="T:System.Net.Http.Headers.RangeConditionHeaderValue" /> version of the string.</param>
- </member>
- <member name="T:System.Net.Http.Headers.RangeHeaderValue">
- <summary>Represents the value of the Range header.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.RangeHeaderValue.#ctor">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.RangeHeaderValue" /> class.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.RangeHeaderValue.#ctor(System.Nullable{System.Int64},System.Nullable{System.Int64})">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.RangeHeaderValue" /> class.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.RangeHeaderValue.Equals(System.Object)">
- <summary>Determines whether the specified <see cref="T:System.Object" /> is equal to the current <see cref="T:System.Net.Http.Headers.RangeHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the specified <see cref="T:System.Object" /> is equal to the current object; otherwise, false.</returns>
- <param name="obj">The object to compare with the current object.</param>
- </member>
- <member name="M:System.Net.Http.Headers.RangeHeaderValue.GetHashCode">
- <summary>Serves as a hash function for an <see cref="T:System.Net.Http.Headers.RangeHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.Int32" />.A hash code for the current object.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.RangeHeaderValue.Parse(System.String)">
- <summary>Converts a string to an <see cref="T:System.Net.Http.Headers.RangeHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.RangeHeaderValue" />.An <see cref="T:System.Net.Http.Headers.RangeHeaderValue" /> instance.</returns>
- <param name="input">A string that represents range header value information.</param>
- <exception cref="T:System.ArgumentNullException">
- <paramref name="input" /> is a null reference.</exception>
- <exception cref="T:System.FormatException">
- <paramref name="input" /> is not valid range header value information.</exception>
- </member>
- <member name="P:System.Net.Http.Headers.RangeHeaderValue.Ranges">
- <returns>Returns <see cref="T:System.Collections.Generic.ICollection`1" />.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.RangeHeaderValue.System#ICloneable#Clone">
- <summary>Creates a new object that is a copy of the current <see cref="T:System.Net.Http.Headers.RangeHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Object" />.A copy of the current instance.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.RangeHeaderValue.ToString">
- <summary>Returns a string that represents the current <see cref="T:System.Net.Http.Headers.RangeHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.String" />.A string that represents the current object.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.RangeHeaderValue.TryParse(System.String,System.Net.Http.Headers.RangeHeaderValue@)">
- <summary>Determines whether a string is valid <see cref="T:System.Net.Http.Headers.RangeHeaderValue" /> information.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if <paramref name="input" /> is valid <see cref="T:System.Net.Http.Headers.AuthenticationHeaderValue" /> information; otherwise, false.</returns>
- <param name="input">he string to validate.</param>
- <param name="parsedValue">The <see cref="T:System.Net.Http.Headers.RangeHeaderValue" /> version of the string.</param>
- </member>
- <member name="P:System.Net.Http.Headers.RangeHeaderValue.Unit">
- <returns>Returns <see cref="T:System.String" />.</returns>
- </member>
- <member name="T:System.Net.Http.Headers.RangeItemHeaderValue">
- <summary>Represents a byte-range header value.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.RangeItemHeaderValue.#ctor(System.Nullable{System.Int64},System.Nullable{System.Int64})">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.RangeItemHeaderValue" /> class.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.RangeItemHeaderValue.Equals(System.Object)">
- <summary>Determines whether the specified <see cref="T:System.Object" /> is equal to the current <see cref="T:System.Net.Http.Headers.RangeItemHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the specified <see cref="T:System.Object" /> is equal to the current object; otherwise, false.</returns>
- <param name="obj">The object to compare with the current object.</param>
- </member>
- <member name="P:System.Net.Http.Headers.RangeItemHeaderValue.From">
- <returns>Returns <see cref="T:System.Int64" />.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.RangeItemHeaderValue.GetHashCode">
- <summary>Serves as a hash function for an <see cref="T:System.Net.Http.Headers.RangeItemHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.Int32" />.A hash code for the current object.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.RangeItemHeaderValue.System#ICloneable#Clone">
- <summary>Creates a new object that is a copy of the current <see cref="T:System.Net.Http.Headers.RangeItemHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Object" />.A copy of the current instance.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.RangeItemHeaderValue.To">
- <returns>Returns <see cref="T:System.Int64" />.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.RangeItemHeaderValue.ToString">
- <summary>Returns a string that represents the current <see cref="T:System.Net.Http.Headers.RangeItemHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.String" />.A string that represents the current object.</returns>
- </member>
- <member name="T:System.Net.Http.Headers.RetryConditionHeaderValue">
- <summary>Represents a header value which can either be a date/time or a timespan value.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.RetryConditionHeaderValue.#ctor(System.DateTimeOffset)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.RetryConditionHeaderValue" /> class.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.RetryConditionHeaderValue.#ctor(System.TimeSpan)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.RetryConditionHeaderValue" /> class.</summary>
- </member>
- <member name="P:System.Net.Http.Headers.RetryConditionHeaderValue.Date">
- <returns>Returns <see cref="T:System.DateTimeOffset" />.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.RetryConditionHeaderValue.Delta">
- <returns>Returns <see cref="T:System.TimeSpan" />.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.RetryConditionHeaderValue.Equals(System.Object)">
- <summary>Determines whether the specified <see cref="T:System.Object" /> is equal to the current <see cref="T:System.Net.Http.Headers.RetryConditionHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the specified <see cref="T:System.Object" /> is equal to the current object; otherwise, false.</returns>
- <param name="obj">The object to compare with the current object.</param>
- </member>
- <member name="M:System.Net.Http.Headers.RetryConditionHeaderValue.GetHashCode">
- <summary>Serves as a hash function for an <see cref="T:System.Net.Http.Headers.RetryConditionHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.Int32" />.A hash code for the current object.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.RetryConditionHeaderValue.Parse(System.String)">
- <summary>Converts a string to an <see cref="T:System.Net.Http.Headers.RetryConditionHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.RetryConditionHeaderValue" />.An <see cref="T:System.Net.Http.Headers.RetryConditionHeaderValue" /> instance.</returns>
- <param name="input">A string that represents retry condition header value information.</param>
- <exception cref="T:System.ArgumentNullException">
- <paramref name="input" /> is a null reference.</exception>
- <exception cref="T:System.FormatException">
- <paramref name="input" /> is not valid retry condition header value information.</exception>
- </member>
- <member name="M:System.Net.Http.Headers.RetryConditionHeaderValue.System#ICloneable#Clone">
- <summary>Creates a new object that is a copy of the current <see cref="T:System.Net.Http.Headers.RetryConditionHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Object" />.A copy of the current instance.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.RetryConditionHeaderValue.ToString">
- <summary>Returns a string that represents the current <see cref="T:System.Net.Http.Headers.RetryConditionHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.String" />.A string that represents the current object.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.RetryConditionHeaderValue.TryParse(System.String,System.Net.Http.Headers.RetryConditionHeaderValue@)">
- <summary>Determines whether a string is valid <see cref="T:System.Net.Http.Headers.RetryConditionHeaderValue" /> information.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if <paramref name="input" /> is valid <see cref="T:System.Net.Http.Headers.RetryConditionHeaderValue" /> information; otherwise, false.</returns>
- <param name="input">The string to validate.</param>
- <param name="parsedValue">The <see cref="T:System.Net.Http.Headers.RetryConditionHeaderValue" /> version of the string.</param>
- </member>
- <member name="T:System.Net.Http.Headers.StringWithQualityHeaderValue">
- <summary>Represents a string header value with an optional quality.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.StringWithQualityHeaderValue.#ctor(System.String)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.StringWithQualityHeaderValue" /> class.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.StringWithQualityHeaderValue.#ctor(System.String,System.Double)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.StringWithQualityHeaderValue" /> class.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.StringWithQualityHeaderValue.Equals(System.Object)">
- <summary>Determines whether the specified Object is equal to the current <see cref="T:System.Net.Http.Headers.StringWithQualityHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the specified <see cref="T:System.Object" /> is equal to the current object; otherwise, false.</returns>
- <param name="obj">The object to compare with the current object.</param>
- </member>
- <member name="M:System.Net.Http.Headers.StringWithQualityHeaderValue.GetHashCode">
- <summary>Serves as a hash function for an <see cref="T:System.Net.Http.Headers.StringWithQualityHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.Int32" />.A hash code for the current object.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.StringWithQualityHeaderValue.Parse(System.String)">
- <summary>Converts a string to an <see cref="T:System.Net.Http.Headers.StringWithQualityHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.StringWithQualityHeaderValue" />.An <see cref="T:System.Net.Http.Headers.AuthenticationHeaderValue" /> instance.</returns>
- <param name="input">A string that represents quality header value information.</param>
- <exception cref="T:System.ArgumentNullException">
- <paramref name="input" /> is a null reference.</exception>
- <exception cref="T:System.FormatException">
- <paramref name="input" /> is not valid string with quality header value information.</exception>
- </member>
- <member name="P:System.Net.Http.Headers.StringWithQualityHeaderValue.Quality">
- <returns>Returns <see cref="T:System.Double" />.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.StringWithQualityHeaderValue.System#ICloneable#Clone">
- <summary>Creates a new object that is a copy of the current <see cref="T:System.Net.Http.Headers.StringWithQualityHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Object" />.A copy of the current instance.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.StringWithQualityHeaderValue.ToString">
- <summary>Returns a string that represents the current <see cref="T:System.Net.Http.Headers.StringWithQualityHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.String" />.A string that represents the current object.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.StringWithQualityHeaderValue.TryParse(System.String,System.Net.Http.Headers.StringWithQualityHeaderValue@)">
- <summary>Determines whether a string is valid <see cref="T:System.Net.Http.Headers.StringWithQualityHeaderValue" /> information.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if <paramref name="input" /> is valid <see cref="T:System.Net.Http.Headers.StringWithQualityHeaderValue" /> information; otherwise, false.</returns>
- <param name="input">The string to validate.</param>
- <param name="parsedValue">The <see cref="T:System.Net.Http.Headers.StringWithQualityHeaderValue" /> version of the string.</param>
- </member>
- <member name="P:System.Net.Http.Headers.StringWithQualityHeaderValue.Value">
- <returns>Returns <see cref="T:System.String" />.</returns>
- </member>
- <member name="T:System.Net.Http.Headers.TransferCodingHeaderValue">
- <summary>Represents a transfer-coding header value.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.TransferCodingHeaderValue.#ctor(System.Net.Http.Headers.TransferCodingHeaderValue)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.TransferCodingHeaderValue" /> class.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.TransferCodingHeaderValue.#ctor(System.String)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.TransferCodingHeaderValue" /> class.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.TransferCodingHeaderValue.Equals(System.Object)">
- <summary>Determines whether the specified Object is equal to the current <see cref="T:System.Net.Http.Headers.TransferCodingHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the specified <see cref="T:System.Object" /> is equal to the current object; otherwise, false.</returns>
- <param name="obj">The object to compare with the current object.</param>
- </member>
- <member name="M:System.Net.Http.Headers.TransferCodingHeaderValue.GetHashCode">
- <summary>Serves as a hash function for an <see cref="T:System.Net.Http.Headers.TransferCodingHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.Int32" />.A hash code for the current object.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.TransferCodingHeaderValue.Parameters">
- <summary>Gets the transfer-coding parameters.</summary>
- <returns>Returns <see cref="T:System.Collections.Generic.ICollection`1" />.The transfer-coding parameters.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.TransferCodingHeaderValue.Parse(System.String)">
- <summary>Converts a string to an <see cref="T:System.Net.Http.Headers.TransferCodingHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.TransferCodingHeaderValue" />.An <see cref="T:System.Net.Http.Headers.AuthenticationHeaderValue" /> instance.</returns>
- <param name="input">A string that represents transfer-coding header value information.</param>
- <exception cref="T:System.ArgumentNullException">
- <paramref name="input" /> is a null reference.</exception>
- <exception cref="T:System.FormatException">
- <paramref name="input" /> is not valid transfer-coding header value information.</exception>
- </member>
- <member name="M:System.Net.Http.Headers.TransferCodingHeaderValue.System#ICloneable#Clone">
- <summary>Creates a new object that is a copy of the current <see cref="T:System.Net.Http.Headers.TransferCodingHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Object" />.A copy of the current instance.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.TransferCodingHeaderValue.ToString">
- <summary>Returns a string that represents the current <see cref="T:System.Net.Http.Headers.TransferCodingHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.String" />.A string that represents the current object.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.TransferCodingHeaderValue.TryParse(System.String,System.Net.Http.Headers.TransferCodingHeaderValue@)">
- <summary>Determines whether a string is valid <see cref="T:System.Net.Http.Headers.TransferCodingHeaderValue" /> information.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if <paramref name="input" /> is valid <see cref="T:System.Net.Http.Headers.TransferCodingHeaderValue" /> information; otherwise, false.</returns>
- <param name="input">The string to validate.</param>
- <param name="parsedValue">The <see cref="T:System.Net.Http.Headers.TransferCodingHeaderValue" /> version of the string.</param>
- </member>
- <member name="P:System.Net.Http.Headers.TransferCodingHeaderValue.Value">
- <summary>Gets the transfer-coding value.</summary>
- <returns>Returns <see cref="T:System.String" />.The transfer-coding value.</returns>
- </member>
- <member name="T:System.Net.Http.Headers.TransferCodingWithQualityHeaderValue">
- <summary>Represents a transfer-coding header value with optional quality.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.TransferCodingWithQualityHeaderValue.#ctor(System.String)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.TransferCodingWithQualityHeaderValue" /> class.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.TransferCodingWithQualityHeaderValue.#ctor(System.String,System.Double)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.TransferCodingWithQualityHeaderValue" /> class.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.TransferCodingWithQualityHeaderValue.Parse(System.String)">
- <summary>Converts a string to an <see cref="T:System.Net.Http.Headers.TransferCodingWithQualityHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.TransferCodingWithQualityHeaderValue" />.An <see cref="T:System.Net.Http.Headers.TransferCodingWithQualityHeaderValue" /> instance.</returns>
- <param name="input">A string that represents transfer-coding value information.</param>
- <exception cref="T:System.ArgumentNullException">
- <paramref name="input" /> is a null reference.</exception>
- <exception cref="T:System.FormatException">
- <paramref name="input" /> is not valid transfer-coding with quality header value information.</exception>
- </member>
- <member name="P:System.Net.Http.Headers.TransferCodingWithQualityHeaderValue.Quality">
- <returns>Returns <see cref="T:System.Double" />.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.TransferCodingWithQualityHeaderValue.System#ICloneable#Clone">
- <summary>Creates a new object that is a copy of the current <see cref="T:System.Net.Http.Headers.TransferCodingWithQualityHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Object" />.A copy of the current instance.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.TransferCodingWithQualityHeaderValue.TryParse(System.String,System.Net.Http.Headers.TransferCodingWithQualityHeaderValue@)">
- <summary>Determines whether a string is valid <see cref="T:System.Net.Http.Headers.TransferCodingWithQualityHeaderValue" /> information.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if <paramref name="input" /> is valid <see cref="T:System.Net.Http.Headers.TransferCodingWithQualityHeaderValue" /> information; otherwise, false.</returns>
- <param name="input">The string to validate.</param>
- <param name="parsedValue">The <see cref="T:System.Net.Http.Headers.TransferCodingWithQualityHeaderValue" /> version of the string.</param>
- </member>
- <member name="T:System.Net.Http.Headers.ViaHeaderValue">
- <summary>Represents the value of a Via header.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.ViaHeaderValue.#ctor(System.String,System.String)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.ViaHeaderValue" /> class.</summary>
- <param name="protocolVersion">The protocol version of the received protocol.</param>
- <param name="receivedBy">The host and port that the request or response was received by.</param>
- </member>
- <member name="M:System.Net.Http.Headers.ViaHeaderValue.#ctor(System.String,System.String,System.String)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.ViaHeaderValue" /> class.</summary>
- <param name="protocolVersion">The protocol version of the received protocol.</param>
- <param name="receivedBy">The host and port that the request or response was received by.</param>
- <param name="protocolName">The protocol name of the received protocol.</param>
- </member>
- <member name="M:System.Net.Http.Headers.ViaHeaderValue.#ctor(System.String,System.String,System.String,System.String)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.ViaHeaderValue" /> class.</summary>
- <param name="protocolVersion">The protocol version of the received protocol.</param>
- <param name="receivedBy">The host and port that the request or response was received by.</param>
- <param name="protocolName">The protocol name of the received protocol.</param>
- <param name="comment">The comment field used to identify the software of the recipient proxy or gateway.</param>
- </member>
- <member name="P:System.Net.Http.Headers.ViaHeaderValue.Comment">
- <summary>Gets the comment field used to identify the software of the recipient proxy or gateway.</summary>
- <returns>Returns <see cref="T:System.String" />.The comment field used to identify the software of the recipient proxy or gateway.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.ViaHeaderValue.Equals(System.Object)">
- <summary>Determines whether the specified <see cref="T:System.Object" /> is equal to the current <see cref="T:System.Net.Http.Headers.ViaHeaderValue" />object.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the specified <see cref="T:System.Object" /> is equal to the current object; otherwise, false.</returns>
- <param name="obj">The object to compare with the current object.</param>
- </member>
- <member name="M:System.Net.Http.Headers.ViaHeaderValue.GetHashCode">
- <summary>Serves as a hash function for an <see cref="T:System.Net.Http.Headers.ViaHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.Int32" />.Returns a hash code for the current object.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.ViaHeaderValue.Parse(System.String)">
- <summary>Converts a string to an <see cref="T:System.Net.Http.Headers.ViaHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Net.Http.Headers.ViaHeaderValue" />.An <see cref="T:System.Net.Http.Headers.ViaHeaderValue" /> instance.</returns>
- <param name="input">A string that represents via header value information.</param>
- <exception cref="T:System.ArgumentNullException">
- <paramref name="input" /> is a null reference.</exception>
- <exception cref="T:System.FormatException">
- <paramref name="input" /> is not valid via header value information.</exception>
- </member>
- <member name="P:System.Net.Http.Headers.ViaHeaderValue.ProtocolName">
- <summary>Gets the protocol name of the received protocol.</summary>
- <returns>Returns <see cref="T:System.String" />.The protocol name.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.ViaHeaderValue.ProtocolVersion">
- <summary>Gets the protocol version of the received protocol.</summary>
- <returns>Returns <see cref="T:System.String" />.The protocol version.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.ViaHeaderValue.ReceivedBy">
- <summary>Gets the host and port that the request or response was received by.</summary>
- <returns>Returns <see cref="T:System.String" />.The host and port that the request or response was received by.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.ViaHeaderValue.System#ICloneable#Clone">
- <summary>Creates a new object that is a copy of the current <see cref="T:System.Net.Http.Headers.ViaHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Object" />.A copy of the current instance.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.ViaHeaderValue.ToString">
- <summary>Returns a string that represents the current <see cref="T:System.Net.Http.Headers.ViaHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.String" />.A string that represents the current object.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.ViaHeaderValue.TryParse(System.String,System.Net.Http.Headers.ViaHeaderValue@)">
- <summary>Determines whether a string is valid <see cref="T:System.Net.Http.Headers.ViaHeaderValue" /> information.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if <paramref name="input" /> is valid <see cref="T:System.Net.Http.Headers.ViaHeaderValue" /> information; otherwise, false.</returns>
- <param name="input">The string to validate.</param>
- <param name="parsedValue">The <see cref="T:System.Net.Http.Headers.ViaHeaderValue" /> version of the string.</param>
- </member>
- <member name="T:System.Net.Http.Headers.WarningHeaderValue">
- <summary>Represents a warning value used by the Warning header.</summary>
- </member>
- <member name="M:System.Net.Http.Headers.WarningHeaderValue.#ctor(System.Int32,System.String,System.String)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.WarningHeaderValue" /> class.</summary>
- <param name="code">The specific warning code.</param>
- <param name="agent">The host that attached the warning.</param>
- <param name="text">A quoted-string containing the warning text.</param>
- </member>
- <member name="M:System.Net.Http.Headers.WarningHeaderValue.#ctor(System.Int32,System.String,System.String,System.DateTimeOffset)">
- <summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.WarningHeaderValue" /> class.</summary>
- <param name="code">The specific warning code.</param>
- <param name="agent">The host that attached the warning.</param>
- <param name="text">A quoted-string containing the warning text.</param>
- <param name="date">The date/time stamp of the warning.</param>
- </member>
- <member name="P:System.Net.Http.Headers.WarningHeaderValue.Agent">
- <summary>Gets the host that attached the warning.</summary>
- <returns>Returns <see cref="T:System.String" />.The host that attached the warning.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.WarningHeaderValue.Code">
- <summary>Gets the specific warning code.</summary>
- <returns>Returns <see cref="T:System.Int32" />.The specific warning code.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.WarningHeaderValue.Date">
- <summary>Gets the date/time stamp of the warning.</summary>
- <returns>Returns <see cref="T:System.DateTimeOffset" />.The date/time stamp of the warning.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.WarningHeaderValue.Equals(System.Object)">
- <summary>Determines whether the specified <see cref="T:System.Object" /> is equal to the current <see cref="T:System.Net.Http.Headers.WarningHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if the specified <see cref="T:System.Object" /> is equal to the current object; otherwise, false.</returns>
- <param name="obj">The object to compare with the current object.</param>
- </member>
- <member name="M:System.Net.Http.Headers.WarningHeaderValue.GetHashCode">
- <summary>Serves as a hash function for an <see cref="T:System.Net.Http.Headers.WarningHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.Int32" />.A hash code for the current object.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.WarningHeaderValue.Parse(System.String)">
- <summary>Converts a string to an <see cref="T:System.Net.Http.Headers.WarningHeaderValue" /> instance.</summary>
- <returns>Returns an <see cref="T:System.Net.Http.Headers.WarningHeaderValue" /> instance.</returns>
- <param name="input">A string that represents authentication header value information.</param>
- <exception cref="T:System.ArgumentNullException">
- <paramref name="input" /> is a null reference.</exception>
- <exception cref="T:System.FormatException">
- <paramref name="input" /> is not valid authentication header value information.</exception>
- </member>
- <member name="M:System.Net.Http.Headers.WarningHeaderValue.System#ICloneable#Clone">
- <summary>Creates a new object that is a copy of the current <see cref="T:System.Net.Http.Headers.WarningHeaderValue" /> instance.</summary>
- <returns>Returns <see cref="T:System.Object" />.Returns a copy of the current instance.</returns>
- </member>
- <member name="P:System.Net.Http.Headers.WarningHeaderValue.Text">
- <summary>Gets a quoted-string containing the warning text.</summary>
- <returns>Returns <see cref="T:System.String" />.A quoted-string containing the warning text.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.WarningHeaderValue.ToString">
- <summary>Returns a string that represents the current <see cref="T:System.Net.Http.Headers.WarningHeaderValue" /> object.</summary>
- <returns>Returns <see cref="T:System.String" />.A string that represents the current object.</returns>
- </member>
- <member name="M:System.Net.Http.Headers.WarningHeaderValue.TryParse(System.String,System.Net.Http.Headers.WarningHeaderValue@)">
- <summary>Determines whether a string is valid <see cref="T:System.Net.Http.Headers.WarningHeaderValue" /> information.</summary>
- <returns>Returns <see cref="T:System.Boolean" />.true if <paramref name="input" /> is valid <see cref="T:System.Net.Http.Headers.WarningHeaderValue" /> information; otherwise, false.</returns>
- <param name="input">The string to validate.</param>
- <param name="parsedValue">The <see cref="T:System.Net.Http.Headers.WarningHeaderValue" /> version of the string.</param>
- </member>
- </members>
-</doc>
\ No newline at end of file diff --git a/SendGrid/packages/Microsoft.Net.Http.2.0.20710.0/lib/net45/_._ b/SendGrid/packages/Microsoft.Net.Http.2.0.20710.0/lib/net45/_._ deleted file mode 100644 index 5f28270..0000000 --- a/SendGrid/packages/Microsoft.Net.Http.2.0.20710.0/lib/net45/_._ +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/SendGrid/packages/Moq.4.0.10827/License.txt b/SendGrid/packages/Moq.4.0.10827/License.txt deleted file mode 100644 index 8b6bcf8..0000000 --- a/SendGrid/packages/Moq.4.0.10827/License.txt +++ /dev/null @@ -1,39 +0,0 @@ -Copyright (c) 2007. Clarius Consulting, Manas Technology Solutions, InSTEDD
-http://code.google.com/p/moq/
-All rights reserved.
-
-Redistribution and use in source and binary forms,
-with or without modification, are permitted provided
-that the following conditions are met:
-
- * Redistributions of source code must retain the
- above copyright notice, this list of conditions and
- the following disclaimer.
-
- * Redistributions in binary form must reproduce
- the above copyright notice, this list of conditions
- and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
- * Neither the name of Clarius Consulting, Manas Technology Solutions or InSTEDD nor the
- names of its contributors may be used to endorse
- or promote products derived from this software
- without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
-CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
-INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
-CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-SUCH DAMAGE.
-
-[This is the BSD license, see
- http://www.opensource.org/licenses/bsd-license.php]
\ No newline at end of file diff --git a/SendGrid/packages/Moq.4.0.10827/Moq.4.0.10827.nupkg b/SendGrid/packages/Moq.4.0.10827/Moq.4.0.10827.nupkg Binary files differdeleted file mode 100644 index 91e88a4..0000000 --- a/SendGrid/packages/Moq.4.0.10827/Moq.4.0.10827.nupkg +++ /dev/null diff --git a/SendGrid/packages/Moq.4.0.10827/Moq.chm b/SendGrid/packages/Moq.4.0.10827/Moq.chm Binary files differdeleted file mode 100644 index f5779bb..0000000 --- a/SendGrid/packages/Moq.4.0.10827/Moq.chm +++ /dev/null diff --git a/SendGrid/packages/Moq.4.0.10827/lib/NET35/Moq.dll b/SendGrid/packages/Moq.4.0.10827/lib/NET35/Moq.dll Binary files differdeleted file mode 100644 index 3d3b8cc..0000000 --- a/SendGrid/packages/Moq.4.0.10827/lib/NET35/Moq.dll +++ /dev/null diff --git a/SendGrid/packages/Moq.4.0.10827/lib/NET35/Moq.pdb b/SendGrid/packages/Moq.4.0.10827/lib/NET35/Moq.pdb Binary files differdeleted file mode 100644 index b0eaa80..0000000 --- a/SendGrid/packages/Moq.4.0.10827/lib/NET35/Moq.pdb +++ /dev/null diff --git a/SendGrid/packages/Moq.4.0.10827/lib/NET35/Moq.xml b/SendGrid/packages/Moq.4.0.10827/lib/NET35/Moq.xml deleted file mode 100644 index 4320775..0000000 --- a/SendGrid/packages/Moq.4.0.10827/lib/NET35/Moq.xml +++ /dev/null @@ -1,5768 +0,0 @@ -<?xml version="1.0"?>
-<doc>
- <assembly>
- <name>Moq</name>
- </assembly>
- <members>
- <member name="T:Moq.Language.ISetupConditionResult`1">
- <summary>
- Implements the fluent API.
- </summary>
- </member>
- <member name="M:Moq.Language.ISetupConditionResult`1.Setup(System.Linq.Expressions.Expression{System.Action{`0}})">
- <summary>
- The expectation will be considered only in the former condition.
- </summary>
- <param name="expression"></param>
- <returns></returns>
- </member>
- <member name="M:Moq.Language.ISetupConditionResult`1.Setup``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
- <summary>
- The expectation will be considered only in the former condition.
- </summary>
- <typeparam name="TResult"></typeparam>
- <param name="expression"></param>
- <returns></returns>
- </member>
- <member name="M:Moq.Language.ISetupConditionResult`1.SetupGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
- <summary>
- Setups the get.
- </summary>
- <typeparam name="TProperty">The type of the property.</typeparam>
- <param name="expression">The expression.</param>
- <returns></returns>
- </member>
- <member name="M:Moq.Language.ISetupConditionResult`1.SetupSet``1(System.Action{`0})">
- <summary>
- Setups the set.
- </summary>
- <typeparam name="TProperty">The type of the property.</typeparam>
- <param name="setterExpression">The setter expression.</param>
- <returns></returns>
- </member>
- <member name="M:Moq.Language.ISetupConditionResult`1.SetupSet(System.Action{`0})">
- <summary>
- Setups the set.
- </summary>
- <param name="setterExpression">The setter expression.</param>
- <returns></returns>
- </member>
- <member name="T:Moq.Language.ICallback">
- <summary>
- Defines the <c>Callback</c> verb and overloads.
- </summary>
- </member>
- <member name="T:Moq.IHideObjectMembers">
- <summary>
- Helper interface used to hide the base <see cref="T:System.Object"/>
- members from the fluent API to make it much cleaner
- in Visual Studio intellisense.
- </summary>
- </member>
- <member name="M:Moq.IHideObjectMembers.GetType">
- <summary/>
- </member>
- <member name="M:Moq.IHideObjectMembers.GetHashCode">
- <summary/>
- </member>
- <member name="M:Moq.IHideObjectMembers.ToString">
- <summary/>
- </member>
- <member name="M:Moq.IHideObjectMembers.Equals(System.Object)">
- <summary/>
- </member>
- <member name="M:Moq.Language.ICallback.Callback(System.Action)">
- <summary>
- Specifies a callback to invoke when the method is called.
- </summary>
- <param name="action">The callback method to invoke.</param>
- <example>
- The following example specifies a callback to set a boolean
- value that can be used later:
- <code>
- var called = false;
- mock.Setup(x => x.Execute())
- .Callback(() => called = true);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``1(System.Action{``0})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T">The argument type of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <example>
- Invokes the given callback with the concrete invocation argument value.
- <para>
- Notice how the specific string argument is retrieved by simply declaring
- it as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(It.IsAny<string>()))
- .Callback((string command) => Console.WriteLine(command));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``2(System.Action{``0,``1})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2) => Console.WriteLine(arg1 + arg2));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``3(System.Action{``0,``1,``2})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3) => Console.WriteLine(arg1 + arg2 + arg3));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``4(System.Action{``0,``1,``2,``3})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4) => Console.WriteLine(arg1 + arg2 + arg3 + arg4));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``5(System.Action{``0,``1,``2,``3,``4})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``6(System.Action{``0,``1,``2,``3,``4,``5})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``7(System.Action{``0,``1,``2,``3,``4,``5,``6})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``8(System.Action{``0,``1,``2,``3,``4,``5,``6,``7})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``9(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``10(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``11(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``12(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``13(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``14(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``15(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,``14})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
- <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``16(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,``14,``15})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
- <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>
- <typeparam name="T16">The type of the sixteenth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15, string arg16) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16));
- </code>
- </example>
- </member>
- <member name="T:Moq.Language.ICallback`2">
- <summary>
- Defines the <c>Callback</c> verb and overloads for callbacks on
- setups that return a value.
- </summary>
- <typeparam name="TMock">Mocked type.</typeparam>
- <typeparam name="TResult">Type of the return value of the setup.</typeparam>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback(System.Action)">
- <summary>
- Specifies a callback to invoke when the method is called.
- </summary>
- <param name="action">The callback method to invoke.</param>
- <example>
- The following example specifies a callback to set a boolean value that can be used later:
- <code>
- var called = false;
- mock.Setup(x => x.Execute())
- .Callback(() => called = true)
- .Returns(true);
- </code>
- Note that in the case of value-returning methods, after the <c>Callback</c>
- call you can still specify the return value.
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``1(System.Action{``0})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T">The type of the argument of the invoked method.</typeparam>
- <param name="action">Callback method to invoke.</param>
- <example>
- Invokes the given callback with the concrete invocation argument value.
- <para>
- Notice how the specific string argument is retrieved by simply declaring
- it as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(It.IsAny<string>()))
- .Callback(command => Console.WriteLine(command))
- .Returns(true);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``2(System.Action{``0,``1})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2) => Console.WriteLine(arg1 + arg2));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``3(System.Action{``0,``1,``2})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3) => Console.WriteLine(arg1 + arg2 + arg3));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``4(System.Action{``0,``1,``2,``3})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4) => Console.WriteLine(arg1 + arg2 + arg3 + arg4));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``5(System.Action{``0,``1,``2,``3,``4})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4, arg5) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``6(System.Action{``0,``1,``2,``3,``4,``5})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``7(System.Action{``0,``1,``2,``3,``4,``5,``6})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``8(System.Action{``0,``1,``2,``3,``4,``5,``6,``7})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``9(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``10(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``11(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``12(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``13(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``14(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``15(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,``14})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
- <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``16(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,``14,``15})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
- <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>
- <typeparam name="T16">The type of the sixteenth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16));
- </code>
- </example>
- </member>
- <member name="T:Moq.Language.IRaise`1">
- <summary>
- Defines the <c>Raises</c> verb.
- </summary>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)">
- <summary>
- Specifies the event that will be raised
- when the setup is met.
- </summary>
- <param name="eventExpression">An expression that represents an event attach or detach action.</param>
- <param name="args">The event arguments to pass for the raised event.</param>
- <example>
- The following example shows how to raise an event when
- the setup is met:
- <code>
- var mock = new Mock<IContainer>();
-
- mock.Setup(add => add.Add(It.IsAny<string>(), It.IsAny<object>()))
- .Raises(add => add.Added += null, EventArgs.Empty);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.Func{System.EventArgs})">
- <summary>
- Specifies the event that will be raised
- when the setup is matched.
- </summary>
- <param name="eventExpression">An expression that represents an event attach or detach action.</param>
- <param name="func">A function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.Object[])">
- <summary>
- Specifies the custom event that will be raised
- when the setup is matched.
- </summary>
- <param name="eventExpression">An expression that represents an event attach or detach action.</param>
- <param name="args">The arguments to pass to the custom delegate (non EventHandler-compatible).</param>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``1(System.Action{`0},System.Func{``0,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``2(System.Action{`0},System.Func{``0,``1,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``3(System.Action{`0},System.Func{``0,``1,``2,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``4(System.Action{`0},System.Func{``0,``1,``2,``3,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``5(System.Action{`0},System.Func{``0,``1,``2,``3,``4,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``6(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``7(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``8(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``9(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``10(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``11(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>
- <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``12(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>
- <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>
- <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``13(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>
- <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>
- <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``14(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>
- <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>
- <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument received by the expected invocation.</typeparam>
- <typeparam name="T14">The type of the fourteenth argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``15(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,``14,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>
- <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>
- <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument received by the expected invocation.</typeparam>
- <typeparam name="T14">The type of the fourteenth argument received by the expected invocation.</typeparam>
- <typeparam name="T15">The type of the fifteenth argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``16(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,``14,``15,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>
- <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>
- <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument received by the expected invocation.</typeparam>
- <typeparam name="T14">The type of the fourteenth argument received by the expected invocation.</typeparam>
- <typeparam name="T15">The type of the fifteenth argument received by the expected invocation.</typeparam>
- <typeparam name="T16">The type of the sixteenth argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="T:Moq.Language.IReturns`2">
- <summary>
- Defines the <c>Returns</c> verb.
- </summary>
- <typeparam name="TMock">Mocked type.</typeparam>
- <typeparam name="TResult">Type of the return value from the expression.</typeparam>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns(`1)">
- <summary>
- Specifies the value to return.
- </summary>
- <param name="value">The value to return, or <see langword="null"/>.</param>
- <example>
- Return a <c>true</c> value from the method call:
- <code>
- mock.Setup(x => x.Execute("ping"))
- .Returns(true);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns(System.Func{`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method.
- </summary>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <example group="returns">
- Return a calculated value when the method is called:
- <code>
- mock.Setup(x => x.Execute("ping"))
- .Returns(() => returnValues[0]);
- </code>
- The lambda expression to retrieve the return value is lazy-executed,
- meaning that its value may change depending on the moment the method
- is executed and the value the <c>returnValues</c> array has at
- that moment.
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``1(System.Func{``0,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T">The type of the argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <example group="returns">
- Return a calculated value which is evaluated lazily at the time of the invocation.
- <para>
- The lookup list can change between invocations and the setup
- will return different values accordingly. Also, notice how the specific
- string argument is retrieved by simply declaring it as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(It.IsAny<string>()))
- .Returns((string command) => returnValues[command]);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``2(System.Func{``0,``1,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2) => arg1 + arg2);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``3(System.Func{``0,``1,``2,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3) => arg1 + arg2 + arg3);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``4(System.Func{``0,``1,``2,``3,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4) => arg1 + arg2 + arg3 + arg4);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``5(System.Func{``0,``1,``2,``3,``4,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5) => arg1 + arg2 + arg3 + arg4 + arg5);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``6(System.Func{``0,``1,``2,``3,``4,``5,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``7(System.Func{``0,``1,``2,``3,``4,``5,``6,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``8(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``9(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``10(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``11(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``12(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``13(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``14(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``15(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,``14,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
- <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``16(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,``14,``15,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
- <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>
- <typeparam name="T16">The type of the sixteenth argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15, string arg16) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16);
- </code>
- </example>
- </member>
- <member name="T:Moq.Language.ISetupSequentialResult`1">
- <summary>
- Language for ReturnSequence
- </summary>
- </member>
- <member name="M:Moq.Language.ISetupSequentialResult`1.Returns(`0)">
- <summary>
- Returns value
- </summary>
- </member>
- <member name="M:Moq.Language.ISetupSequentialResult`1.Throws(System.Exception)">
- <summary>
- Throws an exception
- </summary>
- </member>
- <member name="M:Moq.Language.ISetupSequentialResult`1.Throws``1">
- <summary>
- Throws an exception
- </summary>
- </member>
- <member name="F:Moq.Linq.FluentMockVisitor.isFirst">
- <summary>
- The first method call or member access will be the
- last segment of the expression (depth-first traversal),
- which is the one we have to Setup rather than FluentMock.
- And the last one is the one we have to Mock.Get rather
- than FluentMock.
- </summary>
- </member>
- <member name="T:Moq.Mock">
- <summary>
- Base class for mocks and static helper class with methods that
- apply to mocked objects, such as <see cref="M:Moq.Mock.Get``1(``0)"/> to
- retrieve a <see cref="T:Moq.Mock`1"/> from an object instance.
- </summary>
- </member>
- <member name="M:Moq.Mock.Of``1">
- <summary>
- Creates an mock object of the indicated type.
- </summary>
- <typeparam name="T">The type of the mocked object.</typeparam>
- <returns>The mocked object created.</returns>
- </member>
- <member name="M:Moq.Mock.Of``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">
- <summary>
- Creates an mock object of the indicated type.
- </summary>
- <param name="predicate">The predicate with the specification of how the mocked object should behave.</param>
- <typeparam name="T">The type of the mocked object.</typeparam>
- <returns>The mocked object created.</returns>
- </member>
- <member name="M:Moq.Mock.#ctor">
- <summary>
- Initializes a new instance of the <see cref="T:Moq.Mock"/> class.
- </summary>
- </member>
- <member name="M:Moq.Mock.Get``1(``0)">
- <summary>
- Retrieves the mock object for the given object instance.
- </summary><typeparam name="T">
- Type of the mock to retrieve. Can be omitted as it's inferred
- from the object instance passed in as the <paramref name="mocked"/> instance.
- </typeparam><param name="mocked">The instance of the mocked object.</param><returns>The mock associated with the mocked object.</returns><exception cref="T:System.ArgumentException">
- The received <paramref name="mocked"/> instance
- was not created by Moq.
- </exception><example group="advanced">
- The following example shows how to add a new setup to an object
- instance which is not the original <see cref="T:Moq.Mock`1"/> but rather
- the object associated with it:
- <code>
- // Typed instance, not the mock, is retrieved from some test API.
- HttpContextBase context = GetMockContext();
-
- // context.Request is the typed object from the "real" API
- // so in order to add a setup to it, we need to get
- // the mock that "owns" it
- Mock<HttpRequestBase> request = Mock.Get(context.Request);
- mock.Setup(req => req.AppRelativeCurrentExecutionFilePath)
- .Returns(tempUrl);
- </code>
- </example>
- </member>
- <member name="M:Moq.Mock.OnGetObject">
- <summary>
- Returns the mocked object value.
- </summary>
- </member>
- <member name="M:Moq.Mock.Verify">
- <summary>
- Verifies that all verifiable expectations have been met.
- </summary><example group="verification">
- This example sets up an expectation and marks it as verifiable. After
- the mock is used, a <c>Verify()</c> call is issued on the mock
- to ensure the method in the setup was invoked:
- <code>
- var mock = new Mock<IWarehouse>();
- this.Setup(x => x.HasInventory(TALISKER, 50)).Verifiable().Returns(true);
- ...
- // other test code
- ...
- // Will throw if the test code has didn't call HasInventory.
- this.Verify();
- </code>
- </example><exception cref="T:Moq.MockException">Not all verifiable expectations were met.</exception>
- </member>
- <member name="M:Moq.Mock.VerifyAll">
- <summary>
- Verifies all expectations regardless of whether they have
- been flagged as verifiable.
- </summary><example group="verification">
- This example sets up an expectation without marking it as verifiable. After
- the mock is used, a <see cref="M:Moq.Mock.VerifyAll"/> call is issued on the mock
- to ensure that all expectations are met:
- <code>
- var mock = new Mock<IWarehouse>();
- this.Setup(x => x.HasInventory(TALISKER, 50)).Returns(true);
- ...
- // other test code
- ...
- // Will throw if the test code has didn't call HasInventory, even
- // that expectation was not marked as verifiable.
- this.VerifyAll();
- </code>
- </example><exception cref="T:Moq.MockException">At least one expectation was not met.</exception>
- </member>
- <member name="M:Moq.Mock.GetInterceptor(System.Linq.Expressions.Expression,Moq.Mock)">
- <summary>
- Gets the interceptor target for the given expression and root mock,
- building the intermediate hierarchy of mock objects if necessary.
- </summary>
- </member>
- <member name="M:Moq.Mock.DoRaise(System.Reflection.EventInfo,System.EventArgs)">
- <summary>
- Raises the associated event with the given
- event argument data.
- </summary>
- </member>
- <member name="M:Moq.Mock.DoRaise(System.Reflection.EventInfo,System.Object[])">
- <summary>
- Raises the associated event with the given
- event argument data.
- </summary>
- </member>
- <member name="M:Moq.Mock.As``1">
- <summary>
- Adds an interface implementation to the mock,
- allowing setups to be specified for it.
- </summary><remarks>
- This method can only be called before the first use
- of the mock <see cref="P:Moq.Mock.Object"/> property, at which
- point the runtime type has already been generated
- and no more interfaces can be added to it.
- <para>
- Also, <typeparamref name="TInterface"/> must be an
- interface and not a class, which must be specified
- when creating the mock instead.
- </para>
- </remarks><exception cref="T:System.InvalidOperationException">
- The mock type
- has already been generated by accessing the <see cref="P:Moq.Mock.Object"/> property.
- </exception><exception cref="T:System.ArgumentException">
- The <typeparamref name="TInterface"/> specified
- is not an interface.
- </exception><example>
- The following example creates a mock for the main interface
- and later adds <see cref="T:System.IDisposable"/> to it to verify
- it's called by the consumer code:
- <code>
- var mock = new Mock<IProcessor>();
- mock.Setup(x => x.Execute("ping"));
-
- // add IDisposable interface
- var disposable = mock.As<IDisposable>();
- disposable.Setup(d => d.Dispose()).Verifiable();
- </code>
- </example><typeparam name="TInterface">Type of interface to cast the mock to.</typeparam>
- </member>
- <member name="M:Moq.Mock.SetReturnsDefault``1(``0)">
- <!-- No matching elements were found for the following include tag --><include file="Mock.Generic.xdoc" path="docs/doc[@for="Mock.SetReturnDefault{TReturn}"]/*"/>
- </member>
- <member name="P:Moq.Mock.Behavior">
- <summary>
- Behavior of the mock, according to the value set in the constructor.
- </summary>
- </member>
- <member name="P:Moq.Mock.CallBase">
- <summary>
- Whether the base member virtual implementation will be called
- for mocked classes if no setup is matched. Defaults to <see langword="false"/>.
- </summary>
- </member>
- <member name="P:Moq.Mock.DefaultValue">
- <summary>
- Specifies the behavior to use when returning default values for
- unexpected invocations on loose mocks.
- </summary>
- </member>
- <member name="P:Moq.Mock.Object">
- <summary>
- Gets the mocked object instance.
- </summary>
- </member>
- <member name="P:Moq.Mock.MockedType">
- <summary>
- Retrieves the type of the mocked object, its generic type argument.
- This is used in the auto-mocking of hierarchy access.
- </summary>
- </member>
- <member name="P:Moq.Mock.DefaultValueProvider">
- <summary>
- Specifies the class that will determine the default
- value to return when invocations are made that
- have no setups and need to return a default
- value (for loose mocks).
- </summary>
- </member>
- <member name="P:Moq.Mock.ImplementedInterfaces">
- <summary>
- Exposes the list of extra interfaces implemented by the mock.
- </summary>
- </member>
- <member name="T:Moq.MockRepository">
- <summary>
- Utility repository class to use to construct multiple
- mocks when consistent verification is
- desired for all of them.
- </summary>
- <remarks>
- If multiple mocks will be created during a test, passing
- the desired <see cref="T:Moq.MockBehavior"/> (if different than the
- <see cref="F:Moq.MockBehavior.Default"/> or the one
- passed to the repository constructor) and later verifying each
- mock can become repetitive and tedious.
- <para>
- This repository class helps in that scenario by providing a
- simplified creation of multiple mocks with a default
- <see cref="T:Moq.MockBehavior"/> (unless overriden by calling
- <see cref="M:Moq.MockFactory.Create``1(Moq.MockBehavior)"/>) and posterior verification.
- </para>
- </remarks>
- <example group="repository">
- The following is a straightforward example on how to
- create and automatically verify strict mocks using a <see cref="T:Moq.MockRepository"/>:
- <code>
- var repository = new MockRepository(MockBehavior.Strict);
-
- var foo = repository.Create<IFoo>();
- var bar = repository.Create<IBar>();
-
- // no need to call Verifiable() on the setup
- // as we'll be validating all of them anyway.
- foo.Setup(f => f.Do());
- bar.Setup(b => b.Redo());
-
- // exercise the mocks here
-
- repository.VerifyAll();
- // At this point all setups are already checked
- // and an optional MockException might be thrown.
- // Note also that because the mocks are strict, any invocation
- // that doesn't have a matching setup will also throw a MockException.
- </code>
- The following examples shows how to setup the repository
- to create loose mocks and later verify only verifiable setups:
- <code>
- var repository = new MockRepository(MockBehavior.Loose);
-
- var foo = repository.Create<IFoo>();
- var bar = repository.Create<IBar>();
-
- // this setup will be verified when we verify the repository
- foo.Setup(f => f.Do()).Verifiable();
-
- // this setup will NOT be verified
- foo.Setup(f => f.Calculate());
-
- // this setup will be verified when we verify the repository
- bar.Setup(b => b.Redo()).Verifiable();
-
- // exercise the mocks here
- // note that because the mocks are Loose, members
- // called in the interfaces for which no matching
- // setups exist will NOT throw exceptions,
- // and will rather return default values.
-
- repository.Verify();
- // At this point verifiable setups are already checked
- // and an optional MockException might be thrown.
- </code>
- The following examples shows how to setup the repository with a
- default strict behavior, overriding that default for a
- specific mock:
- <code>
- var repository = new MockRepository(MockBehavior.Strict);
-
- // this particular one we want loose
- var foo = repository.Create<IFoo>(MockBehavior.Loose);
- var bar = repository.Create<IBar>();
-
- // specify setups
-
- // exercise the mocks here
-
- repository.Verify();
- </code>
- </example>
- <seealso cref="T:Moq.MockBehavior"/>
- </member>
- <member name="T:Moq.MockFactory">
- <summary>
- Utility factory class to use to construct multiple
- mocks when consistent verification is
- desired for all of them.
- </summary>
- <remarks>
- If multiple mocks will be created during a test, passing
- the desired <see cref="T:Moq.MockBehavior"/> (if different than the
- <see cref="F:Moq.MockBehavior.Default"/> or the one
- passed to the factory constructor) and later verifying each
- mock can become repetitive and tedious.
- <para>
- This factory class helps in that scenario by providing a
- simplified creation of multiple mocks with a default
- <see cref="T:Moq.MockBehavior"/> (unless overriden by calling
- <see cref="M:Moq.MockFactory.Create``1(Moq.MockBehavior)"/>) and posterior verification.
- </para>
- </remarks>
- <example group="factory">
- The following is a straightforward example on how to
- create and automatically verify strict mocks using a <see cref="T:Moq.MockFactory"/>:
- <code>
- var factory = new MockFactory(MockBehavior.Strict);
-
- var foo = factory.Create<IFoo>();
- var bar = factory.Create<IBar>();
-
- // no need to call Verifiable() on the setup
- // as we'll be validating all of them anyway.
- foo.Setup(f => f.Do());
- bar.Setup(b => b.Redo());
-
- // exercise the mocks here
-
- factory.VerifyAll();
- // At this point all setups are already checked
- // and an optional MockException might be thrown.
- // Note also that because the mocks are strict, any invocation
- // that doesn't have a matching setup will also throw a MockException.
- </code>
- The following examples shows how to setup the factory
- to create loose mocks and later verify only verifiable setups:
- <code>
- var factory = new MockFactory(MockBehavior.Loose);
-
- var foo = factory.Create<IFoo>();
- var bar = factory.Create<IBar>();
-
- // this setup will be verified when we verify the factory
- foo.Setup(f => f.Do()).Verifiable();
-
- // this setup will NOT be verified
- foo.Setup(f => f.Calculate());
-
- // this setup will be verified when we verify the factory
- bar.Setup(b => b.Redo()).Verifiable();
-
- // exercise the mocks here
- // note that because the mocks are Loose, members
- // called in the interfaces for which no matching
- // setups exist will NOT throw exceptions,
- // and will rather return default values.
-
- factory.Verify();
- // At this point verifiable setups are already checked
- // and an optional MockException might be thrown.
- </code>
- The following examples shows how to setup the factory with a
- default strict behavior, overriding that default for a
- specific mock:
- <code>
- var factory = new MockFactory(MockBehavior.Strict);
-
- // this particular one we want loose
- var foo = factory.Create<IFoo>(MockBehavior.Loose);
- var bar = factory.Create<IBar>();
-
- // specify setups
-
- // exercise the mocks here
-
- factory.Verify();
- </code>
- </example>
- <seealso cref="T:Moq.MockBehavior"/>
- </member>
- <member name="M:Moq.MockFactory.#ctor(Moq.MockBehavior)">
- <summary>
- Initializes the factory with the given <paramref name="defaultBehavior"/>
- for newly created mocks from the factory.
- </summary>
- <param name="defaultBehavior">The behavior to use for mocks created
- using the <see cref="M:Moq.MockFactory.Create``1"/> factory method if not overriden
- by using the <see cref="M:Moq.MockFactory.Create``1(Moq.MockBehavior)"/> overload.</param>
- </member>
- <member name="M:Moq.MockFactory.Create``1">
- <summary>
- Creates a new mock with the default <see cref="T:Moq.MockBehavior"/>
- specified at factory construction time.
- </summary>
- <typeparam name="T">Type to mock.</typeparam>
- <returns>A new <see cref="T:Moq.Mock`1"/>.</returns>
- <example ignore="true">
- <code>
- var factory = new MockFactory(MockBehavior.Strict);
-
- var foo = factory.Create<IFoo>();
- // use mock on tests
-
- factory.VerifyAll();
- </code>
- </example>
- </member>
- <member name="M:Moq.MockFactory.Create``1(System.Object[])">
- <summary>
- Creates a new mock with the default <see cref="T:Moq.MockBehavior"/>
- specified at factory construction time and with the
- the given constructor arguments for the class.
- </summary>
- <remarks>
- The mock will try to find the best match constructor given the
- constructor arguments, and invoke that to initialize the instance.
- This applies only to classes, not interfaces.
- </remarks>
- <typeparam name="T">Type to mock.</typeparam>
- <param name="args">Constructor arguments for mocked classes.</param>
- <returns>A new <see cref="T:Moq.Mock`1"/>.</returns>
- <example ignore="true">
- <code>
- var factory = new MockFactory(MockBehavior.Default);
-
- var mock = factory.Create<MyBase>("Foo", 25, true);
- // use mock on tests
-
- factory.Verify();
- </code>
- </example>
- </member>
- <member name="M:Moq.MockFactory.Create``1(Moq.MockBehavior)">
- <summary>
- Creates a new mock with the given <paramref name="behavior"/>.
- </summary>
- <typeparam name="T">Type to mock.</typeparam>
- <param name="behavior">Behavior to use for the mock, which overrides
- the default behavior specified at factory construction time.</param>
- <returns>A new <see cref="T:Moq.Mock`1"/>.</returns>
- <example group="factory">
- The following example shows how to create a mock with a different
- behavior to that specified as the default for the factory:
- <code>
- var factory = new MockFactory(MockBehavior.Strict);
-
- var foo = factory.Create<IFoo>(MockBehavior.Loose);
- </code>
- </example>
- </member>
- <member name="M:Moq.MockFactory.Create``1(Moq.MockBehavior,System.Object[])">
- <summary>
- Creates a new mock with the given <paramref name="behavior"/>
- and with the the given constructor arguments for the class.
- </summary>
- <remarks>
- The mock will try to find the best match constructor given the
- constructor arguments, and invoke that to initialize the instance.
- This applies only to classes, not interfaces.
- </remarks>
- <typeparam name="T">Type to mock.</typeparam>
- <param name="behavior">Behavior to use for the mock, which overrides
- the default behavior specified at factory construction time.</param>
- <param name="args">Constructor arguments for mocked classes.</param>
- <returns>A new <see cref="T:Moq.Mock`1"/>.</returns>
- <example group="factory">
- The following example shows how to create a mock with a different
- behavior to that specified as the default for the factory, passing
- constructor arguments:
- <code>
- var factory = new MockFactory(MockBehavior.Default);
-
- var mock = factory.Create<MyBase>(MockBehavior.Strict, "Foo", 25, true);
- </code>
- </example>
- </member>
- <member name="M:Moq.MockFactory.CreateMock``1(Moq.MockBehavior,System.Object[])">
- <summary>
- Implements creation of a new mock within the factory.
- </summary>
- <typeparam name="T">Type to mock.</typeparam>
- <param name="behavior">The behavior for the new mock.</param>
- <param name="args">Optional arguments for the construction of the mock.</param>
- </member>
- <member name="M:Moq.MockFactory.Verify">
- <summary>
- Verifies all verifiable expectations on all mocks created
- by this factory.
- </summary>
- <seealso cref="M:Moq.Mock.Verify"/>
- <exception cref="T:Moq.MockException">One or more mocks had expectations that were not satisfied.</exception>
- </member>
- <member name="M:Moq.MockFactory.VerifyAll">
- <summary>
- Verifies all verifiable expectations on all mocks created
- by this factory.
- </summary>
- <seealso cref="M:Moq.Mock.Verify"/>
- <exception cref="T:Moq.MockException">One or more mocks had expectations that were not satisfied.</exception>
- </member>
- <member name="M:Moq.MockFactory.VerifyMocks(System.Action{Moq.Mock})">
- <summary>
- Invokes <paramref name="verifyAction"/> for each mock
- in <see cref="P:Moq.MockFactory.Mocks"/>, and accumulates the resulting
- <see cref="T:Moq.MockVerificationException"/> that might be
- thrown from the action.
- </summary>
- <param name="verifyAction">The action to execute against
- each mock.</param>
- </member>
- <member name="P:Moq.MockFactory.CallBase">
- <summary>
- Whether the base member virtual implementation will be called
- for mocked classes if no setup is matched. Defaults to <see langword="false"/>.
- </summary>
- </member>
- <member name="P:Moq.MockFactory.DefaultValue">
- <summary>
- Specifies the behavior to use when returning default values for
- unexpected invocations on loose mocks.
- </summary>
- </member>
- <member name="P:Moq.MockFactory.Mocks">
- <summary>
- Gets the mocks that have been created by this factory and
- that will get verified together.
- </summary>
- </member>
- <member name="M:Moq.MockRepository.Of``1">
- <summary>
- Access the universe of mocks of the given type, to retrieve those
- that behave according to the LINQ query specification.
- </summary>
- <typeparam name="T">The type of the mocked object to query.</typeparam>
- </member>
- <member name="M:Moq.MockRepository.Of``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">
- <summary>
- Access the universe of mocks of the given type, to retrieve those
- that behave according to the LINQ query specification.
- </summary>
- <param name="specification">The predicate with the setup expressions.</param>
- <typeparam name="T">The type of the mocked object to query.</typeparam>
- </member>
- <member name="M:Moq.MockRepository.OneOf``1">
- <summary>
- Creates an mock object of the indicated type.
- </summary>
- <typeparam name="T">The type of the mocked object.</typeparam>
- <returns>The mocked object created.</returns>
- </member>
- <member name="M:Moq.MockRepository.OneOf``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">
- <summary>
- Creates an mock object of the indicated type.
- </summary>
- <param name="specification">The predicate with the setup expressions.</param>
- <typeparam name="T">The type of the mocked object.</typeparam>
- <returns>The mocked object created.</returns>
- </member>
- <member name="M:Moq.MockRepository.CreateMockQuery``1">
- <summary>
- Creates the mock query with the underlying queriable implementation.
- </summary>
- </member>
- <member name="M:Moq.MockRepository.CreateQueryable``1">
- <summary>
- Wraps the enumerator inside a queryable.
- </summary>
- </member>
- <member name="M:Moq.MockRepository.CreateMocks``1">
- <summary>
- Method that is turned into the actual call from .Query{T}, to
- transform the queryable query into a normal enumerable query.
- This method is never used directly by consumers.
- </summary>
- </member>
- <member name="M:Moq.MockRepository.#ctor(Moq.MockBehavior)">
- <summary>
- Initializes the repository with the given <paramref name="defaultBehavior"/>
- for newly created mocks from the repository.
- </summary>
- <param name="defaultBehavior">The behavior to use for mocks created
- using the <see cref="M:Moq.MockFactory.Create``1"/> repository method if not overriden
- by using the <see cref="M:Moq.MockFactory.Create``1(Moq.MockBehavior)"/> overload.</param>
- </member>
- <member name="T:Moq.EmptyDefaultValueProvider">
- <summary>
- A <see cref="T:Moq.IDefaultValueProvider"/> that returns an empty default value
- for invocations that do not have setups or return values, with loose mocks.
- This is the default behavior for a mock.
- </summary>
- </member>
- <member name="T:Moq.IDefaultValueProvider">
- <summary>
- Interface to be implemented by classes that determine the
- default value of non-expected invocations.
- </summary>
- </member>
- <member name="M:Moq.IDefaultValueProvider.DefineDefault``1(``0)">
- <summary>
- Defines the default value to return in all the methods returning <typeparamref name="T"/>.
- </summary><typeparam name="T">The type of the return value.</typeparam><param name="value">The value to set as default.</param>
- </member>
- <member name="M:Moq.IDefaultValueProvider.ProvideDefault(System.Reflection.MethodInfo)">
- <summary>
- Provides a value for the given member and arguments.
- </summary><param name="member">
- The member to provide a default value for.
- </param>
- </member>
- <member name="T:Moq.ExpressionStringBuilder">
- <summary>
- The intention of <see cref="T:Moq.ExpressionStringBuilder"/> is to create a more readable
- string representation for the failure message.
- </summary>
- </member>
- <member name="T:Moq.Language.Flow.ICallbackResult">
- <summary>
- Implements the fluent API.
- </summary>
- </member>
- <member name="T:Moq.Language.IThrows">
- <summary>
- Defines the <c>Throws</c> verb.
- </summary>
- </member>
- <member name="M:Moq.Language.IThrows.Throws(System.Exception)">
- <summary>
- Specifies the exception to throw when the method is invoked.
- </summary>
- <param name="exception">Exception instance to throw.</param>
- <example>
- This example shows how to throw an exception when the method is
- invoked with an empty string argument:
- <code>
- mock.Setup(x => x.Execute(""))
- .Throws(new ArgumentException());
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IThrows.Throws``1">
- <summary>
- Specifies the type of exception to throw when the method is invoked.
- </summary>
- <typeparam name="TException">Type of exception to instantiate and throw when the setup is matched.</typeparam>
- <example>
- This example shows how to throw an exception when the method is
- invoked with an empty string argument:
- <code>
- mock.Setup(x => x.Execute(""))
- .Throws<ArgumentException>();
- </code>
- </example>
- </member>
- <member name="T:Moq.Language.Flow.IThrowsResult">
- <summary>
- Implements the fluent API.
- </summary>
- </member>
- <member name="T:Moq.Language.IOccurrence">
- <summary>
- Defines occurrence members to constraint setups.
- </summary>
- </member>
- <member name="M:Moq.Language.IOccurrence.AtMostOnce">
- <summary>
- The expected invocation can happen at most once.
- </summary>
- <example>
- <code>
- var mock = new Mock<ICommand>();
- mock.Setup(foo => foo.Execute("ping"))
- .AtMostOnce();
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IOccurrence.AtMost(System.Int32)">
- <summary>
- The expected invocation can happen at most specified number of times.
- </summary>
- <param name="callCount">The number of times to accept calls.</param>
- <example>
- <code>
- var mock = new Mock<ICommand>();
- mock.Setup(foo => foo.Execute("ping"))
- .AtMost( 5 );
- </code>
- </example>
- </member>
- <member name="T:Moq.Language.IVerifies">
- <summary>
- Defines the <c>Verifiable</c> verb.
- </summary>
- </member>
- <member name="M:Moq.Language.IVerifies.Verifiable">
- <summary>
- Marks the expectation as verifiable, meaning that a call
- to <see cref="M:Moq.Mock.Verify"/> will check if this particular
- expectation was met.
- </summary>
- <example>
- The following example marks the expectation as verifiable:
- <code>
- mock.Expect(x => x.Execute("ping"))
- .Returns(true)
- .Verifiable();
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IVerifies.Verifiable(System.String)">
- <summary>
- Marks the expectation as verifiable, meaning that a call
- to <see cref="M:Moq.Mock.Verify"/> will check if this particular
- expectation was met, and specifies a message for failures.
- </summary>
- <example>
- The following example marks the expectation as verifiable:
- <code>
- mock.Expect(x => x.Execute("ping"))
- .Returns(true)
- .Verifiable("Ping should be executed always!");
- </code>
- </example>
- </member>
- <member name="T:Moq.Language.Flow.ISetup`1">
- <summary>
- Implements the fluent API.
- </summary>
- </member>
- <member name="T:Moq.MethodCallReturn">
- <devdoc>
- We need this non-generics base class so that
- we can use <see cref="P:Moq.MethodCallReturn.HasReturnValue"/> from
- generic code.
- </devdoc>
- </member>
- <member name="T:Moq.Language.Flow.ISetup`2">
- <summary>
- Implements the fluent API.
- </summary>
- </member>
- <member name="T:Moq.Language.Flow.IReturnsThrows`2">
- <summary>
- Implements the fluent API.
- </summary>
- </member>
- <member name="T:Moq.Language.Flow.ISetupGetter`2">
- <summary>
- Implements the fluent API.
- </summary>
- </member>
- <member name="T:Moq.Language.ICallbackGetter`2">
- <summary>
- Defines the <c>Callback</c> verb for property getter setups.
- </summary>
- <seealso cref="M:Moq.Mock`1.SetupGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})"/>
- <typeparam name="TMock">Mocked type.</typeparam>
- <typeparam name="TProperty">Type of the property.</typeparam>
- </member>
- <member name="M:Moq.Language.ICallbackGetter`2.Callback(System.Action)">
- <summary>
- Specifies a callback to invoke when the property is retrieved.
- </summary>
- <param name="action">Callback method to invoke.</param>
- <example>
- Invokes the given callback with the property value being set.
- <code>
- mock.SetupGet(x => x.Suspended)
- .Callback(() => called = true)
- .Returns(true);
- </code>
- </example>
- </member>
- <member name="T:Moq.Language.Flow.IReturnsThrowsGetter`2">
- <summary>
- Implements the fluent API.
- </summary>
- </member>
- <member name="T:Moq.Language.IReturnsGetter`2">
- <summary>
- Defines the <c>Returns</c> verb for property get setups.
- </summary>
- <typeparam name="TMock">Mocked type.</typeparam>
- <typeparam name="TProperty">Type of the property.</typeparam>
- </member>
- <member name="M:Moq.Language.IReturnsGetter`2.Returns(`1)">
- <summary>
- Specifies the value to return.
- </summary>
- <param name="value">The value to return, or <see langword="null"/>.</param>
- <example>
- Return a <c>true</c> value from the property getter call:
- <code>
- mock.SetupGet(x => x.Suspended)
- .Returns(true);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturnsGetter`2.Returns(System.Func{`1})">
- <summary>
- Specifies a function that will calculate the value to return for the property.
- </summary>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <example>
- Return a calculated value when the property is retrieved:
- <code>
- mock.SetupGet(x => x.Suspended)
- .Returns(() => returnValues[0]);
- </code>
- The lambda expression to retrieve the return value is lazy-executed,
- meaning that its value may change depending on the moment the property
- is retrieved and the value the <c>returnValues</c> array has at
- that moment.
- </example>
- </member>
- <member name="T:Moq.Language.Flow.IReturnsResult`1">
- <summary>
- Implements the fluent API.
- </summary>
- </member>
- <member name="T:System.Action`5">
- <summary>
- Encapsulates a method that has five parameters and does not return a value.
- </summary>
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
- </member>
- <member name="T:System.Func`6">
- <summary>
- Encapsulates a method that has five parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.
- </summary>
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
- <return>The return value of the method that this delegate encapsulates.</return>
- </member>
- <member name="T:System.Action`6">
- <summary>
- Encapsulates a method that has six parameters and does not return a value.
- </summary>
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
- </member>
- <member name="T:System.Func`7">
- <summary>
- Encapsulates a method that has six parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.
- </summary>
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
- <return>The return value of the method that this delegate encapsulates.</return>
- </member>
- <member name="T:System.Action`7">
- <summary>
- Encapsulates a method that has seven parameters and does not return a value.
- </summary>
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
- </member>
- <member name="T:System.Func`8">
- <summary>
- Encapsulates a method that has seven parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.
- </summary>
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
- <return>The return value of the method that this delegate encapsulates.</return>
- </member>
- <member name="T:System.Action`8">
- <summary>
- Encapsulates a method that has eight parameters and does not return a value.
- </summary>
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
- <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>
- </member>
- <member name="T:System.Func`9">
- <summary>
- Encapsulates a method that has eight parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.
- </summary>
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
- <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>
- <return>The return value of the method that this delegate encapsulates.</return>
- </member>
- <member name="T:System.Action`9">
- <summary>
- Encapsulates a method that has nine parameters and does not return a value.
- </summary>
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
- <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>
- <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>
- </member>
- <member name="T:System.Func`10">
- <summary>
- Encapsulates a method that has nine parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.
- </summary>
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
- <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>
- <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>
- <return>The return value of the method that this delegate encapsulates.</return>
- </member>
- <member name="T:System.Action`10">
- <summary>
- Encapsulates a method that has ten parameters and does not return a value.
- </summary>
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
- <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>
- <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>
- <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>
- </member>
- <member name="T:System.Func`11">
- <summary>
- Encapsulates a method that has ten parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.
- </summary>
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
- <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>
- <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>
- <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>
- <return>The return value of the method that this delegate encapsulates.</return>
- </member>
- <member name="T:System.Action`11">
- <summary>
- Encapsulates a method that has eleven parameters and does not return a value.
- </summary>
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T11">The type of the eleventh parameter of the method that this delegate encapsulates.</typeparam>
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
- <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>
- <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>
- <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>
- <param name="arg11">The eleventh parameter of the method that this delegate encapsulates.</param>
- </member>
- <member name="T:System.Func`12">
- <summary>
- Encapsulates a method that has eleven parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.
- </summary>
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T11">The type of the eleventh parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
- <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>
- <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>
- <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>
- <param name="arg11">The eleventh parameter of the method that this delegate encapsulates.</param>
- <return>The return value of the method that this delegate encapsulates.</return>
- </member>
- <member name="T:System.Action`12">
- <summary>
- Encapsulates a method that has twelve parameters and does not return a value.
- </summary>
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T11">The type of the eleventh parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T12">The type of the twelfth parameter of the method that this delegate encapsulates.</typeparam>
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
- <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>
- <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>
- <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>
- <param name="arg11">The eleventh parameter of the method that this delegate encapsulates.</param>
- <param name="arg12">The twelfth parameter of the method that this delegate encapsulates.</param>
- </member>
- <member name="T:System.Func`13">
- <summary>
- Encapsulates a method that has twelve parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.
- </summary>
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T11">The type of the eleventh parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T12">The type of the twelfth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
- <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>
- <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>
- <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>
- <param name="arg11">The eleventh parameter of the method that this delegate encapsulates.</param>
- <param name="arg12">The twelfth parameter of the method that this delegate encapsulates.</param>
- <return>The return value of the method that this delegate encapsulates.</return>
- </member>
- <member name="T:System.Action`13">
- <summary>
- Encapsulates a method that has thirteen parameters and does not return a value.
- </summary>
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T11">The type of the eleventh parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T12">The type of the twelfth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T13">The type of the thirteenth parameter of the method that this delegate encapsulates.</typeparam>
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
- <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>
- <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>
- <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>
- <param name="arg11">The eleventh parameter of the method that this delegate encapsulates.</param>
- <param name="arg12">The twelfth parameter of the method that this delegate encapsulates.</param>
- <param name="arg13">The thirteenth parameter of the method that this delegate encapsulates.</param>
- </member>
- <member name="T:System.Func`14">
- <summary>
- Encapsulates a method that has thirteen parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.
- </summary>
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T11">The type of the eleventh parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T12">The type of the twelfth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T13">The type of the thirteenth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
- <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>
- <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>
- <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>
- <param name="arg11">The eleventh parameter of the method that this delegate encapsulates.</param>
- <param name="arg12">The twelfth parameter of the method that this delegate encapsulates.</param>
- <param name="arg13">The thirteenth parameter of the method that this delegate encapsulates.</param>
- <return>The return value of the method that this delegate encapsulates.</return>
- </member>
- <member name="T:System.Action`14">
- <summary>
- Encapsulates a method that has fourteen parameters and does not return a value.
- </summary>
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T11">The type of the eleventh parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T12">The type of the twelfth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T13">The type of the thirteenth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T14">The type of the fourteenth parameter of the method that this delegate encapsulates.</typeparam>
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
- <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>
- <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>
- <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>
- <param name="arg11">The eleventh parameter of the method that this delegate encapsulates.</param>
- <param name="arg12">The twelfth parameter of the method that this delegate encapsulates.</param>
- <param name="arg13">The thirteenth parameter of the method that this delegate encapsulates.</param>
- <param name="arg14">The fourteenth parameter of the method that this delegate encapsulates.</param>
- </member>
- <member name="T:System.Func`15">
- <summary>
- Encapsulates a method that has fourteen parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.
- </summary>
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T11">The type of the eleventh parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T12">The type of the twelfth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T13">The type of the thirteenth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T14">The type of the fourteenth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
- <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>
- <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>
- <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>
- <param name="arg11">The eleventh parameter of the method that this delegate encapsulates.</param>
- <param name="arg12">The twelfth parameter of the method that this delegate encapsulates.</param>
- <param name="arg13">The thirteenth parameter of the method that this delegate encapsulates.</param>
- <param name="arg14">The fourteenth parameter of the method that this delegate encapsulates.</param>
- <return>The return value of the method that this delegate encapsulates.</return>
- </member>
- <member name="T:System.Action`15">
- <summary>
- Encapsulates a method that has fifteen parameters and does not return a value.
- </summary>
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T11">The type of the eleventh parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T12">The type of the twelfth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T13">The type of the thirteenth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T14">The type of the fourteenth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T15">The type of the fifteenth parameter of the method that this delegate encapsulates.</typeparam>
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
- <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>
- <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>
- <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>
- <param name="arg11">The eleventh parameter of the method that this delegate encapsulates.</param>
- <param name="arg12">The twelfth parameter of the method that this delegate encapsulates.</param>
- <param name="arg13">The thirteenth parameter of the method that this delegate encapsulates.</param>
- <param name="arg14">The fourteenth parameter of the method that this delegate encapsulates.</param>
- <param name="arg15">The fifteenth parameter of the method that this delegate encapsulates.</param>
- </member>
- <member name="T:System.Func`16">
- <summary>
- Encapsulates a method that has fifteen parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.
- </summary>
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T11">The type of the eleventh parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T12">The type of the twelfth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T13">The type of the thirteenth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T14">The type of the fourteenth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T15">The type of the fifteenth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
- <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>
- <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>
- <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>
- <param name="arg11">The eleventh parameter of the method that this delegate encapsulates.</param>
- <param name="arg12">The twelfth parameter of the method that this delegate encapsulates.</param>
- <param name="arg13">The thirteenth parameter of the method that this delegate encapsulates.</param>
- <param name="arg14">The fourteenth parameter of the method that this delegate encapsulates.</param>
- <param name="arg15">The fifteenth parameter of the method that this delegate encapsulates.</param>
- <return>The return value of the method that this delegate encapsulates.</return>
- </member>
- <member name="T:System.Action`16">
- <summary>
- Encapsulates a method that has sixteen parameters and does not return a value.
- </summary>
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T11">The type of the eleventh parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T12">The type of the twelfth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T13">The type of the thirteenth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T14">The type of the fourteenth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T15">The type of the fifteenth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T16">The type of the sixteenth parameter of the method that this delegate encapsulates.</typeparam>
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
- <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>
- <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>
- <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>
- <param name="arg11">The eleventh parameter of the method that this delegate encapsulates.</param>
- <param name="arg12">The twelfth parameter of the method that this delegate encapsulates.</param>
- <param name="arg13">The thirteenth parameter of the method that this delegate encapsulates.</param>
- <param name="arg14">The fourteenth parameter of the method that this delegate encapsulates.</param>
- <param name="arg15">The fifteenth parameter of the method that this delegate encapsulates.</param>
- <param name="arg16">The sixteenth parameter of the method that this delegate encapsulates.</param>
- </member>
- <member name="T:System.Func`17">
- <summary>
- Encapsulates a method that has sixteen parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.
- </summary>
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T11">The type of the eleventh parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T12">The type of the twelfth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T13">The type of the thirteenth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T14">The type of the fourteenth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T15">The type of the fifteenth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="T16">The type of the sixteenth parameter of the method that this delegate encapsulates.</typeparam>
- <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
- <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>
- <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>
- <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>
- <param name="arg11">The eleventh parameter of the method that this delegate encapsulates.</param>
- <param name="arg12">The twelfth parameter of the method that this delegate encapsulates.</param>
- <param name="arg13">The thirteenth parameter of the method that this delegate encapsulates.</param>
- <param name="arg14">The fourteenth parameter of the method that this delegate encapsulates.</param>
- <param name="arg15">The fifteenth parameter of the method that this delegate encapsulates.</param>
- <param name="arg16">The sixteenth parameter of the method that this delegate encapsulates.</param>
- <return>The return value of the method that this delegate encapsulates.</return>
- </member>
- <member name="T:Moq.MockSequence">
- <summary>
- Helper class to setup a full trace between many mocks
- </summary>
- </member>
- <member name="M:Moq.MockSequence.#ctor">
- <summary>
- Initialize a trace setup
- </summary>
- </member>
- <member name="P:Moq.MockSequence.Cyclic">
- <summary>
- Allow sequence to be repeated
- </summary>
- </member>
- <member name="T:Moq.MockSequenceHelper">
- <summary>
- define nice api
- </summary>
- </member>
- <member name="M:Moq.MockSequenceHelper.InSequence``1(Moq.Mock{``0},Moq.MockSequence)">
- <summary>
- Perform an expectation in the trace.
- </summary>
- </member>
- <member name="T:Moq.MatcherAttribute">
- <summary>
- Marks a method as a matcher, which allows complete replacement
- of the built-in <see cref="T:Moq.It"/> class with your own argument
- matching rules.
- </summary>
- <remarks>
- <b>This feature has been deprecated in favor of the new
- and simpler <see cref="T:Moq.Match`1"/>.
- </b>
- <para>
- The argument matching is used to determine whether a concrete
- invocation in the mock matches a given setup. This
- matching mechanism is fully extensible.
- </para>
- <para>
- There are two parts of a matcher: the compiler matcher
- and the runtime matcher.
- <list type="bullet">
- <item>
- <term>Compiler matcher</term>
- <description>Used to satisfy the compiler requirements for the
- argument. Needs to be a method optionally receiving any arguments
- you might need for the matching, but with a return type that
- matches that of the argument.
- <para>
- Let's say I want to match a lists of orders that contains
- a particular one. I might create a compiler matcher like the following:
- </para>
- <code>
- public static class Orders
- {
- [Matcher]
- public static IEnumerable<Order> Contains(Order order)
- {
- return null;
- }
- }
- </code>
- Now we can invoke this static method instead of an argument in an
- invocation:
- <code>
- var order = new Order { ... };
- var mock = new Mock<IRepository<Order>>();
-
- mock.Setup(x => x.Save(Orders.Contains(order)))
- .Throws<ArgumentException>();
- </code>
- Note that the return value from the compiler matcher is irrelevant.
- This method will never be called, and is just used to satisfy the
- compiler and to signal Moq that this is not a method that we want
- to be invoked at runtime.
- </description>
- </item>
- <item>
- <term>Runtime matcher</term>
- <description>
- The runtime matcher is the one that will actually perform evaluation
- when the test is run, and is defined by convention to have the
- same signature as the compiler matcher, but where the return
- value is the first argument to the call, which contains the
- object received by the actual invocation at runtime:
- <code>
- public static bool Contains(IEnumerable<Order> orders, Order order)
- {
- return orders.Contains(order);
- }
- </code>
- At runtime, the mocked method will be invoked with a specific
- list of orders. This value will be passed to this runtime
- matcher as the first argument, while the second argument is the
- one specified in the setup (<c>x.Save(Orders.Contains(order))</c>).
- <para>
- The boolean returned determines whether the given argument has been
- matched. If all arguments to the expected method are matched, then
- the setup matches and is evaluated.
- </para>
- </description>
- </item>
- </list>
- </para>
- Using this extensible infrastructure, you can easily replace the entire
- <see cref="T:Moq.It"/> set of matchers with your own. You can also avoid the
- typical (and annoying) lengthy expressions that result when you have
- multiple arguments that use generics.
- </remarks>
- <example>
- The following is the complete example explained above:
- <code>
- public static class Orders
- {
- [Matcher]
- public static IEnumerable<Order> Contains(Order order)
- {
- return null;
- }
-
- public static bool Contains(IEnumerable<Order> orders, Order order)
- {
- return orders.Contains(order);
- }
- }
- </code>
- And the concrete test using this matcher:
- <code>
- var order = new Order { ... };
- var mock = new Mock<IRepository<Order>>();
-
- mock.Setup(x => x.Save(Orders.Contains(order)))
- .Throws<ArgumentException>();
-
- // use mock, invoke Save, and have the matcher filter.
- </code>
- </example>
- </member>
- <member name="T:Moq.Mock`1">
- <summary>
- Provides a mock implementation of <typeparamref name="T"/>.
- </summary><remarks>
- Any interface type can be used for mocking, but for classes, only abstract and virtual members can be mocked.
- <para>
- The behavior of the mock with regards to the setups and the actual calls is determined
- by the optional <see cref="T:Moq.MockBehavior"/> that can be passed to the <see cref="M:Moq.Mock`1.#ctor(Moq.MockBehavior)"/>
- constructor.
- </para>
- </remarks><typeparam name="T">Type to mock, which can be an interface or a class.</typeparam><example group="overview" order="0">
- The following example shows establishing setups with specific values
- for method invocations:
- <code>
- // Arrange
- var order = new Order(TALISKER, 50);
- var mock = new Mock<IWarehouse>();
-
- mock.Setup(x => x.HasInventory(TALISKER, 50)).Returns(true);
-
- // Act
- order.Fill(mock.Object);
-
- // Assert
- Assert.True(order.IsFilled);
- </code>
- The following example shows how to use the <see cref="T:Moq.It"/> class
- to specify conditions for arguments instead of specific values:
- <code>
- // Arrange
- var order = new Order(TALISKER, 50);
- var mock = new Mock<IWarehouse>();
-
- // shows how to expect a value within a range
- mock.Setup(x => x.HasInventory(
- It.IsAny<string>(),
- It.IsInRange(0, 100, Range.Inclusive)))
- .Returns(false);
-
- // shows how to throw for unexpected calls.
- mock.Setup(x => x.Remove(
- It.IsAny<string>(),
- It.IsAny<int>()))
- .Throws(new InvalidOperationException());
-
- // Act
- order.Fill(mock.Object);
-
- // Assert
- Assert.False(order.IsFilled);
- </code>
- </example>
- </member>
- <member name="M:Moq.Mock`1.Expect(System.Linq.Expressions.Expression{System.Action{`0}})">
- <summary>
- Obsolete.
- </summary>
- </member>
- <member name="M:Moq.Mock`1.Expect``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
- <summary>
- Obsolete.
- </summary>
- </member>
- <member name="M:Moq.Mock`1.ExpectGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
- <summary>
- Obsolete.
- </summary>
- </member>
- <member name="M:Moq.Mock`1.ExpectSet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
- <summary>
- Obsolete.
- </summary>
- </member>
- <member name="M:Moq.Mock`1.ExpectSet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},``0)">
- <summary>
- Obsolete.
- </summary>
- </member>
- <member name="M:Moq.Mock`1.#ctor(System.Boolean)">
- <summary>
- Ctor invoked by AsTInterface exclusively.
- </summary>
- </member>
- <member name="M:Moq.Mock`1.#ctor">
- <summary>
- Initializes an instance of the mock with <see cref="F:Moq.MockBehavior.Default">default behavior</see>.
- </summary><example>
- <code>var mock = new Mock<IFormatProvider>();</code>
- </example>
- </member>
- <member name="M:Moq.Mock`1.#ctor(System.Object[])">
- <summary>
- Initializes an instance of the mock with <see cref="F:Moq.MockBehavior.Default">default behavior</see> and with
- the given constructor arguments for the class. (Only valid when <typeparamref name="T"/> is a class)
- </summary><remarks>
- The mock will try to find the best match constructor given the constructor arguments, and invoke that
- to initialize the instance. This applies only for classes, not interfaces.
- </remarks><example>
- <code>var mock = new Mock<MyProvider>(someArgument, 25);</code>
- </example><param name="args">Optional constructor arguments if the mocked type is a class.</param>
- </member>
- <member name="M:Moq.Mock`1.#ctor(Moq.MockBehavior)">
- <summary>
- Initializes an instance of the mock with the specified <see cref="T:Moq.MockBehavior">behavior</see>.
- </summary><example>
- <code>var mock = new Mock<IFormatProvider>(MockBehavior.Relaxed);</code>
- </example><param name="behavior">Behavior of the mock.</param>
- </member>
- <member name="M:Moq.Mock`1.#ctor(Moq.MockBehavior,System.Object[])">
- <summary>
- Initializes an instance of the mock with a specific <see cref="T:Moq.MockBehavior">behavior</see> with
- the given constructor arguments for the class.
- </summary><remarks>
- The mock will try to find the best match constructor given the constructor arguments, and invoke that
- to initialize the instance. This applies only to classes, not interfaces.
- </remarks><example>
- <code>var mock = new Mock<MyProvider>(someArgument, 25);</code>
- </example><param name="behavior">Behavior of the mock.</param><param name="args">Optional constructor arguments if the mocked type is a class.</param>
- </member>
- <member name="M:Moq.Mock`1.OnGetObject">
- <summary>
- Returns the mocked object value.
- </summary>
- </member>
- <member name="M:Moq.Mock`1.Setup(System.Linq.Expressions.Expression{System.Action{`0}})">
- <summary>
- Specifies a setup on the mocked type for a call to
- to a void method.
- </summary><remarks>
- If more than one setup is specified for the same method or property,
- the latest one wins and is the one that will be executed.
- </remarks><param name="expression">Lambda expression that specifies the expected method invocation.</param><example group="setups">
- <code>
- var mock = new Mock<IProcessor>();
- mock.Setup(x => x.Execute("ping"));
- </code>
- </example>
- </member>
- <member name="M:Moq.Mock`1.Setup``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
- <summary>
- Specifies a setup on the mocked type for a call to
- to a value returning method.
- </summary><typeparam name="TResult">Type of the return value. Typically omitted as it can be inferred from the expression.</typeparam><remarks>
- If more than one setup is specified for the same method or property,
- the latest one wins and is the one that will be executed.
- </remarks><param name="expression">Lambda expression that specifies the method invocation.</param><example group="setups">
- <code>
- mock.Setup(x => x.HasInventory("Talisker", 50)).Returns(true);
- </code>
- </example>
- </member>
- <member name="M:Moq.Mock`1.SetupGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
- <summary>
- Specifies a setup on the mocked type for a call to
- to a property getter.
- </summary><remarks>
- If more than one setup is set for the same property getter,
- the latest one wins and is the one that will be executed.
- </remarks><typeparam name="TProperty">Type of the property. Typically omitted as it can be inferred from the expression.</typeparam><param name="expression">Lambda expression that specifies the property getter.</param><example group="setups">
- <code>
- mock.SetupGet(x => x.Suspended)
- .Returns(true);
- </code>
- </example>
- </member>
- <member name="M:Moq.Mock`1.SetupSet``1(System.Action{`0})">
- <summary>
- Specifies a setup on the mocked type for a call to
- to a property setter.
- </summary><remarks>
- If more than one setup is set for the same property setter,
- the latest one wins and is the one that will be executed.
- <para>
- This overloads allows the use of a callback already
- typed for the property type.
- </para>
- </remarks><typeparam name="TProperty">Type of the property. Typically omitted as it can be inferred from the expression.</typeparam><param name="setterExpression">The Lambda expression that sets a property to a value.</param><example group="setups">
- <code>
- mock.SetupSet(x => x.Suspended = true);
- </code>
- </example>
- </member>
- <member name="M:Moq.Mock`1.SetupSet(System.Action{`0})">
- <summary>
- Specifies a setup on the mocked type for a call to
- to a property setter.
- </summary><remarks>
- If more than one setup is set for the same property setter,
- the latest one wins and is the one that will be executed.
- </remarks><param name="setterExpression">Lambda expression that sets a property to a value.</param><example group="setups">
- <code>
- mock.SetupSet(x => x.Suspended = true);
- </code>
- </example>
- </member>
- <member name="M:Moq.Mock`1.SetupProperty``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
- <summary>
- Specifies that the given property should have "property behavior",
- meaning that setting its value will cause it to be saved and
- later returned when the property is requested. (this is also
- known as "stubbing").
- </summary><typeparam name="TProperty">
- Type of the property, inferred from the property
- expression (does not need to be specified).
- </typeparam><param name="property">Property expression to stub.</param><example>
- If you have an interface with an int property <c>Value</c>, you might
- stub it using the following straightforward call:
- <code>
- var mock = new Mock<IHaveValue>();
- mock.Stub(v => v.Value);
- </code>
- After the <c>Stub</c> call has been issued, setting and
- retrieving the object value will behave as expected:
- <code>
- IHaveValue v = mock.Object;
-
- v.Value = 5;
- Assert.Equal(5, v.Value);
- </code>
- </example>
- </member>
- <member name="M:Moq.Mock`1.SetupProperty``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},``0)">
- <summary>
- Specifies that the given property should have "property behavior",
- meaning that setting its value will cause it to be saved and
- later returned when the property is requested. This overload
- allows setting the initial value for the property. (this is also
- known as "stubbing").
- </summary><typeparam name="TProperty">
- Type of the property, inferred from the property
- expression (does not need to be specified).
- </typeparam><param name="property">Property expression to stub.</param><param name="initialValue">Initial value for the property.</param><example>
- If you have an interface with an int property <c>Value</c>, you might
- stub it using the following straightforward call:
- <code>
- var mock = new Mock<IHaveValue>();
- mock.SetupProperty(v => v.Value, 5);
- </code>
- After the <c>SetupProperty</c> call has been issued, setting and
- retrieving the object value will behave as expected:
- <code>
- IHaveValue v = mock.Object;
- // Initial value was stored
- Assert.Equal(5, v.Value);
-
- // New value set which changes the initial value
- v.Value = 6;
- Assert.Equal(6, v.Value);
- </code>
- </example>
- </member>
- <member name="M:Moq.Mock`1.SetupAllProperties">
- <summary>
- Specifies that the all properties on the mock should have "property behavior",
- meaning that setting its value will cause it to be saved and
- later returned when the property is requested. (this is also
- known as "stubbing"). The default value for each property will be the
- one generated as specified by the <see cref="P:Moq.Mock.DefaultValue"/> property for the mock.
- </summary><remarks>
- If the mock <see cref="P:Moq.Mock.DefaultValue"/> is set to <see cref="F:Moq.DefaultValue.Mock"/>,
- the mocked default values will also get all properties setup recursively.
- </remarks>
- </member>
- <member name="M:Moq.Mock`1.When(System.Func{System.Boolean})">
- <!-- No matching elements were found for the following include tag --><include file="Mock.Generic.xdoc" path="docs/doc[@for="Mock{T}.When"]/*"/>
- </member>
- <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}})">
- <summary>
- Verifies that a specific invocation matching the given expression was performed on the mock. Use
- in conjuntion with the default <see cref="F:Moq.MockBehavior.Loose"/>.
- </summary><example group="verification">
- This example assumes that the mock has been used, and later we want to verify that a given
- invocation with specific parameters was performed:
- <code>
- var mock = new Mock<IProcessor>();
- // exercise mock
- //...
- // Will throw if the test code didn't call Execute with a "ping" string argument.
- mock.Verify(proc => proc.Execute("ping"));
- </code>
- </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="expression">Expression to verify.</param>
- </member>
- <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}},Moq.Times)">
- <summary>
- Verifies that a specific invocation matching the given expression was performed on the mock. Use
- in conjuntion with the default <see cref="F:Moq.MockBehavior.Loose"/>.
- </summary><exception cref="T:Moq.MockException">
- The invocation was not call the times specified by
- <paramref name="times"/>.
- </exception><param name="expression">Expression to verify.</param><param name="times">The number of times a method is allowed to be called.</param>
- </member>
- <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}},System.String)">
- <summary>
- Verifies that a specific invocation matching the given expression was performed on the mock,
- specifying a failure error message. Use in conjuntion with the default
- <see cref="F:Moq.MockBehavior.Loose"/>.
- </summary><example group="verification">
- This example assumes that the mock has been used, and later we want to verify that a given
- invocation with specific parameters was performed:
- <code>
- var mock = new Mock<IProcessor>();
- // exercise mock
- //...
- // Will throw if the test code didn't call Execute with a "ping" string argument.
- mock.Verify(proc => proc.Execute("ping"));
- </code>
- </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="expression">Expression to verify.</param><param name="failMessage">Message to show if verification fails.</param>
- </member>
- <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}},Moq.Times,System.String)">
- <summary>
- Verifies that a specific invocation matching the given expression was performed on the mock,
- specifying a failure error message. Use in conjuntion with the default
- <see cref="F:Moq.MockBehavior.Loose"/>.
- </summary><exception cref="T:Moq.MockException">
- The invocation was not call the times specified by
- <paramref name="times"/>.
- </exception><param name="expression">Expression to verify.</param><param name="times">The number of times a method is allowed to be called.</param><param name="failMessage">Message to show if verification fails.</param>
- </member>
- <member name="M:Moq.Mock`1.Verify``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
- <summary>
- Verifies that a specific invocation matching the given expression was performed on the mock. Use
- in conjuntion with the default <see cref="F:Moq.MockBehavior.Loose"/>.
- </summary><example group="verification">
- This example assumes that the mock has been used, and later we want to verify that a given
- invocation with specific parameters was performed:
- <code>
- var mock = new Mock<IWarehouse>();
- // exercise mock
- //...
- // Will throw if the test code didn't call HasInventory.
- mock.Verify(warehouse => warehouse.HasInventory(TALISKER, 50));
- </code>
- </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="expression">Expression to verify.</param><typeparam name="TResult">Type of return value from the expression.</typeparam>
- </member>
- <member name="M:Moq.Mock`1.Verify``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},Moq.Times)">
- <summary>
- Verifies that a specific invocation matching the given
- expression was performed on the mock. Use in conjuntion
- with the default <see cref="F:Moq.MockBehavior.Loose"/>.
- </summary><exception cref="T:Moq.MockException">
- The invocation was not call the times specified by
- <paramref name="times"/>.
- </exception><param name="expression">Expression to verify.</param><param name="times">The number of times a method is allowed to be called.</param><typeparam name="TResult">Type of return value from the expression.</typeparam>
- </member>
- <member name="M:Moq.Mock`1.Verify``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.String)">
- <summary>
- Verifies that a specific invocation matching the given
- expression was performed on the mock, specifying a failure
- error message.
- </summary><example group="verification">
- This example assumes that the mock has been used,
- and later we want to verify that a given invocation
- with specific parameters was performed:
- <code>
- var mock = new Mock<IWarehouse>();
- // exercise mock
- //...
- // Will throw if the test code didn't call HasInventory.
- mock.Verify(warehouse => warehouse.HasInventory(TALISKER, 50), "When filling orders, inventory has to be checked");
- </code>
- </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="expression">Expression to verify.</param><param name="failMessage">Message to show if verification fails.</param><typeparam name="TResult">Type of return value from the expression.</typeparam>
- </member>
- <member name="M:Moq.Mock`1.Verify``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},Moq.Times,System.String)">
- <summary>
- Verifies that a specific invocation matching the given
- expression was performed on the mock, specifying a failure
- error message.
- </summary><exception cref="T:Moq.MockException">
- The invocation was not call the times specified by
- <paramref name="times"/>.
- </exception><param name="expression">Expression to verify.</param><param name="times">The number of times a method is allowed to be called.</param><param name="failMessage">Message to show if verification fails.</param><typeparam name="TResult">Type of return value from the expression.</typeparam>
- </member>
- <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
- <summary>
- Verifies that a property was read on the mock.
- </summary><example group="verification">
- This example assumes that the mock has been used,
- and later we want to verify that a given property
- was retrieved from it:
- <code>
- var mock = new Mock<IWarehouse>();
- // exercise mock
- //...
- // Will throw if the test code didn't retrieve the IsClosed property.
- mock.VerifyGet(warehouse => warehouse.IsClosed);
- </code>
- </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="expression">Expression to verify.</param><typeparam name="TProperty">
- Type of the property to verify. Typically omitted as it can
- be inferred from the expression's return type.
- </typeparam>
- </member>
- <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},Moq.Times)">
- <summary>
- Verifies that a property was read on the mock.
- </summary><exception cref="T:Moq.MockException">
- The invocation was not call the times specified by
- <paramref name="times"/>.
- </exception><param name="times">The number of times a method is allowed to be called.</param><param name="expression">Expression to verify.</param><typeparam name="TProperty">
- Type of the property to verify. Typically omitted as it can
- be inferred from the expression's return type.
- </typeparam>
- </member>
- <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.String)">
- <summary>
- Verifies that a property was read on the mock, specifying a failure
- error message.
- </summary><example group="verification">
- This example assumes that the mock has been used,
- and later we want to verify that a given property
- was retrieved from it:
- <code>
- var mock = new Mock<IWarehouse>();
- // exercise mock
- //...
- // Will throw if the test code didn't retrieve the IsClosed property.
- mock.VerifyGet(warehouse => warehouse.IsClosed);
- </code>
- </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="expression">Expression to verify.</param><param name="failMessage">Message to show if verification fails.</param><typeparam name="TProperty">
- Type of the property to verify. Typically omitted as it can
- be inferred from the expression's return type.
- </typeparam>
- </member>
- <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},Moq.Times,System.String)">
- <summary>
- Verifies that a property was read on the mock, specifying a failure
- error message.
- </summary><exception cref="T:Moq.MockException">
- The invocation was not call the times specified by
- <paramref name="times"/>.
- </exception><param name="times">The number of times a method is allowed to be called.</param><param name="expression">Expression to verify.</param><param name="failMessage">Message to show if verification fails.</param><typeparam name="TProperty">
- Type of the property to verify. Typically omitted as it can
- be inferred from the expression's return type.
- </typeparam>
- </member>
- <member name="M:Moq.Mock`1.VerifySet(System.Action{`0})">
- <summary>
- Verifies that a property was set on the mock.
- </summary><example group="verification">
- This example assumes that the mock has been used,
- and later we want to verify that a given property
- was set on it:
- <code>
- var mock = new Mock<IWarehouse>();
- // exercise mock
- //...
- // Will throw if the test code didn't set the IsClosed property.
- mock.VerifySet(warehouse => warehouse.IsClosed = true);
- </code>
- </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="setterExpression">Expression to verify.</param>
- </member>
- <member name="M:Moq.Mock`1.VerifySet(System.Action{`0},Moq.Times)">
- <summary>
- Verifies that a property was set on the mock.
- </summary><exception cref="T:Moq.MockException">
- The invocation was not call the times specified by
- <paramref name="times"/>.
- </exception><param name="times">The number of times a method is allowed to be called.</param><param name="setterExpression">Expression to verify.</param>
- </member>
- <member name="M:Moq.Mock`1.VerifySet(System.Action{`0},System.String)">
- <summary>
- Verifies that a property was set on the mock, specifying
- a failure message.
- </summary><example group="verification">
- This example assumes that the mock has been used,
- and later we want to verify that a given property
- was set on it:
- <code>
- var mock = new Mock<IWarehouse>();
- // exercise mock
- //...
- // Will throw if the test code didn't set the IsClosed property.
- mock.VerifySet(warehouse => warehouse.IsClosed = true, "Warehouse should always be closed after the action");
- </code>
- </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="setterExpression">Expression to verify.</param><param name="failMessage">Message to show if verification fails.</param>
- </member>
- <member name="M:Moq.Mock`1.VerifySet(System.Action{`0},Moq.Times,System.String)">
- <summary>
- Verifies that a property was set on the mock, specifying
- a failure message.
- </summary><exception cref="T:Moq.MockException">
- The invocation was not call the times specified by
- <paramref name="times"/>.
- </exception><param name="times">The number of times a method is allowed to be called.</param><param name="setterExpression">Expression to verify.</param><param name="failMessage">Message to show if verification fails.</param>
- </member>
- <member name="M:Moq.Mock`1.Raise(System.Action{`0},System.EventArgs)">
- <summary>
- Raises the event referenced in <paramref name="eventExpression"/> using
- the given <paramref name="args"/> argument.
- </summary><exception cref="T:System.ArgumentException">
- The <paramref name="args"/> argument is
- invalid for the target event invocation, or the <paramref name="eventExpression"/> is
- not an event attach or detach expression.
- </exception><example>
- The following example shows how to raise a <see cref="E:System.ComponentModel.INotifyPropertyChanged.PropertyChanged"/> event:
- <code>
- var mock = new Mock<IViewModel>();
-
- mock.Raise(x => x.PropertyChanged -= null, new PropertyChangedEventArgs("Name"));
- </code>
- </example><example>
- This example shows how to invoke an event with a custom event arguments
- class in a view that will cause its corresponding presenter to
- react by changing its state:
- <code>
- var mockView = new Mock<IOrdersView>();
- var presenter = new OrdersPresenter(mockView.Object);
-
- // Check that the presenter has no selection by default
- Assert.Null(presenter.SelectedOrder);
-
- // Raise the event with a specific arguments data
- mockView.Raise(v => v.SelectionChanged += null, new OrderEventArgs { Order = new Order("moq", 500) });
-
- // Now the presenter reacted to the event, and we have a selected order
- Assert.NotNull(presenter.SelectedOrder);
- Assert.Equal("moq", presenter.SelectedOrder.ProductName);
- </code>
- </example>
- </member>
- <member name="M:Moq.Mock`1.Raise(System.Action{`0},System.Object[])">
- <summary>
- Raises the event referenced in <paramref name="eventExpression"/> using
- the given <paramref name="args"/> argument for a non-EventHandler typed event.
- </summary><exception cref="T:System.ArgumentException">
- The <paramref name="args"/> arguments are
- invalid for the target event invocation, or the <paramref name="eventExpression"/> is
- not an event attach or detach expression.
- </exception><example>
- The following example shows how to raise a custom event that does not adhere to
- the standard <c>EventHandler</c>:
- <code>
- var mock = new Mock<IViewModel>();
-
- mock.Raise(x => x.MyEvent -= null, "Name", bool, 25);
- </code>
- </example>
- </member>
- <member name="P:Moq.Mock`1.Object">
- <summary>
- Exposes the mocked object instance.
- </summary>
- </member>
- <member name="T:Moq.MockLegacyExtensions">
- <summary>
- Provides legacy API members as extensions so that
- existing code continues to compile, but new code
- doesn't see then.
- </summary>
- </member>
- <member name="M:Moq.MockLegacyExtensions.SetupSet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},``1)">
- <summary>
- Obsolete.
- </summary>
- </member>
- <member name="M:Moq.MockLegacyExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},``1)">
- <summary>
- Obsolete.
- </summary>
- </member>
- <member name="M:Moq.MockLegacyExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},``1,System.String)">
- <summary>
- Obsolete.
- </summary>
- </member>
- <member name="T:Moq.MockExtensions">
- <summary>
- Provides additional methods on mocks.
- </summary>
- <devdoc>
- Provided as extension methods as they confuse the compiler
- with the overloads taking Action.
- </devdoc>
- </member>
- <member name="M:Moq.MockExtensions.SetupSet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}})">
- <summary>
- Specifies a setup on the mocked type for a call to
- to a property setter, regardless of its value.
- </summary>
- <remarks>
- If more than one setup is set for the same property setter,
- the latest one wins and is the one that will be executed.
- </remarks>
- <typeparam name="TProperty">Type of the property. Typically omitted as it can be inferred from the expression.</typeparam>
- <typeparam name="T">Type of the mock.</typeparam>
- <param name="mock">The target mock for the setup.</param>
- <param name="expression">Lambda expression that specifies the property setter.</param>
- <example group="setups">
- <code>
- mock.SetupSet(x => x.Suspended);
- </code>
- </example>
- <devdoc>
- This method is not legacy, but must be on an extension method to avoid
- confusing the compiler with the new Action syntax.
- </devdoc>
- </member>
- <member name="M:Moq.MockExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}})">
- <summary>
- Verifies that a property has been set on the mock, regarless of its value.
- </summary>
- <example group="verification">
- This example assumes that the mock has been used,
- and later we want to verify that a given invocation
- with specific parameters was performed:
- <code>
- var mock = new Mock<IWarehouse>();
- // exercise mock
- //...
- // Will throw if the test code didn't set the IsClosed property.
- mock.VerifySet(warehouse => warehouse.IsClosed);
- </code>
- </example>
- <exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception>
- <param name="expression">Expression to verify.</param>
- <param name="mock">The mock instance.</param>
- <typeparam name="T">Mocked type.</typeparam>
- <typeparam name="TProperty">Type of the property to verify. Typically omitted as it can
- be inferred from the expression's return type.</typeparam>
- </member>
- <member name="M:Moq.MockExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String)">
- <summary>
- Verifies that a property has been set on the mock, specifying a failure
- error message.
- </summary>
- <example group="verification">
- This example assumes that the mock has been used,
- and later we want to verify that a given invocation
- with specific parameters was performed:
- <code>
- var mock = new Mock<IWarehouse>();
- // exercise mock
- //...
- // Will throw if the test code didn't set the IsClosed property.
- mock.VerifySet(warehouse => warehouse.IsClosed);
- </code>
- </example>
- <exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception>
- <param name="expression">Expression to verify.</param>
- <param name="failMessage">Message to show if verification fails.</param>
- <param name="mock">The mock instance.</param>
- <typeparam name="T">Mocked type.</typeparam>
- <typeparam name="TProperty">Type of the property to verify. Typically omitted as it can
- be inferred from the expression's return type.</typeparam>
- </member>
- <member name="M:Moq.MockExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},Moq.Times)">
- <summary>
- Verifies that a property has been set on the mock, regardless
- of the value but only the specified number of times.
- </summary>
- <example group="verification">
- This example assumes that the mock has been used,
- and later we want to verify that a given invocation
- with specific parameters was performed:
- <code>
- var mock = new Mock<IWarehouse>();
- // exercise mock
- //...
- // Will throw if the test code didn't set the IsClosed property.
- mock.VerifySet(warehouse => warehouse.IsClosed);
- </code>
- </example>
- <exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception>
- <exception cref="T:Moq.MockException">The invocation was not call the times specified by
- <paramref name="times"/>.</exception>
- <param name="mock">The mock instance.</param>
- <typeparam name="T">Mocked type.</typeparam>
- <param name="times">The number of times a method is allowed to be called.</param>
- <param name="expression">Expression to verify.</param>
- <typeparam name="TProperty">Type of the property to verify. Typically omitted as it can
- be inferred from the expression's return type.</typeparam>
- </member>
- <member name="M:Moq.MockExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},Moq.Times,System.String)">
- <summary>
- Verifies that a property has been set on the mock, regardless
- of the value but only the specified number of times, and specifying a failure
- error message.
- </summary>
- <example group="verification">
- This example assumes that the mock has been used,
- and later we want to verify that a given invocation
- with specific parameters was performed:
- <code>
- var mock = new Mock<IWarehouse>();
- // exercise mock
- //...
- // Will throw if the test code didn't set the IsClosed property.
- mock.VerifySet(warehouse => warehouse.IsClosed);
- </code>
- </example>
- <exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception>
- <exception cref="T:Moq.MockException">The invocation was not call the times specified by
- <paramref name="times"/>.</exception>
- <param name="mock">The mock instance.</param>
- <typeparam name="T">Mocked type.</typeparam>
- <param name="times">The number of times a method is allowed to be called.</param>
- <param name="failMessage">Message to show if verification fails.</param>
- <param name="expression">Expression to verify.</param>
- <typeparam name="TProperty">Type of the property to verify. Typically omitted as it can
- be inferred from the expression's return type.</typeparam>
- </member>
- <member name="T:Moq.SequenceExtensions">
- <summary>
- Helper for sequencing return values in the same method.
- </summary>
- </member>
- <member name="M:Moq.SequenceExtensions.SetupSequence``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}})">
- <summary>
- Return a sequence of values, once per call.
- </summary>
- </member>
- <member name="M:Moq.ExpressionExtensions.ToLambda(System.Linq.Expressions.Expression)">
- <summary>
- Casts the expression to a lambda expression, removing
- a cast if there's any.
- </summary>
- </member>
- <member name="M:Moq.ExpressionExtensions.ToMethodCall(System.Linq.Expressions.LambdaExpression)">
- <summary>
- Casts the body of the lambda expression to a <see cref="T:System.Linq.Expressions.MethodCallExpression"/>.
- </summary>
- <exception cref="T:System.ArgumentException">If the body is not a method call.</exception>
- </member>
- <member name="M:Moq.ExpressionExtensions.ToPropertyInfo(System.Linq.Expressions.LambdaExpression)">
- <summary>
- Converts the body of the lambda expression into the <see cref="T:System.Reflection.PropertyInfo"/> referenced by it.
- </summary>
- </member>
- <member name="M:Moq.ExpressionExtensions.IsProperty(System.Linq.Expressions.LambdaExpression)">
- <summary>
- Checks whether the body of the lambda expression is a property access.
- </summary>
- </member>
- <member name="M:Moq.ExpressionExtensions.IsProperty(System.Linq.Expressions.Expression)">
- <summary>
- Checks whether the expression is a property access.
- </summary>
- </member>
- <member name="M:Moq.ExpressionExtensions.IsPropertyIndexer(System.Linq.Expressions.LambdaExpression)">
- <summary>
- Checks whether the body of the lambda expression is a property indexer, which is true
- when the expression is an <see cref="T:System.Linq.Expressions.MethodCallExpression"/> whose
- <see cref="P:System.Linq.Expressions.MethodCallExpression.Method"/> has <see cref="P:System.Reflection.MethodBase.IsSpecialName"/>
- equal to <see langword="true"/>.
- </summary>
- </member>
- <member name="M:Moq.ExpressionExtensions.IsPropertyIndexer(System.Linq.Expressions.Expression)">
- <summary>
- Checks whether the expression is a property indexer, which is true
- when the expression is an <see cref="T:System.Linq.Expressions.MethodCallExpression"/> whose
- <see cref="P:System.Linq.Expressions.MethodCallExpression.Method"/> has <see cref="P:System.Reflection.MethodBase.IsSpecialName"/>
- equal to <see langword="true"/>.
- </summary>
- </member>
- <member name="M:Moq.ExpressionExtensions.CastTo``1(System.Linq.Expressions.Expression)">
- <summary>
- Creates an expression that casts the given expression to the <typeparamref name="T"/>
- type.
- </summary>
- </member>
- <member name="M:Moq.ExpressionExtensions.ToStringFixed(System.Linq.Expressions.Expression)">
- <devdoc>
- TODO: remove this code when https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=331583
- is fixed.
- </devdoc>
- </member>
- <member name="T:Moq.Evaluator">
- <summary>
- Provides partial evaluation of subtrees, whenever they can be evaluated locally.
- </summary>
- <author>Matt Warren: http://blogs.msdn.com/mattwar</author>
- <contributor>Documented by InSTEDD: http://www.instedd.org</contributor>
- </member>
- <member name="M:Moq.Evaluator.PartialEval(System.Linq.Expressions.Expression,System.Func{System.Linq.Expressions.Expression,System.Boolean})">
- <summary>
- Performs evaluation and replacement of independent sub-trees
- </summary>
- <param name="expression">The root of the expression tree.</param>
- <param name="fnCanBeEvaluated">A function that decides whether a given expression
- node can be part of the local function.</param>
- <returns>A new tree with sub-trees evaluated and replaced.</returns>
- </member>
- <member name="M:Moq.Evaluator.PartialEval(System.Linq.Expressions.Expression)">
- <summary>
- Performs evaluation and replacement of independent sub-trees
- </summary>
- <param name="expression">The root of the expression tree.</param>
- <returns>A new tree with sub-trees evaluated and replaced.</returns>
- </member>
- <member name="T:Moq.Evaluator.SubtreeEvaluator">
- <summary>
- Evaluates and replaces sub-trees when first candidate is reached (top-down)
- </summary>
- </member>
- <member name="T:Moq.Evaluator.Nominator">
- <summary>
- Performs bottom-up analysis to determine which nodes can possibly
- be part of an evaluated sub-tree.
- </summary>
- </member>
- <member name="M:Moq.Guard.NotNull``1(System.Linq.Expressions.Expression{System.Func{``0}},``0)">
- <summary>
- Ensures the given <paramref name="value"/> is not null.
- Throws <see cref="T:System.ArgumentNullException"/> otherwise.
- </summary>
- </member>
- <member name="M:Moq.Guard.NotNullOrEmpty(System.Linq.Expressions.Expression{System.Func{System.String}},System.String)">
- <summary>
- Ensures the given string <paramref name="value"/> is not null or empty.
- Throws <see cref="T:System.ArgumentNullException"/> in the first case, or
- <see cref="T:System.ArgumentException"/> in the latter.
- </summary>
- </member>
- <member name="M:Moq.Guard.NotOutOfRangeInclusive``1(System.Linq.Expressions.Expression{System.Func{``0}},``0,``0,``0)">
- <summary>
- Checks an argument to ensure it is in the specified range including the edges.
- </summary>
- <typeparam name="T">Type of the argument to check, it must be an <see cref="T:System.IComparable"/> type.
- </typeparam>
- <param name="reference">The expression containing the name of the argument.</param>
- <param name="value">The argument value to check.</param>
- <param name="from">The minimun allowed value for the argument.</param>
- <param name="to">The maximun allowed value for the argument.</param>
- </member>
- <member name="M:Moq.Guard.NotOutOfRangeExclusive``1(System.Linq.Expressions.Expression{System.Func{``0}},``0,``0,``0)">
- <summary>
- Checks an argument to ensure it is in the specified range excluding the edges.
- </summary>
- <typeparam name="T">Type of the argument to check, it must be an <see cref="T:System.IComparable"/> type.
- </typeparam>
- <param name="reference">The expression containing the name of the argument.</param>
- <param name="value">The argument value to check.</param>
- <param name="from">The minimun allowed value for the argument.</param>
- <param name="to">The maximun allowed value for the argument.</param>
- </member>
- <member name="T:Moq.IMocked`1">
- <summary>
- Implemented by all generated mock object instances.
- </summary>
- </member>
- <member name="T:Moq.IMocked">
- <summary>
- Implemented by all generated mock object instances.
- </summary>
- </member>
- <member name="P:Moq.IMocked.Mock">
- <summary>
- Reference the Mock that contains this as the <c>mock.Object</c> value.
- </summary>
- </member>
- <member name="P:Moq.IMocked`1.Mock">
- <summary>
- Reference the Mock that contains this as the <c>mock.Object</c> value.
- </summary>
- </member>
- <member name="T:Moq.Interceptor">
- <summary>
- Implements the actual interception and method invocation for
- all mocks.
- </summary>
- </member>
- <member name="M:Moq.Interceptor.GetEventFromName(System.String)">
- <summary>
- Get an eventInfo for a given event name. Search type ancestors depth first if necessary.
- </summary>
- <param name="eventName">Name of the event, with the set_ or get_ prefix already removed</param>
- </member>
- <member name="M:Moq.Interceptor.GetAncestorTypes(System.Type)">
- <summary>
- Given a type return all of its ancestors, both types and interfaces.
- </summary>
- <param name="initialType">The type to find immediate ancestors of</param>
- </member>
- <member name="T:Moq.Language.Flow.ISetupSetter`2">
- <summary>
- Implements the fluent API.
- </summary>
- </member>
- <member name="T:Moq.Language.ICallbackSetter`1">
- <summary>
- Defines the <c>Callback</c> verb for property setter setups.
- </summary>
- <typeparam name="TProperty">Type of the property.</typeparam>
- </member>
- <member name="M:Moq.Language.ICallbackSetter`1.Callback(System.Action{`0})">
- <summary>
- Specifies a callback to invoke when the property is set that receives the
- property value being set.
- </summary>
- <param name="action">Callback method to invoke.</param>
- <example>
- Invokes the given callback with the property value being set.
- <code>
- mock.SetupSet(x => x.Suspended)
- .Callback((bool state) => Console.WriteLine(state));
- </code>
- </example>
- </member>
- <member name="T:Moq.It">
- <summary>
- Allows the specification of a matching condition for an
- argument in a method invocation, rather than a specific
- argument value. "It" refers to the argument being matched.
- </summary><remarks>
- This class allows the setup to match a method invocation
- with an arbitrary value, with a value in a specified range, or
- even one that matches a given predicate.
- </remarks>
- </member>
- <member name="M:Moq.It.IsAny``1">
- <summary>
- Matches any value of the given <typeparamref name="TValue"/> type.
- </summary><remarks>
- Typically used when the actual argument value for a method
- call is not relevant.
- </remarks><example>
- <code>
- // Throws an exception for a call to Remove with any string value.
- mock.Setup(x => x.Remove(It.IsAny<string>())).Throws(new InvalidOperationException());
- </code>
- </example><typeparam name="TValue">Type of the value.</typeparam>
- </member>
- <member name="M:Moq.It.Is``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">
- <summary>
- Matches any value that satisfies the given predicate.
- </summary><typeparam name="TValue">Type of the argument to check.</typeparam><param name="match">The predicate used to match the method argument.</param><remarks>
- Allows the specification of a predicate to perform matching
- of method call arguments.
- </remarks><example>
- This example shows how to return the value <c>1</c> whenever the argument to the
- <c>Do</c> method is an even number.
- <code>
- mock.Setup(x => x.Do(It.Is<int>(i => i % 2 == 0)))
- .Returns(1);
- </code>
- This example shows how to throw an exception if the argument to the
- method is a negative number:
- <code>
- mock.Setup(x => x.GetUser(It.Is<int>(i => i < 0)))
- .Throws(new ArgumentException());
- </code>
- </example>
- </member>
- <member name="M:Moq.It.IsInRange``1(``0,``0,Moq.Range)">
- <summary>
- Matches any value that is in the range specified.
- </summary><typeparam name="TValue">Type of the argument to check.</typeparam><param name="from">The lower bound of the range.</param><param name="to">The upper bound of the range.</param><param name="rangeKind">
- The kind of range. See <see cref="T:Moq.Range"/>.
- </param><example>
- The following example shows how to expect a method call
- with an integer argument within the 0..100 range.
- <code>
- mock.Setup(x => x.HasInventory(
- It.IsAny<string>(),
- It.IsInRange(0, 100, Range.Inclusive)))
- .Returns(false);
- </code>
- </example>
- </member>
- <member name="M:Moq.It.IsRegex(System.String)">
- <summary>
- Matches a string argument if it matches the given regular expression pattern.
- </summary><param name="regex">The pattern to use to match the string argument value.</param><example>
- The following example shows how to expect a call to a method where the
- string argument matches the given regular expression:
- <code>
- mock.Setup(x => x.Check(It.IsRegex("[a-z]+"))).Returns(1);
- </code>
- </example>
- </member>
- <member name="M:Moq.It.IsRegex(System.String,System.Text.RegularExpressions.RegexOptions)">
- <summary>
- Matches a string argument if it matches the given regular expression pattern.
- </summary><param name="regex">The pattern to use to match the string argument value.</param><param name="options">The options used to interpret the pattern.</param><example>
- The following example shows how to expect a call to a method where the
- string argument matches the given regular expression, in a case insensitive way:
- <code>
- mock.Setup(x => x.Check(It.IsRegex("[a-z]+", RegexOptions.IgnoreCase))).Returns(1);
- </code>
- </example>
- </member>
- <member name="T:Moq.Matchers.MatcherAttributeMatcher">
- <summary>
- Matcher to treat static functions as matchers.
-
- mock.Setup(x => x.StringMethod(A.MagicString()));
-
- public static class A
- {
- [Matcher]
- public static string MagicString() { return null; }
- public static bool MagicString(string arg)
- {
- return arg == "magic";
- }
- }
-
- Will succeed if: mock.Object.StringMethod("magic");
- and fail with any other call.
- </summary>
- </member>
- <member name="T:Moq.MockBehavior">
- <summary>
- Options to customize the behavior of the mock.
- </summary>
- </member>
- <member name="F:Moq.MockBehavior.Strict">
- <summary>
- Causes the mock to always throw
- an exception for invocations that don't have a
- corresponding setup.
- </summary>
- </member>
- <member name="F:Moq.MockBehavior.Loose">
- <summary>
- Will never throw exceptions, returning default
- values when necessary (null for reference types,
- zero for value types or empty enumerables and arrays).
- </summary>
- </member>
- <member name="F:Moq.MockBehavior.Default">
- <summary>
- Default mock behavior, which equals <see cref="F:Moq.MockBehavior.Loose"/>.
- </summary>
- </member>
- <member name="T:Moq.MockException">
- <summary>
- Exception thrown by mocks when setups are not matched,
- the mock is not properly setup, etc.
- </summary>
- <remarks>
- A distinct exception type is provided so that exceptions
- thrown by the mock can be differentiated in tests that
- expect other exceptions to be thrown (i.e. ArgumentException).
- <para>
- Richer exception hierarchy/types are not provided as
- tests typically should <b>not</b> catch or expect exceptions
- from the mocks. These are typically the result of changes
- in the tested class or its collaborators implementation, and
- result in fixes in the mock setup so that they dissapear and
- allow the test to pass.
- </para>
- </remarks>
- </member>
- <member name="M:Moq.MockException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
- <summary>
- Supports the serialization infrastructure.
- </summary>
- <param name="info">Serialization information.</param>
- <param name="context">Streaming context.</param>
- </member>
- <member name="M:Moq.MockException.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
- <summary>
- Supports the serialization infrastructure.
- </summary>
- <param name="info">Serialization information.</param>
- <param name="context">Streaming context.</param>
- </member>
- <member name="T:Moq.MockException.ExceptionReason">
- <summary>
- Made internal as it's of no use for
- consumers, but it's important for
- our own tests.
- </summary>
- </member>
- <member name="T:Moq.MockVerificationException">
- <devdoc>
- Used by the mock factory to accumulate verification
- failures.
- </devdoc>
- </member>
- <member name="M:Moq.MockVerificationException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
- <summary>
- Supports the serialization infrastructure.
- </summary>
- </member>
- <member name="T:Moq.Properties.Resources">
- <summary>
- A strongly-typed resource class, for looking up localized strings, etc.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.ResourceManager">
- <summary>
- Returns the cached ResourceManager instance used by this class.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.Culture">
- <summary>
- Overrides the current thread's CurrentUICulture property for all
- resource lookups using this strongly typed resource class.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.AlreadyInitialized">
- <summary>
- Looks up a localized string similar to Mock type has already been initialized by accessing its Object property. Adding interfaces must be done before that..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.ArgumentCannotBeEmpty">
- <summary>
- Looks up a localized string similar to Value cannot be an empty string..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.AsMustBeInterface">
- <summary>
- Looks up a localized string similar to Can only add interfaces to the mock..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.CantSetReturnValueForVoid">
- <summary>
- Looks up a localized string similar to Can't set return value for void method {0}..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.ConstructorArgsForInterface">
- <summary>
- Looks up a localized string similar to Constructor arguments cannot be passed for interface mocks..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.ConstructorNotFound">
- <summary>
- Looks up a localized string similar to A matching constructor for the given arguments was not found on the mocked type..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.EventNofFound">
- <summary>
- Looks up a localized string similar to Could not locate event for attach or detach method {0}..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.FieldsNotSupported">
- <summary>
- Looks up a localized string similar to Expression {0} involves a field access, which is not supported. Use properties instead..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.InvalidMockClass">
- <summary>
- Looks up a localized string similar to Type to mock must be an interface or an abstract or non-sealed class. .
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.InvalidMockGetType">
- <summary>
- Looks up a localized string similar to Cannot retrieve a mock with the given object type {0} as it's not the main type of the mock or any of its additional interfaces.
- Please cast the argument to one of the supported types: {1}.
- Remember that there's no generics covariance in the CLR, so your object must be one of these types in order for the call to succeed..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.LinqBinaryOperatorNotSupported">
- <summary>
- Looks up a localized string similar to The equals ("==" or "=" in VB) and the conditional 'and' ("&&" or "AndAlso" in VB) operators are the only ones supported in the query specification expression. Unsupported expression: {0}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.LinqMethodNotSupported">
- <summary>
- Looks up a localized string similar to LINQ method '{0}' not supported..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.LinqMethodNotVirtual">
- <summary>
- Looks up a localized string similar to Expression contains a call to a method which is not virtual (overridable in VB) or abstract. Unsupported expression: {0}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.MemberMissing">
- <summary>
- Looks up a localized string similar to Member {0}.{1} does not exist..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.MethodIsPublic">
- <summary>
- Looks up a localized string similar to Method {0}.{1} is public. Use strong-typed Expect overload instead:
- mock.Setup(x => x.{1}());
- .
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.MockExceptionMessage">
- <summary>
- Looks up a localized string similar to {0} invocation failed with mock behavior {1}.
- {2}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.MoreThanNCalls">
- <summary>
- Looks up a localized string similar to Expected only {0} calls to {1}..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.MoreThanOneCall">
- <summary>
- Looks up a localized string similar to Expected only one call to {0}..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.NoMatchingCallsAtLeast">
- <summary>
- Looks up a localized string similar to {0}
- Expected invocation on the mock at least {2} times, but was {4} times: {1}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.NoMatchingCallsAtLeastOnce">
- <summary>
- Looks up a localized string similar to {0}
- Expected invocation on the mock at least once, but was never performed: {1}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.NoMatchingCallsAtMost">
- <summary>
- Looks up a localized string similar to {0}
- Expected invocation on the mock at most {3} times, but was {4} times: {1}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.NoMatchingCallsAtMostOnce">
- <summary>
- Looks up a localized string similar to {0}
- Expected invocation on the mock at most once, but was {4} times: {1}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.NoMatchingCallsBetweenExclusive">
- <summary>
- Looks up a localized string similar to {0}
- Expected invocation on the mock between {2} and {3} times (Exclusive), but was {4} times: {1}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.NoMatchingCallsBetweenInclusive">
- <summary>
- Looks up a localized string similar to {0}
- Expected invocation on the mock between {2} and {3} times (Inclusive), but was {4} times: {1}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.NoMatchingCallsExactly">
- <summary>
- Looks up a localized string similar to {0}
- Expected invocation on the mock exactly {2} times, but was {4} times: {1}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.NoMatchingCallsNever">
- <summary>
- Looks up a localized string similar to {0}
- Expected invocation on the mock should never have been performed, but was {4} times: {1}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.NoMatchingCallsOnce">
- <summary>
- Looks up a localized string similar to {0}
- Expected invocation on the mock once, but was {4} times: {1}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.NoSetup">
- <summary>
- Looks up a localized string similar to All invocations on the mock must have a corresponding setup..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.ObjectInstanceNotMock">
- <summary>
- Looks up a localized string similar to Object instance was not created by Moq..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.OutExpressionMustBeConstantValue">
- <summary>
- Looks up a localized string similar to Out expression must evaluate to a constant value..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.PropertyGetNotFound">
- <summary>
- Looks up a localized string similar to Property {0}.{1} does not have a getter..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.PropertyMissing">
- <summary>
- Looks up a localized string similar to Property {0}.{1} does not exist..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.PropertyNotReadable">
- <summary>
- Looks up a localized string similar to Property {0}.{1} is write-only..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.PropertyNotWritable">
- <summary>
- Looks up a localized string similar to Property {0}.{1} is read-only..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.PropertySetNotFound">
- <summary>
- Looks up a localized string similar to Property {0}.{1} does not have a setter..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.RaisedUnassociatedEvent">
- <summary>
- Looks up a localized string similar to Cannot raise a mocked event unless it has been associated (attached) to a concrete event in a mocked object..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.RefExpressionMustBeConstantValue">
- <summary>
- Looks up a localized string similar to Ref expression must evaluate to a constant value..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.ReturnValueRequired">
- <summary>
- Looks up a localized string similar to Invocation needs to return a value and therefore must have a corresponding setup that provides it..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.SetupLambda">
- <summary>
- Looks up a localized string similar to A lambda expression is expected as the argument to It.Is<T>..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.SetupNever">
- <summary>
- Looks up a localized string similar to Invocation {0} should not have been made..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.SetupNotMethod">
- <summary>
- Looks up a localized string similar to Expression is not a method invocation: {0}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.SetupNotProperty">
- <summary>
- Looks up a localized string similar to Expression is not a property access: {0}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.SetupNotSetter">
- <summary>
- Looks up a localized string similar to Expression is not a property setter invocation..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.SetupOnNonMemberMethod">
- <summary>
- Looks up a localized string similar to Expression references a method that does not belong to the mocked object: {0}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.SetupOnNonOverridableMember">
- <summary>
- Looks up a localized string similar to Invalid setup on a non-virtual (overridable in VB) member: {0}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.TypeNotImplementInterface">
- <summary>
- Looks up a localized string similar to Type {0} does not implement required interface {1}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.TypeNotInheritFromType">
- <summary>
- Looks up a localized string similar to Type {0} does not from required type {1}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.UnexpectedPublicProperty">
- <summary>
- Looks up a localized string similar to To specify a setup for public property {0}.{1}, use the typed overloads, such as:
- mock.Setup(x => x.{1}).Returns(value);
- mock.SetupGet(x => x.{1}).Returns(value); //equivalent to previous one
- mock.SetupSet(x => x.{1}).Callback(callbackDelegate);
- .
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.UnsupportedExpression">
- <summary>
- Looks up a localized string similar to Unsupported expression: {0}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.UnsupportedIntermediateExpression">
- <summary>
- Looks up a localized string similar to Only property accesses are supported in intermediate invocations on a setup. Unsupported expression {0}..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.UnsupportedIntermediateType">
- <summary>
- Looks up a localized string similar to Expression contains intermediate property access {0}.{1} which is of type {2} and cannot be mocked. Unsupported expression {3}..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.UnsupportedMatcherParamsForSetter">
- <summary>
- Looks up a localized string similar to Setter expression cannot use argument matchers that receive parameters..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.UnsupportedMember">
- <summary>
- Looks up a localized string similar to Member {0} is not supported for protected mocking..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.UnsupportedNonStaticMatcherForSetter">
- <summary>
- Looks up a localized string similar to Setter expression can only use static custom matchers..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.VerficationFailed">
- <summary>
- Looks up a localized string similar to The following setups were not matched:
- {0}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.VerifyOnNonVirtualMember">
- <summary>
- Looks up a localized string similar to Invalid verify on a non-virtual (overridable in VB) member: {0}.
- </summary>
- </member>
- <member name="T:Moq.Protected.IProtectedMock`1">
- <summary>
- Allows setups to be specified for protected members by using their
- name as a string, rather than strong-typing them which is not possible
- due to their visibility.
- </summary>
- </member>
- <member name="M:Moq.Protected.IProtectedMock`1.Setup(System.String,System.Object[])">
- <summary>
- Specifies a setup for a void method invocation with the given
- <paramref name="voidMethodName"/>, optionally specifying arguments for the method call.
- </summary>
- <param name="voidMethodName">The name of the void method to be invoked.</param>
- <param name="args">The optional arguments for the invocation. If argument matchers are used,
- remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>
- </member>
- <member name="M:Moq.Protected.IProtectedMock`1.Setup``1(System.String,System.Object[])">
- <summary>
- Specifies a setup for an invocation on a property or a non void method with the given
- <paramref name="methodOrPropertyName"/>, optionally specifying arguments for the method call.
- </summary>
- <param name="methodOrPropertyName">The name of the method or property to be invoked.</param>
- <param name="args">The optional arguments for the invocation. If argument matchers are used,
- remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>
- <typeparam name="TResult">The return type of the method or property.</typeparam>
- </member>
- <member name="M:Moq.Protected.IProtectedMock`1.SetupGet``1(System.String)">
- <summary>
- Specifies a setup for an invocation on a property getter with the given
- <paramref name="propertyName"/>.
- </summary>
- <param name="propertyName">The name of the property.</param>
- <typeparam name="TProperty">The type of the property.</typeparam>
- </member>
- <member name="M:Moq.Protected.IProtectedMock`1.SetupSet``1(System.String,System.Object)">
- <summary>
- Specifies a setup for an invocation on a property setter with the given
- <paramref name="propertyName"/>.
- </summary>
- <param name="propertyName">The name of the property.</param>
- <param name="value">The property value. If argument matchers are used,
- remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>
- <typeparam name="TProperty">The type of the property.</typeparam>
- </member>
- <member name="M:Moq.Protected.IProtectedMock`1.Verify(System.String,Moq.Times,System.Object[])">
- <summary>
- Specifies a verify for a void method with the given <paramref name="methodName"/>,
- optionally specifying arguments for the method call. Use in conjuntion with the default
- <see cref="F:Moq.MockBehavior.Loose"/>.
- </summary>
- <exception cref="T:Moq.MockException">The invocation was not call the times specified by
- <paramref name="times"/>.</exception>
- <param name="methodName">The name of the void method to be verified.</param>
- <param name="times">The number of times a method is allowed to be called.</param>
- <param name="args">The optional arguments for the invocation. If argument matchers are used,
- remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>
- </member>
- <member name="M:Moq.Protected.IProtectedMock`1.Verify``1(System.String,Moq.Times,System.Object[])">
- <summary>
- Specifies a verify for an invocation on a property or a non void method with the given
- <paramref name="methodName"/>, optionally specifying arguments for the method call.
- </summary>
- <exception cref="T:Moq.MockException">The invocation was not call the times specified by
- <paramref name="times"/>.</exception>
- <param name="methodName">The name of the method or property to be invoked.</param>
- <param name="args">The optional arguments for the invocation. If argument matchers are used,
- remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>
- <param name="times">The number of times a method is allowed to be called.</param>
- <typeparam name="TResult">The type of return value from the expression.</typeparam>
- </member>
- <member name="M:Moq.Protected.IProtectedMock`1.VerifyGet``1(System.String,Moq.Times)">
- <summary>
- Specifies a verify for an invocation on a property getter with the given
- <paramref name="propertyName"/>.
- <exception cref="T:Moq.MockException">The invocation was not call the times specified by
- <paramref name="times"/>.</exception>
- </summary>
- <param name="propertyName">The name of the property.</param>
- <param name="times">The number of times a method is allowed to be called.</param>
- <typeparam name="TProperty">The type of the property.</typeparam>
- </member>
- <member name="M:Moq.Protected.IProtectedMock`1.VerifySet``1(System.String,Moq.Times,System.Object)">
- <summary>
- Specifies a setup for an invocation on a property setter with the given
- <paramref name="propertyName"/>.
- </summary>
- <exception cref="T:Moq.MockException">The invocation was not call the times specified by
- <paramref name="times"/>.</exception>
- <param name="propertyName">The name of the property.</param>
- <param name="times">The number of times a method is allowed to be called.</param>
- <param name="value">The property value.</param>
- <typeparam name="TProperty">The type of the property. If argument matchers are used,
- remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</typeparam>
- </member>
- <member name="T:Moq.Protected.ItExpr">
- <summary>
- Allows the specification of a matching condition for an
- argument in a protected member setup, rather than a specific
- argument value. "ItExpr" refers to the argument being matched.
- </summary>
- <remarks>
- <para>Use this variant of argument matching instead of
- <see cref="T:Moq.It"/> for protected setups.</para>
- This class allows the setup to match a method invocation
- with an arbitrary value, with a value in a specified range, or
- even one that matches a given predicate, or null.
- </remarks>
- </member>
- <member name="M:Moq.Protected.ItExpr.IsNull``1">
- <summary>
- Matches a null value of the given <typeparamref name="TValue"/> type.
- </summary>
- <remarks>
- Required for protected mocks as the null value cannot be used
- directly as it prevents proper method overload selection.
- </remarks>
- <example>
- <code>
- // Throws an exception for a call to Remove with a null string value.
- mock.Protected()
- .Setup("Remove", ItExpr.IsNull<string>())
- .Throws(new InvalidOperationException());
- </code>
- </example>
- <typeparam name="TValue">Type of the value.</typeparam>
- </member>
- <member name="M:Moq.Protected.ItExpr.IsAny``1">
- <summary>
- Matches any value of the given <typeparamref name="TValue"/> type.
- </summary>
- <remarks>
- Typically used when the actual argument value for a method
- call is not relevant.
- </remarks>
- <example>
- <code>
- // Throws an exception for a call to Remove with any string value.
- mock.Protected()
- .Setup("Remove", ItExpr.IsAny<string>())
- .Throws(new InvalidOperationException());
- </code>
- </example>
- <typeparam name="TValue">Type of the value.</typeparam>
- </member>
- <member name="M:Moq.Protected.ItExpr.Is``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">
- <summary>
- Matches any value that satisfies the given predicate.
- </summary>
- <typeparam name="TValue">Type of the argument to check.</typeparam>
- <param name="match">The predicate used to match the method argument.</param>
- <remarks>
- Allows the specification of a predicate to perform matching
- of method call arguments.
- </remarks>
- <example>
- This example shows how to return the value <c>1</c> whenever the argument to the
- <c>Do</c> method is an even number.
- <code>
- mock.Protected()
- .Setup("Do", ItExpr.Is<int>(i => i % 2 == 0))
- .Returns(1);
- </code>
- This example shows how to throw an exception if the argument to the
- method is a negative number:
- <code>
- mock.Protected()
- .Setup("GetUser", ItExpr.Is<int>(i => i < 0))
- .Throws(new ArgumentException());
- </code>
- </example>
- </member>
- <member name="M:Moq.Protected.ItExpr.IsInRange``1(``0,``0,Moq.Range)">
- <summary>
- Matches any value that is in the range specified.
- </summary>
- <typeparam name="TValue">Type of the argument to check.</typeparam>
- <param name="from">The lower bound of the range.</param>
- <param name="to">The upper bound of the range.</param>
- <param name="rangeKind">The kind of range. See <see cref="T:Moq.Range"/>.</param>
- <example>
- The following example shows how to expect a method call
- with an integer argument within the 0..100 range.
- <code>
- mock.Protected()
- .Setup("HasInventory",
- ItExpr.IsAny<string>(),
- ItExpr.IsInRange(0, 100, Range.Inclusive))
- .Returns(false);
- </code>
- </example>
- </member>
- <member name="M:Moq.Protected.ItExpr.IsRegex(System.String)">
- <summary>
- Matches a string argument if it matches the given regular expression pattern.
- </summary>
- <param name="regex">The pattern to use to match the string argument value.</param>
- <example>
- The following example shows how to expect a call to a method where the
- string argument matches the given regular expression:
- <code>
- mock.Protected()
- .Setup("Check", ItExpr.IsRegex("[a-z]+"))
- .Returns(1);
- </code>
- </example>
- </member>
- <member name="M:Moq.Protected.ItExpr.IsRegex(System.String,System.Text.RegularExpressions.RegexOptions)">
- <summary>
- Matches a string argument if it matches the given regular expression pattern.
- </summary>
- <param name="regex">The pattern to use to match the string argument value.</param>
- <param name="options">The options used to interpret the pattern.</param>
- <example>
- The following example shows how to expect a call to a method where the
- string argument matches the given regular expression, in a case insensitive way:
- <code>
- mock.Protected()
- .Setup("Check", ItExpr.IsRegex("[a-z]+", RegexOptions.IgnoreCase))
- .Returns(1);
- </code>
- </example>
- </member>
- <member name="T:Moq.Protected.ProtectedExtension">
- <summary>
- Enables the <c>Protected()</c> method on <see cref="T:Moq.Mock`1"/>,
- allowing setups to be set for protected members by using their
- name as a string, rather than strong-typing them which is not possible
- due to their visibility.
- </summary>
- </member>
- <member name="M:Moq.Protected.ProtectedExtension.Protected``1(Moq.Mock{``0})">
- <summary>
- Enable protected setups for the mock.
- </summary>
- <typeparam name="T">Mocked object type. Typically omitted as it can be inferred from the mock instance.</typeparam>
- <param name="mock">The mock to set the protected setups on.</param>
- </member>
- <member name="T:ThisAssembly">
- <group name="overview" title="Overview" order="0" />
- <group name="setups" title="Specifying setups" order="1" />
- <group name="returns" title="Returning values from members" order="2" />
- <group name="verification" title="Verifying setups" order="3" />
- <group name="advanced" title="Advanced scenarios" order="99" />
- <group name="factory" title="Using MockFactory for consistency across mocks" order="4" />
- </member>
- <member name="T:Moq.Range">
- <summary>
- Kind of range to use in a filter specified through
- <see cref="M:Moq.It.IsInRange``1(``0,``0,Moq.Range)"/>.
- </summary>
- </member>
- <member name="F:Moq.Range.Inclusive">
- <summary>
- The range includes the <c>to</c> and
- <c>from</c> values.
- </summary>
- </member>
- <member name="F:Moq.Range.Exclusive">
- <summary>
- The range does not include the <c>to</c> and
- <c>from</c> values.
- </summary>
- </member>
- <member name="T:Moq.DefaultValue">
- <summary>
- Determines the way default values are generated
- calculated for loose mocks.
- </summary>
- </member>
- <member name="F:Moq.DefaultValue.Empty">
- <summary>
- Default behavior, which generates empty values for
- value types (i.e. default(int)), empty array and
- enumerables, and nulls for all other reference types.
- </summary>
- </member>
- <member name="F:Moq.DefaultValue.Mock">
- <summary>
- Whenever the default value generated by <see cref="F:Moq.DefaultValue.Empty"/>
- is null, replaces this value with a mock (if the type
- can be mocked).
- </summary>
- <remarks>
- For sealed classes, a null value will be generated.
- </remarks>
- </member>
- <member name="T:Moq.Linq.MockQueryable`1">
- <summary>
- A default implementation of IQueryable for use with QueryProvider
- </summary>
- </member>
- <member name="M:Moq.Linq.MockQueryable`1.#ctor(System.Linq.Expressions.MethodCallExpression)">
- <summary>
- The <paramref name="underlyingCreateMocks"/> is a
- static method that returns an IQueryable of Mocks of T which is used to
- apply the linq specification to.
- </summary>
- </member>
- <member name="T:Moq.Match">
- <summary>
- Allows creation custom value matchers that can be used on setups and verification,
- completely replacing the built-in <see cref="T:Moq.It"/> class with your own argument
- matching rules.
- </summary><remarks>
- See also <see cref="T:Moq.Match`1"/>.
- </remarks>
- </member>
- <member name="M:Moq.Match.Matcher``1">
- <devdoc>
- Provided for the sole purpose of rendering the delegate passed to the
- matcher constructor if no friendly render lambda is provided.
- </devdoc>
- </member>
- <member name="M:Moq.Match.Create``1(System.Predicate{``0})">
- <summary>
- Initializes the match with the condition that
- will be checked in order to match invocation
- values.
- </summary><param name="condition">The condition to match against actual values.</param><remarks>
- <seealso cref="T:Moq.Match`1"/>
- </remarks>
- </member>
- <member name="M:Moq.Match.Create``1(System.Predicate{``0},System.Linq.Expressions.Expression{System.Func{``0}})">
- <!-- No matching elements were found for the following include tag --><include file="Match.xdoc" path="docs/doc[@for="Match.Create{T}(condition,renderExpression"]/*"/>
- </member>
- <member name="M:Moq.Match.SetLastMatch``1(Moq.Match{``0})">
- <devdoc>
- This method is used to set an expression as the last matcher invoked,
- which is used in the SetupSet to allow matchers in the prop = value
- delegate expression. This delegate is executed in "fluent" mode in
- order to capture the value being set, and construct the corresponding
- methodcall.
- This is also used in the MatcherFactory for each argument expression.
- This method ensures that when we execute the delegate, we
- also track the matcher that was invoked, so that when we create the
- methodcall we build the expression using it, rather than the null/default
- value returned from the actual invocation.
- </devdoc>
- </member>
- <member name="T:Moq.Match`1">
- <summary>
- Allows creation custom value matchers that can be used on setups and verification,
- completely replacing the built-in <see cref="T:Moq.It"/> class with your own argument
- matching rules.
- </summary><typeparam name="T">Type of the value to match.</typeparam><remarks>
- The argument matching is used to determine whether a concrete
- invocation in the mock matches a given setup. This
- matching mechanism is fully extensible.
- </remarks><example>
- Creating a custom matcher is straightforward. You just need to create a method
- that returns a value from a call to <see cref="M:Moq.Match.Create``1(System.Predicate{``0})"/> with
- your matching condition and optional friendly render expression:
- <code>
- [Matcher]
- public Order IsBigOrder()
- {
- return Match<Order>.Create(
- o => o.GrandTotal >= 5000,
- /* a friendly expression to render on failures */
- () => IsBigOrder());
- }
- </code>
- This method can be used in any mock setup invocation:
- <code>
- mock.Setup(m => m.Submit(IsBigOrder()).Throws<UnauthorizedAccessException>();
- </code>
- At runtime, Moq knows that the return value was a matcher (note that the method MUST be
- annotated with the [Matcher] attribute in order to determine this) and
- evaluates your predicate with the actual value passed into your predicate.
- <para>
- Another example might be a case where you want to match a lists of orders
- that contains a particular one. You might create matcher like the following:
- </para>
- <code>
- public static class Orders
- {
- [Matcher]
- public static IEnumerable<Order> Contains(Order order)
- {
- return Match<IEnumerable<Order>>.Create(orders => orders.Contains(order));
- }
- }
- </code>
- Now we can invoke this static method instead of an argument in an
- invocation:
- <code>
- var order = new Order { ... };
- var mock = new Mock<IRepository<Order>>();
-
- mock.Setup(x => x.Save(Orders.Contains(order)))
- .Throws<ArgumentException>();
- </code>
- </example>
- </member>
- <member name="T:Moq.FluentMockContext">
- <summary>
- Tracks the current mock and interception context.
- </summary>
- </member>
- <member name="P:Moq.FluentMockContext.IsActive">
- <summary>
- Having an active fluent mock context means that the invocation
- is being performed in "trial" mode, just to gather the
- target method and arguments that need to be matched later
- when the actual invocation is made.
- </summary>
- </member>
- <member name="T:Moq.MockDefaultValueProvider">
- <summary>
- A <see cref="T:Moq.IDefaultValueProvider"/> that returns an empty default value
- for non-mockeable types, and mocks for all other types (interfaces and
- non-sealed classes) that can be mocked.
- </summary>
- </member>
- <member name="T:Moq.Mocks">
- <summary>
- Allows querying the universe of mocks for those that behave
- according to the LINQ query specification.
- </summary>
- <devdoc>
- This entry-point into Linq to Mocks is the only one in the root Moq
- namespace to ease discovery. But to get all the mocking extension
- methods on Object, a using of Moq.Linq must be done, so that the
- polluting of the intellisense for all objects is an explicit opt-in.
- </devdoc>
- </member>
- <member name="M:Moq.Mocks.Of``1">
- <summary>
- Access the universe of mocks of the given type, to retrieve those
- that behave according to the LINQ query specification.
- </summary>
- <typeparam name="T">The type of the mocked object to query.</typeparam>
- </member>
- <member name="M:Moq.Mocks.Of``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">
- <summary>
- Access the universe of mocks of the given type, to retrieve those
- that behave according to the LINQ query specification.
- </summary>
- <param name="specification">The predicate with the setup expressions.</param>
- <typeparam name="T">The type of the mocked object to query.</typeparam>
- </member>
- <member name="M:Moq.Mocks.OneOf``1">
- <summary>
- Creates an mock object of the indicated type.
- </summary>
- <typeparam name="T">The type of the mocked object.</typeparam>
- <returns>The mocked object created.</returns>
- </member>
- <member name="M:Moq.Mocks.OneOf``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">
- <summary>
- Creates an mock object of the indicated type.
- </summary>
- <param name="specification">The predicate with the setup expressions.</param>
- <typeparam name="T">The type of the mocked object.</typeparam>
- <returns>The mocked object created.</returns>
- </member>
- <member name="M:Moq.Mocks.CreateMockQuery``1">
- <summary>
- Creates the mock query with the underlying queriable implementation.
- </summary>
- </member>
- <member name="M:Moq.Mocks.CreateQueryable``1">
- <summary>
- Wraps the enumerator inside a queryable.
- </summary>
- </member>
- <member name="M:Moq.Mocks.CreateMocks``1">
- <summary>
- Method that is turned into the actual call from .Query{T}, to
- transform the queryable query into a normal enumerable query.
- This method is never used directly by consumers.
- </summary>
- </member>
- <member name="M:Moq.Mocks.SetPropery``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},``1)">
- <summary>
- Extension method used to support Linq-like setup properties that are not virtual but do have
- a getter and a setter, thereby allowing the use of Linq to Mocks to quickly initialize Dtos too :)
- </summary>
- </member>
- <member name="T:Moq.QueryableMockExtensions">
- <summary>
- Helper extensions that are used by the query translator.
- </summary>
- </member>
- <member name="M:Moq.QueryableMockExtensions.FluentMock``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}})">
- <summary>
- Retrieves a fluent mock from the given setup expression.
- </summary>
- </member>
- <member name="T:Moq.Times">
- <summary>
- Defines the number of invocations allowed by a mocked method.
- </summary>
- </member>
- <member name="M:Moq.Times.AtLeast(System.Int32)">
- <summary>
- Specifies that a mocked method should be invoked <paramref name="callCount"/> times as minimum.
- </summary><param name="callCount">The minimun number of times.</param><returns>An object defining the allowed number of invocations.</returns>
- </member>
- <member name="M:Moq.Times.AtLeastOnce">
- <summary>
- Specifies that a mocked method should be invoked one time as minimum.
- </summary><returns>An object defining the allowed number of invocations.</returns>
- </member>
- <member name="M:Moq.Times.AtMost(System.Int32)">
- <summary>
- Specifies that a mocked method should be invoked <paramref name="callCount"/> time as maximun.
- </summary><param name="callCount">The maximun number of times.</param><returns>An object defining the allowed number of invocations.</returns>
- </member>
- <member name="M:Moq.Times.AtMostOnce">
- <summary>
- Specifies that a mocked method should be invoked one time as maximun.
- </summary><returns>An object defining the allowed number of invocations.</returns>
- </member>
- <member name="M:Moq.Times.Between(System.Int32,System.Int32,Moq.Range)">
- <summary>
- Specifies that a mocked method should be invoked between <paramref name="callCountFrom"/> and
- <paramref name="callCountTo"/> times.
- </summary><param name="callCountFrom">The minimun number of times.</param><param name="callCountTo">The maximun number of times.</param><param name="rangeKind">
- The kind of range. See <see cref="T:Moq.Range"/>.
- </param><returns>An object defining the allowed number of invocations.</returns>
- </member>
- <member name="M:Moq.Times.Exactly(System.Int32)">
- <summary>
- Specifies that a mocked method should be invoked exactly <paramref name="callCount"/> times.
- </summary><param name="callCount">The times that a method or property can be called.</param><returns>An object defining the allowed number of invocations.</returns>
- </member>
- <member name="M:Moq.Times.Never">
- <summary>
- Specifies that a mocked method should not be invoked.
- </summary><returns>An object defining the allowed number of invocations.</returns>
- </member>
- <member name="M:Moq.Times.Once">
- <summary>
- Specifies that a mocked method should be invoked exactly one time.
- </summary><returns>An object defining the allowed number of invocations.</returns>
- </member>
- <member name="M:Moq.Times.Equals(System.Object)">
- <summary>
- Determines whether the specified <see cref="T:System.Object"/> is equal to this instance.
- </summary><param name="obj">
- The <see cref="T:System.Object"/> to compare with this instance.
- </param><returns>
- <c>true</c> if the specified <see cref="T:System.Object"/> is equal to this instance; otherwise, <c>false</c>.
- </returns>
- </member>
- <member name="M:Moq.Times.GetHashCode">
- <summary>
- Returns a hash code for this instance.
- </summary><returns>
- A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
- </returns>
- </member>
- <member name="M:Moq.Times.op_Equality(Moq.Times,Moq.Times)">
- <summary>
- Determines whether two specified <see cref="T:Moq.Times"/> objects have the same value.
- </summary><param name="left">
- The first <see cref="T:Moq.Times"/>.
- </param><param name="right">
- The second <see cref="T:Moq.Times"/>.
- </param><returns>
- <c>true</c> if the value of left is the same as the value of right; otherwise, <c>false</c>.
- </returns>
- </member>
- <member name="M:Moq.Times.op_Inequality(Moq.Times,Moq.Times)">
- <summary>
- Determines whether two specified <see cref="T:Moq.Times"/> objects have different values.
- </summary><param name="left">
- The first <see cref="T:Moq.Times"/>.
- </param><param name="right">
- The second <see cref="T:Moq.Times"/>.
- </param><returns>
- <c>true</c> if the value of left is different from the value of right; otherwise, <c>false</c>.
- </returns>
- </member>
- </members>
-</doc>
diff --git a/SendGrid/packages/Moq.4.0.10827/lib/NET40/Moq.dll b/SendGrid/packages/Moq.4.0.10827/lib/NET40/Moq.dll Binary files differdeleted file mode 100644 index 3a3e653..0000000 --- a/SendGrid/packages/Moq.4.0.10827/lib/NET40/Moq.dll +++ /dev/null diff --git a/SendGrid/packages/Moq.4.0.10827/lib/NET40/Moq.pdb b/SendGrid/packages/Moq.4.0.10827/lib/NET40/Moq.pdb Binary files differdeleted file mode 100644 index 03cca56..0000000 --- a/SendGrid/packages/Moq.4.0.10827/lib/NET40/Moq.pdb +++ /dev/null diff --git a/SendGrid/packages/Moq.4.0.10827/lib/NET40/Moq.xml b/SendGrid/packages/Moq.4.0.10827/lib/NET40/Moq.xml deleted file mode 100644 index e0743a6..0000000 --- a/SendGrid/packages/Moq.4.0.10827/lib/NET40/Moq.xml +++ /dev/null @@ -1,5120 +0,0 @@ -<?xml version="1.0"?>
-<doc>
- <assembly>
- <name>Moq</name>
- </assembly>
- <members>
- <member name="T:Moq.Language.ISetupConditionResult`1">
- <summary>
- Implements the fluent API.
- </summary>
- </member>
- <member name="M:Moq.Language.ISetupConditionResult`1.Setup(System.Linq.Expressions.Expression{System.Action{`0}})">
- <summary>
- The expectation will be considered only in the former condition.
- </summary>
- <param name="expression"></param>
- <returns></returns>
- </member>
- <member name="M:Moq.Language.ISetupConditionResult`1.Setup``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
- <summary>
- The expectation will be considered only in the former condition.
- </summary>
- <typeparam name="TResult"></typeparam>
- <param name="expression"></param>
- <returns></returns>
- </member>
- <member name="M:Moq.Language.ISetupConditionResult`1.SetupGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
- <summary>
- Setups the get.
- </summary>
- <typeparam name="TProperty">The type of the property.</typeparam>
- <param name="expression">The expression.</param>
- <returns></returns>
- </member>
- <member name="M:Moq.Language.ISetupConditionResult`1.SetupSet``1(System.Action{`0})">
- <summary>
- Setups the set.
- </summary>
- <typeparam name="TProperty">The type of the property.</typeparam>
- <param name="setterExpression">The setter expression.</param>
- <returns></returns>
- </member>
- <member name="M:Moq.Language.ISetupConditionResult`1.SetupSet(System.Action{`0})">
- <summary>
- Setups the set.
- </summary>
- <param name="setterExpression">The setter expression.</param>
- <returns></returns>
- </member>
- <member name="T:Moq.Language.ICallback">
- <summary>
- Defines the <c>Callback</c> verb and overloads.
- </summary>
- </member>
- <member name="T:Moq.IHideObjectMembers">
- <summary>
- Helper interface used to hide the base <see cref="T:System.Object"/>
- members from the fluent API to make it much cleaner
- in Visual Studio intellisense.
- </summary>
- </member>
- <member name="M:Moq.IHideObjectMembers.GetType">
- <summary/>
- </member>
- <member name="M:Moq.IHideObjectMembers.GetHashCode">
- <summary/>
- </member>
- <member name="M:Moq.IHideObjectMembers.ToString">
- <summary/>
- </member>
- <member name="M:Moq.IHideObjectMembers.Equals(System.Object)">
- <summary/>
- </member>
- <member name="M:Moq.Language.ICallback.Callback(System.Action)">
- <summary>
- Specifies a callback to invoke when the method is called.
- </summary>
- <param name="action">The callback method to invoke.</param>
- <example>
- The following example specifies a callback to set a boolean
- value that can be used later:
- <code>
- var called = false;
- mock.Setup(x => x.Execute())
- .Callback(() => called = true);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``1(System.Action{``0})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T">The argument type of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <example>
- Invokes the given callback with the concrete invocation argument value.
- <para>
- Notice how the specific string argument is retrieved by simply declaring
- it as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(It.IsAny<string>()))
- .Callback((string command) => Console.WriteLine(command));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``2(System.Action{``0,``1})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2) => Console.WriteLine(arg1 + arg2));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``3(System.Action{``0,``1,``2})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3) => Console.WriteLine(arg1 + arg2 + arg3));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``4(System.Action{``0,``1,``2,``3})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4) => Console.WriteLine(arg1 + arg2 + arg3 + arg4));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``5(System.Action{``0,``1,``2,``3,``4})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``6(System.Action{``0,``1,``2,``3,``4,``5})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``7(System.Action{``0,``1,``2,``3,``4,``5,``6})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``8(System.Action{``0,``1,``2,``3,``4,``5,``6,``7})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``9(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``10(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``11(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``12(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``13(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``14(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``15(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,``14})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
- <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``16(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,``14,``15})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
- <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>
- <typeparam name="T16">The type of the sixteenth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15, string arg16) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16));
- </code>
- </example>
- </member>
- <member name="T:Moq.Language.ICallback`2">
- <summary>
- Defines the <c>Callback</c> verb and overloads for callbacks on
- setups that return a value.
- </summary>
- <typeparam name="TMock">Mocked type.</typeparam>
- <typeparam name="TResult">Type of the return value of the setup.</typeparam>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback(System.Action)">
- <summary>
- Specifies a callback to invoke when the method is called.
- </summary>
- <param name="action">The callback method to invoke.</param>
- <example>
- The following example specifies a callback to set a boolean value that can be used later:
- <code>
- var called = false;
- mock.Setup(x => x.Execute())
- .Callback(() => called = true)
- .Returns(true);
- </code>
- Note that in the case of value-returning methods, after the <c>Callback</c>
- call you can still specify the return value.
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``1(System.Action{``0})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T">The type of the argument of the invoked method.</typeparam>
- <param name="action">Callback method to invoke.</param>
- <example>
- Invokes the given callback with the concrete invocation argument value.
- <para>
- Notice how the specific string argument is retrieved by simply declaring
- it as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(It.IsAny<string>()))
- .Callback(command => Console.WriteLine(command))
- .Returns(true);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``2(System.Action{``0,``1})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2) => Console.WriteLine(arg1 + arg2));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``3(System.Action{``0,``1,``2})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3) => Console.WriteLine(arg1 + arg2 + arg3));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``4(System.Action{``0,``1,``2,``3})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4) => Console.WriteLine(arg1 + arg2 + arg3 + arg4));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``5(System.Action{``0,``1,``2,``3,``4})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4, arg5) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``6(System.Action{``0,``1,``2,``3,``4,``5})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``7(System.Action{``0,``1,``2,``3,``4,``5,``6})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``8(System.Action{``0,``1,``2,``3,``4,``5,``6,``7})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``9(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``10(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``11(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``12(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``13(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``14(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``15(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,``14})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
- <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``16(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,``14,``15})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
- <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>
- <typeparam name="T16">The type of the sixteenth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16));
- </code>
- </example>
- </member>
- <member name="T:Moq.Language.IRaise`1">
- <summary>
- Defines the <c>Raises</c> verb.
- </summary>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)">
- <summary>
- Specifies the event that will be raised
- when the setup is met.
- </summary>
- <param name="eventExpression">An expression that represents an event attach or detach action.</param>
- <param name="args">The event arguments to pass for the raised event.</param>
- <example>
- The following example shows how to raise an event when
- the setup is met:
- <code>
- var mock = new Mock<IContainer>();
-
- mock.Setup(add => add.Add(It.IsAny<string>(), It.IsAny<object>()))
- .Raises(add => add.Added += null, EventArgs.Empty);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.Func{System.EventArgs})">
- <summary>
- Specifies the event that will be raised
- when the setup is matched.
- </summary>
- <param name="eventExpression">An expression that represents an event attach or detach action.</param>
- <param name="func">A function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.Object[])">
- <summary>
- Specifies the custom event that will be raised
- when the setup is matched.
- </summary>
- <param name="eventExpression">An expression that represents an event attach or detach action.</param>
- <param name="args">The arguments to pass to the custom delegate (non EventHandler-compatible).</param>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``1(System.Action{`0},System.Func{``0,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``2(System.Action{`0},System.Func{``0,``1,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``3(System.Action{`0},System.Func{``0,``1,``2,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``4(System.Action{`0},System.Func{``0,``1,``2,``3,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``5(System.Action{`0},System.Func{``0,``1,``2,``3,``4,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``6(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``7(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``8(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``9(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``10(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``11(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>
- <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``12(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>
- <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>
- <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``13(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>
- <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>
- <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``14(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>
- <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>
- <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument received by the expected invocation.</typeparam>
- <typeparam name="T14">The type of the fourteenth argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``15(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,``14,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>
- <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>
- <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument received by the expected invocation.</typeparam>
- <typeparam name="T14">The type of the fourteenth argument received by the expected invocation.</typeparam>
- <typeparam name="T15">The type of the fifteenth argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``16(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,``14,``15,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>
- <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>
- <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument received by the expected invocation.</typeparam>
- <typeparam name="T14">The type of the fourteenth argument received by the expected invocation.</typeparam>
- <typeparam name="T15">The type of the fifteenth argument received by the expected invocation.</typeparam>
- <typeparam name="T16">The type of the sixteenth argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="T:Moq.Language.IReturns`2">
- <summary>
- Defines the <c>Returns</c> verb.
- </summary>
- <typeparam name="TMock">Mocked type.</typeparam>
- <typeparam name="TResult">Type of the return value from the expression.</typeparam>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns(`1)">
- <summary>
- Specifies the value to return.
- </summary>
- <param name="value">The value to return, or <see langword="null"/>.</param>
- <example>
- Return a <c>true</c> value from the method call:
- <code>
- mock.Setup(x => x.Execute("ping"))
- .Returns(true);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns(System.Func{`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method.
- </summary>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <example group="returns">
- Return a calculated value when the method is called:
- <code>
- mock.Setup(x => x.Execute("ping"))
- .Returns(() => returnValues[0]);
- </code>
- The lambda expression to retrieve the return value is lazy-executed,
- meaning that its value may change depending on the moment the method
- is executed and the value the <c>returnValues</c> array has at
- that moment.
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``1(System.Func{``0,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T">The type of the argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <example group="returns">
- Return a calculated value which is evaluated lazily at the time of the invocation.
- <para>
- The lookup list can change between invocations and the setup
- will return different values accordingly. Also, notice how the specific
- string argument is retrieved by simply declaring it as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(It.IsAny<string>()))
- .Returns((string command) => returnValues[command]);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``2(System.Func{``0,``1,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2) => arg1 + arg2);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``3(System.Func{``0,``1,``2,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3) => arg1 + arg2 + arg3);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``4(System.Func{``0,``1,``2,``3,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4) => arg1 + arg2 + arg3 + arg4);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``5(System.Func{``0,``1,``2,``3,``4,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5) => arg1 + arg2 + arg3 + arg4 + arg5);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``6(System.Func{``0,``1,``2,``3,``4,``5,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``7(System.Func{``0,``1,``2,``3,``4,``5,``6,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``8(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``9(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``10(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``11(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``12(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``13(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``14(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``15(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,``14,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
- <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``16(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,``14,``15,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
- <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>
- <typeparam name="T16">The type of the sixteenth argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15, string arg16) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16);
- </code>
- </example>
- </member>
- <member name="T:Moq.Language.ISetupSequentialResult`1">
- <summary>
- Language for ReturnSequence
- </summary>
- </member>
- <member name="M:Moq.Language.ISetupSequentialResult`1.Returns(`0)">
- <summary>
- Returns value
- </summary>
- </member>
- <member name="M:Moq.Language.ISetupSequentialResult`1.Throws(System.Exception)">
- <summary>
- Throws an exception
- </summary>
- </member>
- <member name="M:Moq.Language.ISetupSequentialResult`1.Throws``1">
- <summary>
- Throws an exception
- </summary>
- </member>
- <member name="F:Moq.Linq.FluentMockVisitor.isFirst">
- <summary>
- The first method call or member access will be the
- last segment of the expression (depth-first traversal),
- which is the one we have to Setup rather than FluentMock.
- And the last one is the one we have to Mock.Get rather
- than FluentMock.
- </summary>
- </member>
- <member name="T:Moq.Mock">
- <summary>
- Base class for mocks and static helper class with methods that
- apply to mocked objects, such as <see cref="M:Moq.Mock.Get``1(``0)"/> to
- retrieve a <see cref="T:Moq.Mock`1"/> from an object instance.
- </summary>
- </member>
- <member name="M:Moq.Mock.Of``1">
- <summary>
- Creates an mock object of the indicated type.
- </summary>
- <typeparam name="T">The type of the mocked object.</typeparam>
- <returns>The mocked object created.</returns>
- </member>
- <member name="M:Moq.Mock.Of``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">
- <summary>
- Creates an mock object of the indicated type.
- </summary>
- <param name="predicate">The predicate with the specification of how the mocked object should behave.</param>
- <typeparam name="T">The type of the mocked object.</typeparam>
- <returns>The mocked object created.</returns>
- </member>
- <member name="M:Moq.Mock.#ctor">
- <summary>
- Initializes a new instance of the <see cref="T:Moq.Mock"/> class.
- </summary>
- </member>
- <member name="M:Moq.Mock.Get``1(``0)">
- <summary>
- Retrieves the mock object for the given object instance.
- </summary><typeparam name="T">
- Type of the mock to retrieve. Can be omitted as it's inferred
- from the object instance passed in as the <paramref name="mocked"/> instance.
- </typeparam><param name="mocked">The instance of the mocked object.</param><returns>The mock associated with the mocked object.</returns><exception cref="T:System.ArgumentException">
- The received <paramref name="mocked"/> instance
- was not created by Moq.
- </exception><example group="advanced">
- The following example shows how to add a new setup to an object
- instance which is not the original <see cref="T:Moq.Mock`1"/> but rather
- the object associated with it:
- <code>
- // Typed instance, not the mock, is retrieved from some test API.
- HttpContextBase context = GetMockContext();
-
- // context.Request is the typed object from the "real" API
- // so in order to add a setup to it, we need to get
- // the mock that "owns" it
- Mock<HttpRequestBase> request = Mock.Get(context.Request);
- mock.Setup(req => req.AppRelativeCurrentExecutionFilePath)
- .Returns(tempUrl);
- </code>
- </example>
- </member>
- <member name="M:Moq.Mock.OnGetObject">
- <summary>
- Returns the mocked object value.
- </summary>
- </member>
- <member name="M:Moq.Mock.Verify">
- <summary>
- Verifies that all verifiable expectations have been met.
- </summary><example group="verification">
- This example sets up an expectation and marks it as verifiable. After
- the mock is used, a <c>Verify()</c> call is issued on the mock
- to ensure the method in the setup was invoked:
- <code>
- var mock = new Mock<IWarehouse>();
- this.Setup(x => x.HasInventory(TALISKER, 50)).Verifiable().Returns(true);
- ...
- // other test code
- ...
- // Will throw if the test code has didn't call HasInventory.
- this.Verify();
- </code>
- </example><exception cref="T:Moq.MockException">Not all verifiable expectations were met.</exception>
- </member>
- <member name="M:Moq.Mock.VerifyAll">
- <summary>
- Verifies all expectations regardless of whether they have
- been flagged as verifiable.
- </summary><example group="verification">
- This example sets up an expectation without marking it as verifiable. After
- the mock is used, a <see cref="M:Moq.Mock.VerifyAll"/> call is issued on the mock
- to ensure that all expectations are met:
- <code>
- var mock = new Mock<IWarehouse>();
- this.Setup(x => x.HasInventory(TALISKER, 50)).Returns(true);
- ...
- // other test code
- ...
- // Will throw if the test code has didn't call HasInventory, even
- // that expectation was not marked as verifiable.
- this.VerifyAll();
- </code>
- </example><exception cref="T:Moq.MockException">At least one expectation was not met.</exception>
- </member>
- <member name="M:Moq.Mock.GetInterceptor(System.Linq.Expressions.Expression,Moq.Mock)">
- <summary>
- Gets the interceptor target for the given expression and root mock,
- building the intermediate hierarchy of mock objects if necessary.
- </summary>
- </member>
- <member name="M:Moq.Mock.DoRaise(System.Reflection.EventInfo,System.EventArgs)">
- <summary>
- Raises the associated event with the given
- event argument data.
- </summary>
- </member>
- <member name="M:Moq.Mock.DoRaise(System.Reflection.EventInfo,System.Object[])">
- <summary>
- Raises the associated event with the given
- event argument data.
- </summary>
- </member>
- <member name="M:Moq.Mock.As``1">
- <summary>
- Adds an interface implementation to the mock,
- allowing setups to be specified for it.
- </summary><remarks>
- This method can only be called before the first use
- of the mock <see cref="P:Moq.Mock.Object"/> property, at which
- point the runtime type has already been generated
- and no more interfaces can be added to it.
- <para>
- Also, <typeparamref name="TInterface"/> must be an
- interface and not a class, which must be specified
- when creating the mock instead.
- </para>
- </remarks><exception cref="T:System.InvalidOperationException">
- The mock type
- has already been generated by accessing the <see cref="P:Moq.Mock.Object"/> property.
- </exception><exception cref="T:System.ArgumentException">
- The <typeparamref name="TInterface"/> specified
- is not an interface.
- </exception><example>
- The following example creates a mock for the main interface
- and later adds <see cref="T:System.IDisposable"/> to it to verify
- it's called by the consumer code:
- <code>
- var mock = new Mock<IProcessor>();
- mock.Setup(x => x.Execute("ping"));
-
- // add IDisposable interface
- var disposable = mock.As<IDisposable>();
- disposable.Setup(d => d.Dispose()).Verifiable();
- </code>
- </example><typeparam name="TInterface">Type of interface to cast the mock to.</typeparam>
- </member>
- <member name="M:Moq.Mock.SetReturnsDefault``1(``0)">
- <!-- No matching elements were found for the following include tag --><include file="Mock.Generic.xdoc" path="docs/doc[@for="Mock.SetReturnDefault{TReturn}"]/*"/>
- </member>
- <member name="P:Moq.Mock.Behavior">
- <summary>
- Behavior of the mock, according to the value set in the constructor.
- </summary>
- </member>
- <member name="P:Moq.Mock.CallBase">
- <summary>
- Whether the base member virtual implementation will be called
- for mocked classes if no setup is matched. Defaults to <see langword="false"/>.
- </summary>
- </member>
- <member name="P:Moq.Mock.DefaultValue">
- <summary>
- Specifies the behavior to use when returning default values for
- unexpected invocations on loose mocks.
- </summary>
- </member>
- <member name="P:Moq.Mock.Object">
- <summary>
- Gets the mocked object instance.
- </summary>
- </member>
- <member name="P:Moq.Mock.MockedType">
- <summary>
- Retrieves the type of the mocked object, its generic type argument.
- This is used in the auto-mocking of hierarchy access.
- </summary>
- </member>
- <member name="P:Moq.Mock.DefaultValueProvider">
- <summary>
- Specifies the class that will determine the default
- value to return when invocations are made that
- have no setups and need to return a default
- value (for loose mocks).
- </summary>
- </member>
- <member name="P:Moq.Mock.ImplementedInterfaces">
- <summary>
- Exposes the list of extra interfaces implemented by the mock.
- </summary>
- </member>
- <member name="T:Moq.MockRepository">
- <summary>
- Utility repository class to use to construct multiple
- mocks when consistent verification is
- desired for all of them.
- </summary>
- <remarks>
- If multiple mocks will be created during a test, passing
- the desired <see cref="T:Moq.MockBehavior"/> (if different than the
- <see cref="F:Moq.MockBehavior.Default"/> or the one
- passed to the repository constructor) and later verifying each
- mock can become repetitive and tedious.
- <para>
- This repository class helps in that scenario by providing a
- simplified creation of multiple mocks with a default
- <see cref="T:Moq.MockBehavior"/> (unless overriden by calling
- <see cref="M:Moq.MockFactory.Create``1(Moq.MockBehavior)"/>) and posterior verification.
- </para>
- </remarks>
- <example group="repository">
- The following is a straightforward example on how to
- create and automatically verify strict mocks using a <see cref="T:Moq.MockRepository"/>:
- <code>
- var repository = new MockRepository(MockBehavior.Strict);
-
- var foo = repository.Create<IFoo>();
- var bar = repository.Create<IBar>();
-
- // no need to call Verifiable() on the setup
- // as we'll be validating all of them anyway.
- foo.Setup(f => f.Do());
- bar.Setup(b => b.Redo());
-
- // exercise the mocks here
-
- repository.VerifyAll();
- // At this point all setups are already checked
- // and an optional MockException might be thrown.
- // Note also that because the mocks are strict, any invocation
- // that doesn't have a matching setup will also throw a MockException.
- </code>
- The following examples shows how to setup the repository
- to create loose mocks and later verify only verifiable setups:
- <code>
- var repository = new MockRepository(MockBehavior.Loose);
-
- var foo = repository.Create<IFoo>();
- var bar = repository.Create<IBar>();
-
- // this setup will be verified when we verify the repository
- foo.Setup(f => f.Do()).Verifiable();
-
- // this setup will NOT be verified
- foo.Setup(f => f.Calculate());
-
- // this setup will be verified when we verify the repository
- bar.Setup(b => b.Redo()).Verifiable();
-
- // exercise the mocks here
- // note that because the mocks are Loose, members
- // called in the interfaces for which no matching
- // setups exist will NOT throw exceptions,
- // and will rather return default values.
-
- repository.Verify();
- // At this point verifiable setups are already checked
- // and an optional MockException might be thrown.
- </code>
- The following examples shows how to setup the repository with a
- default strict behavior, overriding that default for a
- specific mock:
- <code>
- var repository = new MockRepository(MockBehavior.Strict);
-
- // this particular one we want loose
- var foo = repository.Create<IFoo>(MockBehavior.Loose);
- var bar = repository.Create<IBar>();
-
- // specify setups
-
- // exercise the mocks here
-
- repository.Verify();
- </code>
- </example>
- <seealso cref="T:Moq.MockBehavior"/>
- </member>
- <member name="T:Moq.MockFactory">
- <summary>
- Utility factory class to use to construct multiple
- mocks when consistent verification is
- desired for all of them.
- </summary>
- <remarks>
- If multiple mocks will be created during a test, passing
- the desired <see cref="T:Moq.MockBehavior"/> (if different than the
- <see cref="F:Moq.MockBehavior.Default"/> or the one
- passed to the factory constructor) and later verifying each
- mock can become repetitive and tedious.
- <para>
- This factory class helps in that scenario by providing a
- simplified creation of multiple mocks with a default
- <see cref="T:Moq.MockBehavior"/> (unless overriden by calling
- <see cref="M:Moq.MockFactory.Create``1(Moq.MockBehavior)"/>) and posterior verification.
- </para>
- </remarks>
- <example group="factory">
- The following is a straightforward example on how to
- create and automatically verify strict mocks using a <see cref="T:Moq.MockFactory"/>:
- <code>
- var factory = new MockFactory(MockBehavior.Strict);
-
- var foo = factory.Create<IFoo>();
- var bar = factory.Create<IBar>();
-
- // no need to call Verifiable() on the setup
- // as we'll be validating all of them anyway.
- foo.Setup(f => f.Do());
- bar.Setup(b => b.Redo());
-
- // exercise the mocks here
-
- factory.VerifyAll();
- // At this point all setups are already checked
- // and an optional MockException might be thrown.
- // Note also that because the mocks are strict, any invocation
- // that doesn't have a matching setup will also throw a MockException.
- </code>
- The following examples shows how to setup the factory
- to create loose mocks and later verify only verifiable setups:
- <code>
- var factory = new MockFactory(MockBehavior.Loose);
-
- var foo = factory.Create<IFoo>();
- var bar = factory.Create<IBar>();
-
- // this setup will be verified when we verify the factory
- foo.Setup(f => f.Do()).Verifiable();
-
- // this setup will NOT be verified
- foo.Setup(f => f.Calculate());
-
- // this setup will be verified when we verify the factory
- bar.Setup(b => b.Redo()).Verifiable();
-
- // exercise the mocks here
- // note that because the mocks are Loose, members
- // called in the interfaces for which no matching
- // setups exist will NOT throw exceptions,
- // and will rather return default values.
-
- factory.Verify();
- // At this point verifiable setups are already checked
- // and an optional MockException might be thrown.
- </code>
- The following examples shows how to setup the factory with a
- default strict behavior, overriding that default for a
- specific mock:
- <code>
- var factory = new MockFactory(MockBehavior.Strict);
-
- // this particular one we want loose
- var foo = factory.Create<IFoo>(MockBehavior.Loose);
- var bar = factory.Create<IBar>();
-
- // specify setups
-
- // exercise the mocks here
-
- factory.Verify();
- </code>
- </example>
- <seealso cref="T:Moq.MockBehavior"/>
- </member>
- <member name="M:Moq.MockFactory.#ctor(Moq.MockBehavior)">
- <summary>
- Initializes the factory with the given <paramref name="defaultBehavior"/>
- for newly created mocks from the factory.
- </summary>
- <param name="defaultBehavior">The behavior to use for mocks created
- using the <see cref="M:Moq.MockFactory.Create``1"/> factory method if not overriden
- by using the <see cref="M:Moq.MockFactory.Create``1(Moq.MockBehavior)"/> overload.</param>
- </member>
- <member name="M:Moq.MockFactory.Create``1">
- <summary>
- Creates a new mock with the default <see cref="T:Moq.MockBehavior"/>
- specified at factory construction time.
- </summary>
- <typeparam name="T">Type to mock.</typeparam>
- <returns>A new <see cref="T:Moq.Mock`1"/>.</returns>
- <example ignore="true">
- <code>
- var factory = new MockFactory(MockBehavior.Strict);
-
- var foo = factory.Create<IFoo>();
- // use mock on tests
-
- factory.VerifyAll();
- </code>
- </example>
- </member>
- <member name="M:Moq.MockFactory.Create``1(System.Object[])">
- <summary>
- Creates a new mock with the default <see cref="T:Moq.MockBehavior"/>
- specified at factory construction time and with the
- the given constructor arguments for the class.
- </summary>
- <remarks>
- The mock will try to find the best match constructor given the
- constructor arguments, and invoke that to initialize the instance.
- This applies only to classes, not interfaces.
- </remarks>
- <typeparam name="T">Type to mock.</typeparam>
- <param name="args">Constructor arguments for mocked classes.</param>
- <returns>A new <see cref="T:Moq.Mock`1"/>.</returns>
- <example ignore="true">
- <code>
- var factory = new MockFactory(MockBehavior.Default);
-
- var mock = factory.Create<MyBase>("Foo", 25, true);
- // use mock on tests
-
- factory.Verify();
- </code>
- </example>
- </member>
- <member name="M:Moq.MockFactory.Create``1(Moq.MockBehavior)">
- <summary>
- Creates a new mock with the given <paramref name="behavior"/>.
- </summary>
- <typeparam name="T">Type to mock.</typeparam>
- <param name="behavior">Behavior to use for the mock, which overrides
- the default behavior specified at factory construction time.</param>
- <returns>A new <see cref="T:Moq.Mock`1"/>.</returns>
- <example group="factory">
- The following example shows how to create a mock with a different
- behavior to that specified as the default for the factory:
- <code>
- var factory = new MockFactory(MockBehavior.Strict);
-
- var foo = factory.Create<IFoo>(MockBehavior.Loose);
- </code>
- </example>
- </member>
- <member name="M:Moq.MockFactory.Create``1(Moq.MockBehavior,System.Object[])">
- <summary>
- Creates a new mock with the given <paramref name="behavior"/>
- and with the the given constructor arguments for the class.
- </summary>
- <remarks>
- The mock will try to find the best match constructor given the
- constructor arguments, and invoke that to initialize the instance.
- This applies only to classes, not interfaces.
- </remarks>
- <typeparam name="T">Type to mock.</typeparam>
- <param name="behavior">Behavior to use for the mock, which overrides
- the default behavior specified at factory construction time.</param>
- <param name="args">Constructor arguments for mocked classes.</param>
- <returns>A new <see cref="T:Moq.Mock`1"/>.</returns>
- <example group="factory">
- The following example shows how to create a mock with a different
- behavior to that specified as the default for the factory, passing
- constructor arguments:
- <code>
- var factory = new MockFactory(MockBehavior.Default);
-
- var mock = factory.Create<MyBase>(MockBehavior.Strict, "Foo", 25, true);
- </code>
- </example>
- </member>
- <member name="M:Moq.MockFactory.CreateMock``1(Moq.MockBehavior,System.Object[])">
- <summary>
- Implements creation of a new mock within the factory.
- </summary>
- <typeparam name="T">Type to mock.</typeparam>
- <param name="behavior">The behavior for the new mock.</param>
- <param name="args">Optional arguments for the construction of the mock.</param>
- </member>
- <member name="M:Moq.MockFactory.Verify">
- <summary>
- Verifies all verifiable expectations on all mocks created
- by this factory.
- </summary>
- <seealso cref="M:Moq.Mock.Verify"/>
- <exception cref="T:Moq.MockException">One or more mocks had expectations that were not satisfied.</exception>
- </member>
- <member name="M:Moq.MockFactory.VerifyAll">
- <summary>
- Verifies all verifiable expectations on all mocks created
- by this factory.
- </summary>
- <seealso cref="M:Moq.Mock.Verify"/>
- <exception cref="T:Moq.MockException">One or more mocks had expectations that were not satisfied.</exception>
- </member>
- <member name="M:Moq.MockFactory.VerifyMocks(System.Action{Moq.Mock})">
- <summary>
- Invokes <paramref name="verifyAction"/> for each mock
- in <see cref="P:Moq.MockFactory.Mocks"/>, and accumulates the resulting
- <see cref="T:Moq.MockVerificationException"/> that might be
- thrown from the action.
- </summary>
- <param name="verifyAction">The action to execute against
- each mock.</param>
- </member>
- <member name="P:Moq.MockFactory.CallBase">
- <summary>
- Whether the base member virtual implementation will be called
- for mocked classes if no setup is matched. Defaults to <see langword="false"/>.
- </summary>
- </member>
- <member name="P:Moq.MockFactory.DefaultValue">
- <summary>
- Specifies the behavior to use when returning default values for
- unexpected invocations on loose mocks.
- </summary>
- </member>
- <member name="P:Moq.MockFactory.Mocks">
- <summary>
- Gets the mocks that have been created by this factory and
- that will get verified together.
- </summary>
- </member>
- <member name="M:Moq.MockRepository.Of``1">
- <summary>
- Access the universe of mocks of the given type, to retrieve those
- that behave according to the LINQ query specification.
- </summary>
- <typeparam name="T">The type of the mocked object to query.</typeparam>
- </member>
- <member name="M:Moq.MockRepository.Of``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">
- <summary>
- Access the universe of mocks of the given type, to retrieve those
- that behave according to the LINQ query specification.
- </summary>
- <param name="specification">The predicate with the setup expressions.</param>
- <typeparam name="T">The type of the mocked object to query.</typeparam>
- </member>
- <member name="M:Moq.MockRepository.OneOf``1">
- <summary>
- Creates an mock object of the indicated type.
- </summary>
- <typeparam name="T">The type of the mocked object.</typeparam>
- <returns>The mocked object created.</returns>
- </member>
- <member name="M:Moq.MockRepository.OneOf``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">
- <summary>
- Creates an mock object of the indicated type.
- </summary>
- <param name="specification">The predicate with the setup expressions.</param>
- <typeparam name="T">The type of the mocked object.</typeparam>
- <returns>The mocked object created.</returns>
- </member>
- <member name="M:Moq.MockRepository.CreateMockQuery``1">
- <summary>
- Creates the mock query with the underlying queriable implementation.
- </summary>
- </member>
- <member name="M:Moq.MockRepository.CreateQueryable``1">
- <summary>
- Wraps the enumerator inside a queryable.
- </summary>
- </member>
- <member name="M:Moq.MockRepository.CreateMocks``1">
- <summary>
- Method that is turned into the actual call from .Query{T}, to
- transform the queryable query into a normal enumerable query.
- This method is never used directly by consumers.
- </summary>
- </member>
- <member name="M:Moq.MockRepository.#ctor(Moq.MockBehavior)">
- <summary>
- Initializes the repository with the given <paramref name="defaultBehavior"/>
- for newly created mocks from the repository.
- </summary>
- <param name="defaultBehavior">The behavior to use for mocks created
- using the <see cref="M:Moq.MockFactory.Create``1"/> repository method if not overriden
- by using the <see cref="M:Moq.MockFactory.Create``1(Moq.MockBehavior)"/> overload.</param>
- </member>
- <member name="T:Moq.EmptyDefaultValueProvider">
- <summary>
- A <see cref="T:Moq.IDefaultValueProvider"/> that returns an empty default value
- for invocations that do not have setups or return values, with loose mocks.
- This is the default behavior for a mock.
- </summary>
- </member>
- <member name="T:Moq.IDefaultValueProvider">
- <summary>
- Interface to be implemented by classes that determine the
- default value of non-expected invocations.
- </summary>
- </member>
- <member name="M:Moq.IDefaultValueProvider.DefineDefault``1(``0)">
- <summary>
- Defines the default value to return in all the methods returning <typeparamref name="T"/>.
- </summary><typeparam name="T">The type of the return value.</typeparam><param name="value">The value to set as default.</param>
- </member>
- <member name="M:Moq.IDefaultValueProvider.ProvideDefault(System.Reflection.MethodInfo)">
- <summary>
- Provides a value for the given member and arguments.
- </summary><param name="member">
- The member to provide a default value for.
- </param>
- </member>
- <member name="T:Moq.ExpressionStringBuilder">
- <summary>
- The intention of <see cref="T:Moq.ExpressionStringBuilder"/> is to create a more readable
- string representation for the failure message.
- </summary>
- </member>
- <member name="T:Moq.Language.Flow.ICallbackResult">
- <summary>
- Implements the fluent API.
- </summary>
- </member>
- <member name="T:Moq.Language.IThrows">
- <summary>
- Defines the <c>Throws</c> verb.
- </summary>
- </member>
- <member name="M:Moq.Language.IThrows.Throws(System.Exception)">
- <summary>
- Specifies the exception to throw when the method is invoked.
- </summary>
- <param name="exception">Exception instance to throw.</param>
- <example>
- This example shows how to throw an exception when the method is
- invoked with an empty string argument:
- <code>
- mock.Setup(x => x.Execute(""))
- .Throws(new ArgumentException());
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IThrows.Throws``1">
- <summary>
- Specifies the type of exception to throw when the method is invoked.
- </summary>
- <typeparam name="TException">Type of exception to instantiate and throw when the setup is matched.</typeparam>
- <example>
- This example shows how to throw an exception when the method is
- invoked with an empty string argument:
- <code>
- mock.Setup(x => x.Execute(""))
- .Throws<ArgumentException>();
- </code>
- </example>
- </member>
- <member name="T:Moq.Language.Flow.IThrowsResult">
- <summary>
- Implements the fluent API.
- </summary>
- </member>
- <member name="T:Moq.Language.IOccurrence">
- <summary>
- Defines occurrence members to constraint setups.
- </summary>
- </member>
- <member name="M:Moq.Language.IOccurrence.AtMostOnce">
- <summary>
- The expected invocation can happen at most once.
- </summary>
- <example>
- <code>
- var mock = new Mock<ICommand>();
- mock.Setup(foo => foo.Execute("ping"))
- .AtMostOnce();
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IOccurrence.AtMost(System.Int32)">
- <summary>
- The expected invocation can happen at most specified number of times.
- </summary>
- <param name="callCount">The number of times to accept calls.</param>
- <example>
- <code>
- var mock = new Mock<ICommand>();
- mock.Setup(foo => foo.Execute("ping"))
- .AtMost( 5 );
- </code>
- </example>
- </member>
- <member name="T:Moq.Language.IVerifies">
- <summary>
- Defines the <c>Verifiable</c> verb.
- </summary>
- </member>
- <member name="M:Moq.Language.IVerifies.Verifiable">
- <summary>
- Marks the expectation as verifiable, meaning that a call
- to <see cref="M:Moq.Mock.Verify"/> will check if this particular
- expectation was met.
- </summary>
- <example>
- The following example marks the expectation as verifiable:
- <code>
- mock.Expect(x => x.Execute("ping"))
- .Returns(true)
- .Verifiable();
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IVerifies.Verifiable(System.String)">
- <summary>
- Marks the expectation as verifiable, meaning that a call
- to <see cref="M:Moq.Mock.Verify"/> will check if this particular
- expectation was met, and specifies a message for failures.
- </summary>
- <example>
- The following example marks the expectation as verifiable:
- <code>
- mock.Expect(x => x.Execute("ping"))
- .Returns(true)
- .Verifiable("Ping should be executed always!");
- </code>
- </example>
- </member>
- <member name="T:Moq.Language.Flow.ISetup`1">
- <summary>
- Implements the fluent API.
- </summary>
- </member>
- <member name="T:Moq.MethodCallReturn">
- <devdoc>
- We need this non-generics base class so that
- we can use <see cref="P:Moq.MethodCallReturn.HasReturnValue"/> from
- generic code.
- </devdoc>
- </member>
- <member name="T:Moq.Language.Flow.ISetup`2">
- <summary>
- Implements the fluent API.
- </summary>
- </member>
- <member name="T:Moq.Language.Flow.IReturnsThrows`2">
- <summary>
- Implements the fluent API.
- </summary>
- </member>
- <member name="T:Moq.Language.Flow.ISetupGetter`2">
- <summary>
- Implements the fluent API.
- </summary>
- </member>
- <member name="T:Moq.Language.ICallbackGetter`2">
- <summary>
- Defines the <c>Callback</c> verb for property getter setups.
- </summary>
- <seealso cref="M:Moq.Mock`1.SetupGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})"/>
- <typeparam name="TMock">Mocked type.</typeparam>
- <typeparam name="TProperty">Type of the property.</typeparam>
- </member>
- <member name="M:Moq.Language.ICallbackGetter`2.Callback(System.Action)">
- <summary>
- Specifies a callback to invoke when the property is retrieved.
- </summary>
- <param name="action">Callback method to invoke.</param>
- <example>
- Invokes the given callback with the property value being set.
- <code>
- mock.SetupGet(x => x.Suspended)
- .Callback(() => called = true)
- .Returns(true);
- </code>
- </example>
- </member>
- <member name="T:Moq.Language.Flow.IReturnsThrowsGetter`2">
- <summary>
- Implements the fluent API.
- </summary>
- </member>
- <member name="T:Moq.Language.IReturnsGetter`2">
- <summary>
- Defines the <c>Returns</c> verb for property get setups.
- </summary>
- <typeparam name="TMock">Mocked type.</typeparam>
- <typeparam name="TProperty">Type of the property.</typeparam>
- </member>
- <member name="M:Moq.Language.IReturnsGetter`2.Returns(`1)">
- <summary>
- Specifies the value to return.
- </summary>
- <param name="value">The value to return, or <see langword="null"/>.</param>
- <example>
- Return a <c>true</c> value from the property getter call:
- <code>
- mock.SetupGet(x => x.Suspended)
- .Returns(true);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturnsGetter`2.Returns(System.Func{`1})">
- <summary>
- Specifies a function that will calculate the value to return for the property.
- </summary>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <example>
- Return a calculated value when the property is retrieved:
- <code>
- mock.SetupGet(x => x.Suspended)
- .Returns(() => returnValues[0]);
- </code>
- The lambda expression to retrieve the return value is lazy-executed,
- meaning that its value may change depending on the moment the property
- is retrieved and the value the <c>returnValues</c> array has at
- that moment.
- </example>
- </member>
- <member name="T:Moq.Language.Flow.IReturnsResult`1">
- <summary>
- Implements the fluent API.
- </summary>
- </member>
- <member name="T:Moq.MockSequence">
- <summary>
- Helper class to setup a full trace between many mocks
- </summary>
- </member>
- <member name="M:Moq.MockSequence.#ctor">
- <summary>
- Initialize a trace setup
- </summary>
- </member>
- <member name="P:Moq.MockSequence.Cyclic">
- <summary>
- Allow sequence to be repeated
- </summary>
- </member>
- <member name="T:Moq.MockSequenceHelper">
- <summary>
- define nice api
- </summary>
- </member>
- <member name="M:Moq.MockSequenceHelper.InSequence``1(Moq.Mock{``0},Moq.MockSequence)">
- <summary>
- Perform an expectation in the trace.
- </summary>
- </member>
- <member name="T:Moq.MatcherAttribute">
- <summary>
- Marks a method as a matcher, which allows complete replacement
- of the built-in <see cref="T:Moq.It"/> class with your own argument
- matching rules.
- </summary>
- <remarks>
- <b>This feature has been deprecated in favor of the new
- and simpler <see cref="T:Moq.Match`1"/>.
- </b>
- <para>
- The argument matching is used to determine whether a concrete
- invocation in the mock matches a given setup. This
- matching mechanism is fully extensible.
- </para>
- <para>
- There are two parts of a matcher: the compiler matcher
- and the runtime matcher.
- <list type="bullet">
- <item>
- <term>Compiler matcher</term>
- <description>Used to satisfy the compiler requirements for the
- argument. Needs to be a method optionally receiving any arguments
- you might need for the matching, but with a return type that
- matches that of the argument.
- <para>
- Let's say I want to match a lists of orders that contains
- a particular one. I might create a compiler matcher like the following:
- </para>
- <code>
- public static class Orders
- {
- [Matcher]
- public static IEnumerable<Order> Contains(Order order)
- {
- return null;
- }
- }
- </code>
- Now we can invoke this static method instead of an argument in an
- invocation:
- <code>
- var order = new Order { ... };
- var mock = new Mock<IRepository<Order>>();
-
- mock.Setup(x => x.Save(Orders.Contains(order)))
- .Throws<ArgumentException>();
- </code>
- Note that the return value from the compiler matcher is irrelevant.
- This method will never be called, and is just used to satisfy the
- compiler and to signal Moq that this is not a method that we want
- to be invoked at runtime.
- </description>
- </item>
- <item>
- <term>Runtime matcher</term>
- <description>
- The runtime matcher is the one that will actually perform evaluation
- when the test is run, and is defined by convention to have the
- same signature as the compiler matcher, but where the return
- value is the first argument to the call, which contains the
- object received by the actual invocation at runtime:
- <code>
- public static bool Contains(IEnumerable<Order> orders, Order order)
- {
- return orders.Contains(order);
- }
- </code>
- At runtime, the mocked method will be invoked with a specific
- list of orders. This value will be passed to this runtime
- matcher as the first argument, while the second argument is the
- one specified in the setup (<c>x.Save(Orders.Contains(order))</c>).
- <para>
- The boolean returned determines whether the given argument has been
- matched. If all arguments to the expected method are matched, then
- the setup matches and is evaluated.
- </para>
- </description>
- </item>
- </list>
- </para>
- Using this extensible infrastructure, you can easily replace the entire
- <see cref="T:Moq.It"/> set of matchers with your own. You can also avoid the
- typical (and annoying) lengthy expressions that result when you have
- multiple arguments that use generics.
- </remarks>
- <example>
- The following is the complete example explained above:
- <code>
- public static class Orders
- {
- [Matcher]
- public static IEnumerable<Order> Contains(Order order)
- {
- return null;
- }
-
- public static bool Contains(IEnumerable<Order> orders, Order order)
- {
- return orders.Contains(order);
- }
- }
- </code>
- And the concrete test using this matcher:
- <code>
- var order = new Order { ... };
- var mock = new Mock<IRepository<Order>>();
-
- mock.Setup(x => x.Save(Orders.Contains(order)))
- .Throws<ArgumentException>();
-
- // use mock, invoke Save, and have the matcher filter.
- </code>
- </example>
- </member>
- <member name="T:Moq.Mock`1">
- <summary>
- Provides a mock implementation of <typeparamref name="T"/>.
- </summary><remarks>
- Any interface type can be used for mocking, but for classes, only abstract and virtual members can be mocked.
- <para>
- The behavior of the mock with regards to the setups and the actual calls is determined
- by the optional <see cref="T:Moq.MockBehavior"/> that can be passed to the <see cref="M:Moq.Mock`1.#ctor(Moq.MockBehavior)"/>
- constructor.
- </para>
- </remarks><typeparam name="T">Type to mock, which can be an interface or a class.</typeparam><example group="overview" order="0">
- The following example shows establishing setups with specific values
- for method invocations:
- <code>
- // Arrange
- var order = new Order(TALISKER, 50);
- var mock = new Mock<IWarehouse>();
-
- mock.Setup(x => x.HasInventory(TALISKER, 50)).Returns(true);
-
- // Act
- order.Fill(mock.Object);
-
- // Assert
- Assert.True(order.IsFilled);
- </code>
- The following example shows how to use the <see cref="T:Moq.It"/> class
- to specify conditions for arguments instead of specific values:
- <code>
- // Arrange
- var order = new Order(TALISKER, 50);
- var mock = new Mock<IWarehouse>();
-
- // shows how to expect a value within a range
- mock.Setup(x => x.HasInventory(
- It.IsAny<string>(),
- It.IsInRange(0, 100, Range.Inclusive)))
- .Returns(false);
-
- // shows how to throw for unexpected calls.
- mock.Setup(x => x.Remove(
- It.IsAny<string>(),
- It.IsAny<int>()))
- .Throws(new InvalidOperationException());
-
- // Act
- order.Fill(mock.Object);
-
- // Assert
- Assert.False(order.IsFilled);
- </code>
- </example>
- </member>
- <member name="M:Moq.Mock`1.Expect(System.Linq.Expressions.Expression{System.Action{`0}})">
- <summary>
- Obsolete.
- </summary>
- </member>
- <member name="M:Moq.Mock`1.Expect``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
- <summary>
- Obsolete.
- </summary>
- </member>
- <member name="M:Moq.Mock`1.ExpectGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
- <summary>
- Obsolete.
- </summary>
- </member>
- <member name="M:Moq.Mock`1.ExpectSet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
- <summary>
- Obsolete.
- </summary>
- </member>
- <member name="M:Moq.Mock`1.ExpectSet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},``0)">
- <summary>
- Obsolete.
- </summary>
- </member>
- <member name="M:Moq.Mock`1.#ctor(System.Boolean)">
- <summary>
- Ctor invoked by AsTInterface exclusively.
- </summary>
- </member>
- <member name="M:Moq.Mock`1.#ctor">
- <summary>
- Initializes an instance of the mock with <see cref="F:Moq.MockBehavior.Default">default behavior</see>.
- </summary><example>
- <code>var mock = new Mock<IFormatProvider>();</code>
- </example>
- </member>
- <member name="M:Moq.Mock`1.#ctor(System.Object[])">
- <summary>
- Initializes an instance of the mock with <see cref="F:Moq.MockBehavior.Default">default behavior</see> and with
- the given constructor arguments for the class. (Only valid when <typeparamref name="T"/> is a class)
- </summary><remarks>
- The mock will try to find the best match constructor given the constructor arguments, and invoke that
- to initialize the instance. This applies only for classes, not interfaces.
- </remarks><example>
- <code>var mock = new Mock<MyProvider>(someArgument, 25);</code>
- </example><param name="args">Optional constructor arguments if the mocked type is a class.</param>
- </member>
- <member name="M:Moq.Mock`1.#ctor(Moq.MockBehavior)">
- <summary>
- Initializes an instance of the mock with the specified <see cref="T:Moq.MockBehavior">behavior</see>.
- </summary><example>
- <code>var mock = new Mock<IFormatProvider>(MockBehavior.Relaxed);</code>
- </example><param name="behavior">Behavior of the mock.</param>
- </member>
- <member name="M:Moq.Mock`1.#ctor(Moq.MockBehavior,System.Object[])">
- <summary>
- Initializes an instance of the mock with a specific <see cref="T:Moq.MockBehavior">behavior</see> with
- the given constructor arguments for the class.
- </summary><remarks>
- The mock will try to find the best match constructor given the constructor arguments, and invoke that
- to initialize the instance. This applies only to classes, not interfaces.
- </remarks><example>
- <code>var mock = new Mock<MyProvider>(someArgument, 25);</code>
- </example><param name="behavior">Behavior of the mock.</param><param name="args">Optional constructor arguments if the mocked type is a class.</param>
- </member>
- <member name="M:Moq.Mock`1.OnGetObject">
- <summary>
- Returns the mocked object value.
- </summary>
- </member>
- <member name="M:Moq.Mock`1.Setup(System.Linq.Expressions.Expression{System.Action{`0}})">
- <summary>
- Specifies a setup on the mocked type for a call to
- to a void method.
- </summary><remarks>
- If more than one setup is specified for the same method or property,
- the latest one wins and is the one that will be executed.
- </remarks><param name="expression">Lambda expression that specifies the expected method invocation.</param><example group="setups">
- <code>
- var mock = new Mock<IProcessor>();
- mock.Setup(x => x.Execute("ping"));
- </code>
- </example>
- </member>
- <member name="M:Moq.Mock`1.Setup``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
- <summary>
- Specifies a setup on the mocked type for a call to
- to a value returning method.
- </summary><typeparam name="TResult">Type of the return value. Typically omitted as it can be inferred from the expression.</typeparam><remarks>
- If more than one setup is specified for the same method or property,
- the latest one wins and is the one that will be executed.
- </remarks><param name="expression">Lambda expression that specifies the method invocation.</param><example group="setups">
- <code>
- mock.Setup(x => x.HasInventory("Talisker", 50)).Returns(true);
- </code>
- </example>
- </member>
- <member name="M:Moq.Mock`1.SetupGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
- <summary>
- Specifies a setup on the mocked type for a call to
- to a property getter.
- </summary><remarks>
- If more than one setup is set for the same property getter,
- the latest one wins and is the one that will be executed.
- </remarks><typeparam name="TProperty">Type of the property. Typically omitted as it can be inferred from the expression.</typeparam><param name="expression">Lambda expression that specifies the property getter.</param><example group="setups">
- <code>
- mock.SetupGet(x => x.Suspended)
- .Returns(true);
- </code>
- </example>
- </member>
- <member name="M:Moq.Mock`1.SetupSet``1(System.Action{`0})">
- <summary>
- Specifies a setup on the mocked type for a call to
- to a property setter.
- </summary><remarks>
- If more than one setup is set for the same property setter,
- the latest one wins and is the one that will be executed.
- <para>
- This overloads allows the use of a callback already
- typed for the property type.
- </para>
- </remarks><typeparam name="TProperty">Type of the property. Typically omitted as it can be inferred from the expression.</typeparam><param name="setterExpression">The Lambda expression that sets a property to a value.</param><example group="setups">
- <code>
- mock.SetupSet(x => x.Suspended = true);
- </code>
- </example>
- </member>
- <member name="M:Moq.Mock`1.SetupSet(System.Action{`0})">
- <summary>
- Specifies a setup on the mocked type for a call to
- to a property setter.
- </summary><remarks>
- If more than one setup is set for the same property setter,
- the latest one wins and is the one that will be executed.
- </remarks><param name="setterExpression">Lambda expression that sets a property to a value.</param><example group="setups">
- <code>
- mock.SetupSet(x => x.Suspended = true);
- </code>
- </example>
- </member>
- <member name="M:Moq.Mock`1.SetupProperty``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
- <summary>
- Specifies that the given property should have "property behavior",
- meaning that setting its value will cause it to be saved and
- later returned when the property is requested. (this is also
- known as "stubbing").
- </summary><typeparam name="TProperty">
- Type of the property, inferred from the property
- expression (does not need to be specified).
- </typeparam><param name="property">Property expression to stub.</param><example>
- If you have an interface with an int property <c>Value</c>, you might
- stub it using the following straightforward call:
- <code>
- var mock = new Mock<IHaveValue>();
- mock.Stub(v => v.Value);
- </code>
- After the <c>Stub</c> call has been issued, setting and
- retrieving the object value will behave as expected:
- <code>
- IHaveValue v = mock.Object;
-
- v.Value = 5;
- Assert.Equal(5, v.Value);
- </code>
- </example>
- </member>
- <member name="M:Moq.Mock`1.SetupProperty``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},``0)">
- <summary>
- Specifies that the given property should have "property behavior",
- meaning that setting its value will cause it to be saved and
- later returned when the property is requested. This overload
- allows setting the initial value for the property. (this is also
- known as "stubbing").
- </summary><typeparam name="TProperty">
- Type of the property, inferred from the property
- expression (does not need to be specified).
- </typeparam><param name="property">Property expression to stub.</param><param name="initialValue">Initial value for the property.</param><example>
- If you have an interface with an int property <c>Value</c>, you might
- stub it using the following straightforward call:
- <code>
- var mock = new Mock<IHaveValue>();
- mock.SetupProperty(v => v.Value, 5);
- </code>
- After the <c>SetupProperty</c> call has been issued, setting and
- retrieving the object value will behave as expected:
- <code>
- IHaveValue v = mock.Object;
- // Initial value was stored
- Assert.Equal(5, v.Value);
-
- // New value set which changes the initial value
- v.Value = 6;
- Assert.Equal(6, v.Value);
- </code>
- </example>
- </member>
- <member name="M:Moq.Mock`1.SetupAllProperties">
- <summary>
- Specifies that the all properties on the mock should have "property behavior",
- meaning that setting its value will cause it to be saved and
- later returned when the property is requested. (this is also
- known as "stubbing"). The default value for each property will be the
- one generated as specified by the <see cref="P:Moq.Mock.DefaultValue"/> property for the mock.
- </summary><remarks>
- If the mock <see cref="P:Moq.Mock.DefaultValue"/> is set to <see cref="F:Moq.DefaultValue.Mock"/>,
- the mocked default values will also get all properties setup recursively.
- </remarks>
- </member>
- <member name="M:Moq.Mock`1.When(System.Func{System.Boolean})">
- <!-- No matching elements were found for the following include tag --><include file="Mock.Generic.xdoc" path="docs/doc[@for="Mock{T}.When"]/*"/>
- </member>
- <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}})">
- <summary>
- Verifies that a specific invocation matching the given expression was performed on the mock. Use
- in conjuntion with the default <see cref="F:Moq.MockBehavior.Loose"/>.
- </summary><example group="verification">
- This example assumes that the mock has been used, and later we want to verify that a given
- invocation with specific parameters was performed:
- <code>
- var mock = new Mock<IProcessor>();
- // exercise mock
- //...
- // Will throw if the test code didn't call Execute with a "ping" string argument.
- mock.Verify(proc => proc.Execute("ping"));
- </code>
- </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="expression">Expression to verify.</param>
- </member>
- <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}},Moq.Times)">
- <summary>
- Verifies that a specific invocation matching the given expression was performed on the mock. Use
- in conjuntion with the default <see cref="F:Moq.MockBehavior.Loose"/>.
- </summary><exception cref="T:Moq.MockException">
- The invocation was not call the times specified by
- <paramref name="times"/>.
- </exception><param name="expression">Expression to verify.</param><param name="times">The number of times a method is allowed to be called.</param>
- </member>
- <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}},System.String)">
- <summary>
- Verifies that a specific invocation matching the given expression was performed on the mock,
- specifying a failure error message. Use in conjuntion with the default
- <see cref="F:Moq.MockBehavior.Loose"/>.
- </summary><example group="verification">
- This example assumes that the mock has been used, and later we want to verify that a given
- invocation with specific parameters was performed:
- <code>
- var mock = new Mock<IProcessor>();
- // exercise mock
- //...
- // Will throw if the test code didn't call Execute with a "ping" string argument.
- mock.Verify(proc => proc.Execute("ping"));
- </code>
- </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="expression">Expression to verify.</param><param name="failMessage">Message to show if verification fails.</param>
- </member>
- <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}},Moq.Times,System.String)">
- <summary>
- Verifies that a specific invocation matching the given expression was performed on the mock,
- specifying a failure error message. Use in conjuntion with the default
- <see cref="F:Moq.MockBehavior.Loose"/>.
- </summary><exception cref="T:Moq.MockException">
- The invocation was not call the times specified by
- <paramref name="times"/>.
- </exception><param name="expression">Expression to verify.</param><param name="times">The number of times a method is allowed to be called.</param><param name="failMessage">Message to show if verification fails.</param>
- </member>
- <member name="M:Moq.Mock`1.Verify``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
- <summary>
- Verifies that a specific invocation matching the given expression was performed on the mock. Use
- in conjuntion with the default <see cref="F:Moq.MockBehavior.Loose"/>.
- </summary><example group="verification">
- This example assumes that the mock has been used, and later we want to verify that a given
- invocation with specific parameters was performed:
- <code>
- var mock = new Mock<IWarehouse>();
- // exercise mock
- //...
- // Will throw if the test code didn't call HasInventory.
- mock.Verify(warehouse => warehouse.HasInventory(TALISKER, 50));
- </code>
- </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="expression">Expression to verify.</param><typeparam name="TResult">Type of return value from the expression.</typeparam>
- </member>
- <member name="M:Moq.Mock`1.Verify``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},Moq.Times)">
- <summary>
- Verifies that a specific invocation matching the given
- expression was performed on the mock. Use in conjuntion
- with the default <see cref="F:Moq.MockBehavior.Loose"/>.
- </summary><exception cref="T:Moq.MockException">
- The invocation was not call the times specified by
- <paramref name="times"/>.
- </exception><param name="expression">Expression to verify.</param><param name="times">The number of times a method is allowed to be called.</param><typeparam name="TResult">Type of return value from the expression.</typeparam>
- </member>
- <member name="M:Moq.Mock`1.Verify``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.String)">
- <summary>
- Verifies that a specific invocation matching the given
- expression was performed on the mock, specifying a failure
- error message.
- </summary><example group="verification">
- This example assumes that the mock has been used,
- and later we want to verify that a given invocation
- with specific parameters was performed:
- <code>
- var mock = new Mock<IWarehouse>();
- // exercise mock
- //...
- // Will throw if the test code didn't call HasInventory.
- mock.Verify(warehouse => warehouse.HasInventory(TALISKER, 50), "When filling orders, inventory has to be checked");
- </code>
- </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="expression">Expression to verify.</param><param name="failMessage">Message to show if verification fails.</param><typeparam name="TResult">Type of return value from the expression.</typeparam>
- </member>
- <member name="M:Moq.Mock`1.Verify``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},Moq.Times,System.String)">
- <summary>
- Verifies that a specific invocation matching the given
- expression was performed on the mock, specifying a failure
- error message.
- </summary><exception cref="T:Moq.MockException">
- The invocation was not call the times specified by
- <paramref name="times"/>.
- </exception><param name="expression">Expression to verify.</param><param name="times">The number of times a method is allowed to be called.</param><param name="failMessage">Message to show if verification fails.</param><typeparam name="TResult">Type of return value from the expression.</typeparam>
- </member>
- <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
- <summary>
- Verifies that a property was read on the mock.
- </summary><example group="verification">
- This example assumes that the mock has been used,
- and later we want to verify that a given property
- was retrieved from it:
- <code>
- var mock = new Mock<IWarehouse>();
- // exercise mock
- //...
- // Will throw if the test code didn't retrieve the IsClosed property.
- mock.VerifyGet(warehouse => warehouse.IsClosed);
- </code>
- </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="expression">Expression to verify.</param><typeparam name="TProperty">
- Type of the property to verify. Typically omitted as it can
- be inferred from the expression's return type.
- </typeparam>
- </member>
- <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},Moq.Times)">
- <summary>
- Verifies that a property was read on the mock.
- </summary><exception cref="T:Moq.MockException">
- The invocation was not call the times specified by
- <paramref name="times"/>.
- </exception><param name="times">The number of times a method is allowed to be called.</param><param name="expression">Expression to verify.</param><typeparam name="TProperty">
- Type of the property to verify. Typically omitted as it can
- be inferred from the expression's return type.
- </typeparam>
- </member>
- <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.String)">
- <summary>
- Verifies that a property was read on the mock, specifying a failure
- error message.
- </summary><example group="verification">
- This example assumes that the mock has been used,
- and later we want to verify that a given property
- was retrieved from it:
- <code>
- var mock = new Mock<IWarehouse>();
- // exercise mock
- //...
- // Will throw if the test code didn't retrieve the IsClosed property.
- mock.VerifyGet(warehouse => warehouse.IsClosed);
- </code>
- </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="expression">Expression to verify.</param><param name="failMessage">Message to show if verification fails.</param><typeparam name="TProperty">
- Type of the property to verify. Typically omitted as it can
- be inferred from the expression's return type.
- </typeparam>
- </member>
- <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},Moq.Times,System.String)">
- <summary>
- Verifies that a property was read on the mock, specifying a failure
- error message.
- </summary><exception cref="T:Moq.MockException">
- The invocation was not call the times specified by
- <paramref name="times"/>.
- </exception><param name="times">The number of times a method is allowed to be called.</param><param name="expression">Expression to verify.</param><param name="failMessage">Message to show if verification fails.</param><typeparam name="TProperty">
- Type of the property to verify. Typically omitted as it can
- be inferred from the expression's return type.
- </typeparam>
- </member>
- <member name="M:Moq.Mock`1.VerifySet(System.Action{`0})">
- <summary>
- Verifies that a property was set on the mock.
- </summary><example group="verification">
- This example assumes that the mock has been used,
- and later we want to verify that a given property
- was set on it:
- <code>
- var mock = new Mock<IWarehouse>();
- // exercise mock
- //...
- // Will throw if the test code didn't set the IsClosed property.
- mock.VerifySet(warehouse => warehouse.IsClosed = true);
- </code>
- </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="setterExpression">Expression to verify.</param>
- </member>
- <member name="M:Moq.Mock`1.VerifySet(System.Action{`0},Moq.Times)">
- <summary>
- Verifies that a property was set on the mock.
- </summary><exception cref="T:Moq.MockException">
- The invocation was not call the times specified by
- <paramref name="times"/>.
- </exception><param name="times">The number of times a method is allowed to be called.</param><param name="setterExpression">Expression to verify.</param>
- </member>
- <member name="M:Moq.Mock`1.VerifySet(System.Action{`0},System.String)">
- <summary>
- Verifies that a property was set on the mock, specifying
- a failure message.
- </summary><example group="verification">
- This example assumes that the mock has been used,
- and later we want to verify that a given property
- was set on it:
- <code>
- var mock = new Mock<IWarehouse>();
- // exercise mock
- //...
- // Will throw if the test code didn't set the IsClosed property.
- mock.VerifySet(warehouse => warehouse.IsClosed = true, "Warehouse should always be closed after the action");
- </code>
- </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="setterExpression">Expression to verify.</param><param name="failMessage">Message to show if verification fails.</param>
- </member>
- <member name="M:Moq.Mock`1.VerifySet(System.Action{`0},Moq.Times,System.String)">
- <summary>
- Verifies that a property was set on the mock, specifying
- a failure message.
- </summary><exception cref="T:Moq.MockException">
- The invocation was not call the times specified by
- <paramref name="times"/>.
- </exception><param name="times">The number of times a method is allowed to be called.</param><param name="setterExpression">Expression to verify.</param><param name="failMessage">Message to show if verification fails.</param>
- </member>
- <member name="M:Moq.Mock`1.Raise(System.Action{`0},System.EventArgs)">
- <summary>
- Raises the event referenced in <paramref name="eventExpression"/> using
- the given <paramref name="args"/> argument.
- </summary><exception cref="T:System.ArgumentException">
- The <paramref name="args"/> argument is
- invalid for the target event invocation, or the <paramref name="eventExpression"/> is
- not an event attach or detach expression.
- </exception><example>
- The following example shows how to raise a <see cref="E:System.ComponentModel.INotifyPropertyChanged.PropertyChanged"/> event:
- <code>
- var mock = new Mock<IViewModel>();
-
- mock.Raise(x => x.PropertyChanged -= null, new PropertyChangedEventArgs("Name"));
- </code>
- </example><example>
- This example shows how to invoke an event with a custom event arguments
- class in a view that will cause its corresponding presenter to
- react by changing its state:
- <code>
- var mockView = new Mock<IOrdersView>();
- var presenter = new OrdersPresenter(mockView.Object);
-
- // Check that the presenter has no selection by default
- Assert.Null(presenter.SelectedOrder);
-
- // Raise the event with a specific arguments data
- mockView.Raise(v => v.SelectionChanged += null, new OrderEventArgs { Order = new Order("moq", 500) });
-
- // Now the presenter reacted to the event, and we have a selected order
- Assert.NotNull(presenter.SelectedOrder);
- Assert.Equal("moq", presenter.SelectedOrder.ProductName);
- </code>
- </example>
- </member>
- <member name="M:Moq.Mock`1.Raise(System.Action{`0},System.Object[])">
- <summary>
- Raises the event referenced in <paramref name="eventExpression"/> using
- the given <paramref name="args"/> argument for a non-EventHandler typed event.
- </summary><exception cref="T:System.ArgumentException">
- The <paramref name="args"/> arguments are
- invalid for the target event invocation, or the <paramref name="eventExpression"/> is
- not an event attach or detach expression.
- </exception><example>
- The following example shows how to raise a custom event that does not adhere to
- the standard <c>EventHandler</c>:
- <code>
- var mock = new Mock<IViewModel>();
-
- mock.Raise(x => x.MyEvent -= null, "Name", bool, 25);
- </code>
- </example>
- </member>
- <member name="P:Moq.Mock`1.Object">
- <summary>
- Exposes the mocked object instance.
- </summary>
- </member>
- <member name="T:Moq.MockLegacyExtensions">
- <summary>
- Provides legacy API members as extensions so that
- existing code continues to compile, but new code
- doesn't see then.
- </summary>
- </member>
- <member name="M:Moq.MockLegacyExtensions.SetupSet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},``1)">
- <summary>
- Obsolete.
- </summary>
- </member>
- <member name="M:Moq.MockLegacyExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},``1)">
- <summary>
- Obsolete.
- </summary>
- </member>
- <member name="M:Moq.MockLegacyExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},``1,System.String)">
- <summary>
- Obsolete.
- </summary>
- </member>
- <member name="T:Moq.MockExtensions">
- <summary>
- Provides additional methods on mocks.
- </summary>
- <devdoc>
- Provided as extension methods as they confuse the compiler
- with the overloads taking Action.
- </devdoc>
- </member>
- <member name="M:Moq.MockExtensions.SetupSet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}})">
- <summary>
- Specifies a setup on the mocked type for a call to
- to a property setter, regardless of its value.
- </summary>
- <remarks>
- If more than one setup is set for the same property setter,
- the latest one wins and is the one that will be executed.
- </remarks>
- <typeparam name="TProperty">Type of the property. Typically omitted as it can be inferred from the expression.</typeparam>
- <typeparam name="T">Type of the mock.</typeparam>
- <param name="mock">The target mock for the setup.</param>
- <param name="expression">Lambda expression that specifies the property setter.</param>
- <example group="setups">
- <code>
- mock.SetupSet(x => x.Suspended);
- </code>
- </example>
- <devdoc>
- This method is not legacy, but must be on an extension method to avoid
- confusing the compiler with the new Action syntax.
- </devdoc>
- </member>
- <member name="M:Moq.MockExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}})">
- <summary>
- Verifies that a property has been set on the mock, regarless of its value.
- </summary>
- <example group="verification">
- This example assumes that the mock has been used,
- and later we want to verify that a given invocation
- with specific parameters was performed:
- <code>
- var mock = new Mock<IWarehouse>();
- // exercise mock
- //...
- // Will throw if the test code didn't set the IsClosed property.
- mock.VerifySet(warehouse => warehouse.IsClosed);
- </code>
- </example>
- <exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception>
- <param name="expression">Expression to verify.</param>
- <param name="mock">The mock instance.</param>
- <typeparam name="T">Mocked type.</typeparam>
- <typeparam name="TProperty">Type of the property to verify. Typically omitted as it can
- be inferred from the expression's return type.</typeparam>
- </member>
- <member name="M:Moq.MockExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String)">
- <summary>
- Verifies that a property has been set on the mock, specifying a failure
- error message.
- </summary>
- <example group="verification">
- This example assumes that the mock has been used,
- and later we want to verify that a given invocation
- with specific parameters was performed:
- <code>
- var mock = new Mock<IWarehouse>();
- // exercise mock
- //...
- // Will throw if the test code didn't set the IsClosed property.
- mock.VerifySet(warehouse => warehouse.IsClosed);
- </code>
- </example>
- <exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception>
- <param name="expression">Expression to verify.</param>
- <param name="failMessage">Message to show if verification fails.</param>
- <param name="mock">The mock instance.</param>
- <typeparam name="T">Mocked type.</typeparam>
- <typeparam name="TProperty">Type of the property to verify. Typically omitted as it can
- be inferred from the expression's return type.</typeparam>
- </member>
- <member name="M:Moq.MockExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},Moq.Times)">
- <summary>
- Verifies that a property has been set on the mock, regardless
- of the value but only the specified number of times.
- </summary>
- <example group="verification">
- This example assumes that the mock has been used,
- and later we want to verify that a given invocation
- with specific parameters was performed:
- <code>
- var mock = new Mock<IWarehouse>();
- // exercise mock
- //...
- // Will throw if the test code didn't set the IsClosed property.
- mock.VerifySet(warehouse => warehouse.IsClosed);
- </code>
- </example>
- <exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception>
- <exception cref="T:Moq.MockException">The invocation was not call the times specified by
- <paramref name="times"/>.</exception>
- <param name="mock">The mock instance.</param>
- <typeparam name="T">Mocked type.</typeparam>
- <param name="times">The number of times a method is allowed to be called.</param>
- <param name="expression">Expression to verify.</param>
- <typeparam name="TProperty">Type of the property to verify. Typically omitted as it can
- be inferred from the expression's return type.</typeparam>
- </member>
- <member name="M:Moq.MockExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},Moq.Times,System.String)">
- <summary>
- Verifies that a property has been set on the mock, regardless
- of the value but only the specified number of times, and specifying a failure
- error message.
- </summary>
- <example group="verification">
- This example assumes that the mock has been used,
- and later we want to verify that a given invocation
- with specific parameters was performed:
- <code>
- var mock = new Mock<IWarehouse>();
- // exercise mock
- //...
- // Will throw if the test code didn't set the IsClosed property.
- mock.VerifySet(warehouse => warehouse.IsClosed);
- </code>
- </example>
- <exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception>
- <exception cref="T:Moq.MockException">The invocation was not call the times specified by
- <paramref name="times"/>.</exception>
- <param name="mock">The mock instance.</param>
- <typeparam name="T">Mocked type.</typeparam>
- <param name="times">The number of times a method is allowed to be called.</param>
- <param name="failMessage">Message to show if verification fails.</param>
- <param name="expression">Expression to verify.</param>
- <typeparam name="TProperty">Type of the property to verify. Typically omitted as it can
- be inferred from the expression's return type.</typeparam>
- </member>
- <member name="T:Moq.SequenceExtensions">
- <summary>
- Helper for sequencing return values in the same method.
- </summary>
- </member>
- <member name="M:Moq.SequenceExtensions.SetupSequence``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}})">
- <summary>
- Return a sequence of values, once per call.
- </summary>
- </member>
- <member name="M:Moq.ExpressionExtensions.ToLambda(System.Linq.Expressions.Expression)">
- <summary>
- Casts the expression to a lambda expression, removing
- a cast if there's any.
- </summary>
- </member>
- <member name="M:Moq.ExpressionExtensions.ToMethodCall(System.Linq.Expressions.LambdaExpression)">
- <summary>
- Casts the body of the lambda expression to a <see cref="T:System.Linq.Expressions.MethodCallExpression"/>.
- </summary>
- <exception cref="T:System.ArgumentException">If the body is not a method call.</exception>
- </member>
- <member name="M:Moq.ExpressionExtensions.ToPropertyInfo(System.Linq.Expressions.LambdaExpression)">
- <summary>
- Converts the body of the lambda expression into the <see cref="T:System.Reflection.PropertyInfo"/> referenced by it.
- </summary>
- </member>
- <member name="M:Moq.ExpressionExtensions.IsProperty(System.Linq.Expressions.LambdaExpression)">
- <summary>
- Checks whether the body of the lambda expression is a property access.
- </summary>
- </member>
- <member name="M:Moq.ExpressionExtensions.IsProperty(System.Linq.Expressions.Expression)">
- <summary>
- Checks whether the expression is a property access.
- </summary>
- </member>
- <member name="M:Moq.ExpressionExtensions.IsPropertyIndexer(System.Linq.Expressions.LambdaExpression)">
- <summary>
- Checks whether the body of the lambda expression is a property indexer, which is true
- when the expression is an <see cref="T:System.Linq.Expressions.MethodCallExpression"/> whose
- <see cref="P:System.Linq.Expressions.MethodCallExpression.Method"/> has <see cref="P:System.Reflection.MethodBase.IsSpecialName"/>
- equal to <see langword="true"/>.
- </summary>
- </member>
- <member name="M:Moq.ExpressionExtensions.IsPropertyIndexer(System.Linq.Expressions.Expression)">
- <summary>
- Checks whether the expression is a property indexer, which is true
- when the expression is an <see cref="T:System.Linq.Expressions.MethodCallExpression"/> whose
- <see cref="P:System.Linq.Expressions.MethodCallExpression.Method"/> has <see cref="P:System.Reflection.MethodBase.IsSpecialName"/>
- equal to <see langword="true"/>.
- </summary>
- </member>
- <member name="M:Moq.ExpressionExtensions.CastTo``1(System.Linq.Expressions.Expression)">
- <summary>
- Creates an expression that casts the given expression to the <typeparamref name="T"/>
- type.
- </summary>
- </member>
- <member name="M:Moq.ExpressionExtensions.ToStringFixed(System.Linq.Expressions.Expression)">
- <devdoc>
- TODO: remove this code when https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=331583
- is fixed.
- </devdoc>
- </member>
- <member name="T:Moq.Evaluator">
- <summary>
- Provides partial evaluation of subtrees, whenever they can be evaluated locally.
- </summary>
- <author>Matt Warren: http://blogs.msdn.com/mattwar</author>
- <contributor>Documented by InSTEDD: http://www.instedd.org</contributor>
- </member>
- <member name="M:Moq.Evaluator.PartialEval(System.Linq.Expressions.Expression,System.Func{System.Linq.Expressions.Expression,System.Boolean})">
- <summary>
- Performs evaluation and replacement of independent sub-trees
- </summary>
- <param name="expression">The root of the expression tree.</param>
- <param name="fnCanBeEvaluated">A function that decides whether a given expression
- node can be part of the local function.</param>
- <returns>A new tree with sub-trees evaluated and replaced.</returns>
- </member>
- <member name="M:Moq.Evaluator.PartialEval(System.Linq.Expressions.Expression)">
- <summary>
- Performs evaluation and replacement of independent sub-trees
- </summary>
- <param name="expression">The root of the expression tree.</param>
- <returns>A new tree with sub-trees evaluated and replaced.</returns>
- </member>
- <member name="T:Moq.Evaluator.SubtreeEvaluator">
- <summary>
- Evaluates and replaces sub-trees when first candidate is reached (top-down)
- </summary>
- </member>
- <member name="T:Moq.Evaluator.Nominator">
- <summary>
- Performs bottom-up analysis to determine which nodes can possibly
- be part of an evaluated sub-tree.
- </summary>
- </member>
- <member name="M:Moq.Guard.NotNull``1(System.Linq.Expressions.Expression{System.Func{``0}},``0)">
- <summary>
- Ensures the given <paramref name="value"/> is not null.
- Throws <see cref="T:System.ArgumentNullException"/> otherwise.
- </summary>
- </member>
- <member name="M:Moq.Guard.NotNullOrEmpty(System.Linq.Expressions.Expression{System.Func{System.String}},System.String)">
- <summary>
- Ensures the given string <paramref name="value"/> is not null or empty.
- Throws <see cref="T:System.ArgumentNullException"/> in the first case, or
- <see cref="T:System.ArgumentException"/> in the latter.
- </summary>
- </member>
- <member name="M:Moq.Guard.NotOutOfRangeInclusive``1(System.Linq.Expressions.Expression{System.Func{``0}},``0,``0,``0)">
- <summary>
- Checks an argument to ensure it is in the specified range including the edges.
- </summary>
- <typeparam name="T">Type of the argument to check, it must be an <see cref="T:System.IComparable"/> type.
- </typeparam>
- <param name="reference">The expression containing the name of the argument.</param>
- <param name="value">The argument value to check.</param>
- <param name="from">The minimun allowed value for the argument.</param>
- <param name="to">The maximun allowed value for the argument.</param>
- </member>
- <member name="M:Moq.Guard.NotOutOfRangeExclusive``1(System.Linq.Expressions.Expression{System.Func{``0}},``0,``0,``0)">
- <summary>
- Checks an argument to ensure it is in the specified range excluding the edges.
- </summary>
- <typeparam name="T">Type of the argument to check, it must be an <see cref="T:System.IComparable"/> type.
- </typeparam>
- <param name="reference">The expression containing the name of the argument.</param>
- <param name="value">The argument value to check.</param>
- <param name="from">The minimun allowed value for the argument.</param>
- <param name="to">The maximun allowed value for the argument.</param>
- </member>
- <member name="T:Moq.IMocked`1">
- <summary>
- Implemented by all generated mock object instances.
- </summary>
- </member>
- <member name="T:Moq.IMocked">
- <summary>
- Implemented by all generated mock object instances.
- </summary>
- </member>
- <member name="P:Moq.IMocked.Mock">
- <summary>
- Reference the Mock that contains this as the <c>mock.Object</c> value.
- </summary>
- </member>
- <member name="P:Moq.IMocked`1.Mock">
- <summary>
- Reference the Mock that contains this as the <c>mock.Object</c> value.
- </summary>
- </member>
- <member name="T:Moq.Interceptor">
- <summary>
- Implements the actual interception and method invocation for
- all mocks.
- </summary>
- </member>
- <member name="M:Moq.Interceptor.GetEventFromName(System.String)">
- <summary>
- Get an eventInfo for a given event name. Search type ancestors depth first if necessary.
- </summary>
- <param name="eventName">Name of the event, with the set_ or get_ prefix already removed</param>
- </member>
- <member name="M:Moq.Interceptor.GetAncestorTypes(System.Type)">
- <summary>
- Given a type return all of its ancestors, both types and interfaces.
- </summary>
- <param name="initialType">The type to find immediate ancestors of</param>
- </member>
- <member name="T:Moq.Language.Flow.ISetupSetter`2">
- <summary>
- Implements the fluent API.
- </summary>
- </member>
- <member name="T:Moq.Language.ICallbackSetter`1">
- <summary>
- Defines the <c>Callback</c> verb for property setter setups.
- </summary>
- <typeparam name="TProperty">Type of the property.</typeparam>
- </member>
- <member name="M:Moq.Language.ICallbackSetter`1.Callback(System.Action{`0})">
- <summary>
- Specifies a callback to invoke when the property is set that receives the
- property value being set.
- </summary>
- <param name="action">Callback method to invoke.</param>
- <example>
- Invokes the given callback with the property value being set.
- <code>
- mock.SetupSet(x => x.Suspended)
- .Callback((bool state) => Console.WriteLine(state));
- </code>
- </example>
- </member>
- <member name="T:Moq.It">
- <summary>
- Allows the specification of a matching condition for an
- argument in a method invocation, rather than a specific
- argument value. "It" refers to the argument being matched.
- </summary><remarks>
- This class allows the setup to match a method invocation
- with an arbitrary value, with a value in a specified range, or
- even one that matches a given predicate.
- </remarks>
- </member>
- <member name="M:Moq.It.IsAny``1">
- <summary>
- Matches any value of the given <typeparamref name="TValue"/> type.
- </summary><remarks>
- Typically used when the actual argument value for a method
- call is not relevant.
- </remarks><example>
- <code>
- // Throws an exception for a call to Remove with any string value.
- mock.Setup(x => x.Remove(It.IsAny<string>())).Throws(new InvalidOperationException());
- </code>
- </example><typeparam name="TValue">Type of the value.</typeparam>
- </member>
- <member name="M:Moq.It.Is``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">
- <summary>
- Matches any value that satisfies the given predicate.
- </summary><typeparam name="TValue">Type of the argument to check.</typeparam><param name="match">The predicate used to match the method argument.</param><remarks>
- Allows the specification of a predicate to perform matching
- of method call arguments.
- </remarks><example>
- This example shows how to return the value <c>1</c> whenever the argument to the
- <c>Do</c> method is an even number.
- <code>
- mock.Setup(x => x.Do(It.Is<int>(i => i % 2 == 0)))
- .Returns(1);
- </code>
- This example shows how to throw an exception if the argument to the
- method is a negative number:
- <code>
- mock.Setup(x => x.GetUser(It.Is<int>(i => i < 0)))
- .Throws(new ArgumentException());
- </code>
- </example>
- </member>
- <member name="M:Moq.It.IsInRange``1(``0,``0,Moq.Range)">
- <summary>
- Matches any value that is in the range specified.
- </summary><typeparam name="TValue">Type of the argument to check.</typeparam><param name="from">The lower bound of the range.</param><param name="to">The upper bound of the range.</param><param name="rangeKind">
- The kind of range. See <see cref="T:Moq.Range"/>.
- </param><example>
- The following example shows how to expect a method call
- with an integer argument within the 0..100 range.
- <code>
- mock.Setup(x => x.HasInventory(
- It.IsAny<string>(),
- It.IsInRange(0, 100, Range.Inclusive)))
- .Returns(false);
- </code>
- </example>
- </member>
- <member name="M:Moq.It.IsRegex(System.String)">
- <summary>
- Matches a string argument if it matches the given regular expression pattern.
- </summary><param name="regex">The pattern to use to match the string argument value.</param><example>
- The following example shows how to expect a call to a method where the
- string argument matches the given regular expression:
- <code>
- mock.Setup(x => x.Check(It.IsRegex("[a-z]+"))).Returns(1);
- </code>
- </example>
- </member>
- <member name="M:Moq.It.IsRegex(System.String,System.Text.RegularExpressions.RegexOptions)">
- <summary>
- Matches a string argument if it matches the given regular expression pattern.
- </summary><param name="regex">The pattern to use to match the string argument value.</param><param name="options">The options used to interpret the pattern.</param><example>
- The following example shows how to expect a call to a method where the
- string argument matches the given regular expression, in a case insensitive way:
- <code>
- mock.Setup(x => x.Check(It.IsRegex("[a-z]+", RegexOptions.IgnoreCase))).Returns(1);
- </code>
- </example>
- </member>
- <member name="T:Moq.Matchers.MatcherAttributeMatcher">
- <summary>
- Matcher to treat static functions as matchers.
-
- mock.Setup(x => x.StringMethod(A.MagicString()));
-
- public static class A
- {
- [Matcher]
- public static string MagicString() { return null; }
- public static bool MagicString(string arg)
- {
- return arg == "magic";
- }
- }
-
- Will succeed if: mock.Object.StringMethod("magic");
- and fail with any other call.
- </summary>
- </member>
- <member name="T:Moq.MockBehavior">
- <summary>
- Options to customize the behavior of the mock.
- </summary>
- </member>
- <member name="F:Moq.MockBehavior.Strict">
- <summary>
- Causes the mock to always throw
- an exception for invocations that don't have a
- corresponding setup.
- </summary>
- </member>
- <member name="F:Moq.MockBehavior.Loose">
- <summary>
- Will never throw exceptions, returning default
- values when necessary (null for reference types,
- zero for value types or empty enumerables and arrays).
- </summary>
- </member>
- <member name="F:Moq.MockBehavior.Default">
- <summary>
- Default mock behavior, which equals <see cref="F:Moq.MockBehavior.Loose"/>.
- </summary>
- </member>
- <member name="T:Moq.MockException">
- <summary>
- Exception thrown by mocks when setups are not matched,
- the mock is not properly setup, etc.
- </summary>
- <remarks>
- A distinct exception type is provided so that exceptions
- thrown by the mock can be differentiated in tests that
- expect other exceptions to be thrown (i.e. ArgumentException).
- <para>
- Richer exception hierarchy/types are not provided as
- tests typically should <b>not</b> catch or expect exceptions
- from the mocks. These are typically the result of changes
- in the tested class or its collaborators implementation, and
- result in fixes in the mock setup so that they dissapear and
- allow the test to pass.
- </para>
- </remarks>
- </member>
- <member name="M:Moq.MockException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
- <summary>
- Supports the serialization infrastructure.
- </summary>
- <param name="info">Serialization information.</param>
- <param name="context">Streaming context.</param>
- </member>
- <member name="M:Moq.MockException.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
- <summary>
- Supports the serialization infrastructure.
- </summary>
- <param name="info">Serialization information.</param>
- <param name="context">Streaming context.</param>
- </member>
- <member name="T:Moq.MockException.ExceptionReason">
- <summary>
- Made internal as it's of no use for
- consumers, but it's important for
- our own tests.
- </summary>
- </member>
- <member name="T:Moq.MockVerificationException">
- <devdoc>
- Used by the mock factory to accumulate verification
- failures.
- </devdoc>
- </member>
- <member name="M:Moq.MockVerificationException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
- <summary>
- Supports the serialization infrastructure.
- </summary>
- </member>
- <member name="T:Moq.Properties.Resources">
- <summary>
- A strongly-typed resource class, for looking up localized strings, etc.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.ResourceManager">
- <summary>
- Returns the cached ResourceManager instance used by this class.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.Culture">
- <summary>
- Overrides the current thread's CurrentUICulture property for all
- resource lookups using this strongly typed resource class.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.AlreadyInitialized">
- <summary>
- Looks up a localized string similar to Mock type has already been initialized by accessing its Object property. Adding interfaces must be done before that..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.ArgumentCannotBeEmpty">
- <summary>
- Looks up a localized string similar to Value cannot be an empty string..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.AsMustBeInterface">
- <summary>
- Looks up a localized string similar to Can only add interfaces to the mock..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.CantSetReturnValueForVoid">
- <summary>
- Looks up a localized string similar to Can't set return value for void method {0}..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.ConstructorArgsForInterface">
- <summary>
- Looks up a localized string similar to Constructor arguments cannot be passed for interface mocks..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.ConstructorNotFound">
- <summary>
- Looks up a localized string similar to A matching constructor for the given arguments was not found on the mocked type..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.EventNofFound">
- <summary>
- Looks up a localized string similar to Could not locate event for attach or detach method {0}..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.FieldsNotSupported">
- <summary>
- Looks up a localized string similar to Expression {0} involves a field access, which is not supported. Use properties instead..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.InvalidMockClass">
- <summary>
- Looks up a localized string similar to Type to mock must be an interface or an abstract or non-sealed class. .
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.InvalidMockGetType">
- <summary>
- Looks up a localized string similar to Cannot retrieve a mock with the given object type {0} as it's not the main type of the mock or any of its additional interfaces.
- Please cast the argument to one of the supported types: {1}.
- Remember that there's no generics covariance in the CLR, so your object must be one of these types in order for the call to succeed..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.LinqBinaryOperatorNotSupported">
- <summary>
- Looks up a localized string similar to The equals ("==" or "=" in VB) and the conditional 'and' ("&&" or "AndAlso" in VB) operators are the only ones supported in the query specification expression. Unsupported expression: {0}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.LinqMethodNotSupported">
- <summary>
- Looks up a localized string similar to LINQ method '{0}' not supported..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.LinqMethodNotVirtual">
- <summary>
- Looks up a localized string similar to Expression contains a call to a method which is not virtual (overridable in VB) or abstract. Unsupported expression: {0}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.MemberMissing">
- <summary>
- Looks up a localized string similar to Member {0}.{1} does not exist..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.MethodIsPublic">
- <summary>
- Looks up a localized string similar to Method {0}.{1} is public. Use strong-typed Expect overload instead:
- mock.Setup(x => x.{1}());
- .
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.MockExceptionMessage">
- <summary>
- Looks up a localized string similar to {0} invocation failed with mock behavior {1}.
- {2}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.MoreThanNCalls">
- <summary>
- Looks up a localized string similar to Expected only {0} calls to {1}..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.MoreThanOneCall">
- <summary>
- Looks up a localized string similar to Expected only one call to {0}..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.NoMatchingCallsAtLeast">
- <summary>
- Looks up a localized string similar to {0}
- Expected invocation on the mock at least {2} times, but was {4} times: {1}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.NoMatchingCallsAtLeastOnce">
- <summary>
- Looks up a localized string similar to {0}
- Expected invocation on the mock at least once, but was never performed: {1}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.NoMatchingCallsAtMost">
- <summary>
- Looks up a localized string similar to {0}
- Expected invocation on the mock at most {3} times, but was {4} times: {1}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.NoMatchingCallsAtMostOnce">
- <summary>
- Looks up a localized string similar to {0}
- Expected invocation on the mock at most once, but was {4} times: {1}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.NoMatchingCallsBetweenExclusive">
- <summary>
- Looks up a localized string similar to {0}
- Expected invocation on the mock between {2} and {3} times (Exclusive), but was {4} times: {1}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.NoMatchingCallsBetweenInclusive">
- <summary>
- Looks up a localized string similar to {0}
- Expected invocation on the mock between {2} and {3} times (Inclusive), but was {4} times: {1}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.NoMatchingCallsExactly">
- <summary>
- Looks up a localized string similar to {0}
- Expected invocation on the mock exactly {2} times, but was {4} times: {1}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.NoMatchingCallsNever">
- <summary>
- Looks up a localized string similar to {0}
- Expected invocation on the mock should never have been performed, but was {4} times: {1}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.NoMatchingCallsOnce">
- <summary>
- Looks up a localized string similar to {0}
- Expected invocation on the mock once, but was {4} times: {1}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.NoSetup">
- <summary>
- Looks up a localized string similar to All invocations on the mock must have a corresponding setup..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.ObjectInstanceNotMock">
- <summary>
- Looks up a localized string similar to Object instance was not created by Moq..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.OutExpressionMustBeConstantValue">
- <summary>
- Looks up a localized string similar to Out expression must evaluate to a constant value..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.PropertyGetNotFound">
- <summary>
- Looks up a localized string similar to Property {0}.{1} does not have a getter..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.PropertyMissing">
- <summary>
- Looks up a localized string similar to Property {0}.{1} does not exist..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.PropertyNotReadable">
- <summary>
- Looks up a localized string similar to Property {0}.{1} is write-only..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.PropertyNotWritable">
- <summary>
- Looks up a localized string similar to Property {0}.{1} is read-only..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.PropertySetNotFound">
- <summary>
- Looks up a localized string similar to Property {0}.{1} does not have a setter..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.RaisedUnassociatedEvent">
- <summary>
- Looks up a localized string similar to Cannot raise a mocked event unless it has been associated (attached) to a concrete event in a mocked object..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.RefExpressionMustBeConstantValue">
- <summary>
- Looks up a localized string similar to Ref expression must evaluate to a constant value..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.ReturnValueRequired">
- <summary>
- Looks up a localized string similar to Invocation needs to return a value and therefore must have a corresponding setup that provides it..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.SetupLambda">
- <summary>
- Looks up a localized string similar to A lambda expression is expected as the argument to It.Is<T>..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.SetupNever">
- <summary>
- Looks up a localized string similar to Invocation {0} should not have been made..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.SetupNotMethod">
- <summary>
- Looks up a localized string similar to Expression is not a method invocation: {0}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.SetupNotProperty">
- <summary>
- Looks up a localized string similar to Expression is not a property access: {0}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.SetupNotSetter">
- <summary>
- Looks up a localized string similar to Expression is not a property setter invocation..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.SetupOnNonMemberMethod">
- <summary>
- Looks up a localized string similar to Expression references a method that does not belong to the mocked object: {0}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.SetupOnNonOverridableMember">
- <summary>
- Looks up a localized string similar to Invalid setup on a non-virtual (overridable in VB) member: {0}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.TypeNotImplementInterface">
- <summary>
- Looks up a localized string similar to Type {0} does not implement required interface {1}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.TypeNotInheritFromType">
- <summary>
- Looks up a localized string similar to Type {0} does not from required type {1}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.UnexpectedPublicProperty">
- <summary>
- Looks up a localized string similar to To specify a setup for public property {0}.{1}, use the typed overloads, such as:
- mock.Setup(x => x.{1}).Returns(value);
- mock.SetupGet(x => x.{1}).Returns(value); //equivalent to previous one
- mock.SetupSet(x => x.{1}).Callback(callbackDelegate);
- .
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.UnsupportedExpression">
- <summary>
- Looks up a localized string similar to Unsupported expression: {0}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.UnsupportedIntermediateExpression">
- <summary>
- Looks up a localized string similar to Only property accesses are supported in intermediate invocations on a setup. Unsupported expression {0}..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.UnsupportedIntermediateType">
- <summary>
- Looks up a localized string similar to Expression contains intermediate property access {0}.{1} which is of type {2} and cannot be mocked. Unsupported expression {3}..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.UnsupportedMatcherParamsForSetter">
- <summary>
- Looks up a localized string similar to Setter expression cannot use argument matchers that receive parameters..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.UnsupportedMember">
- <summary>
- Looks up a localized string similar to Member {0} is not supported for protected mocking..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.UnsupportedNonStaticMatcherForSetter">
- <summary>
- Looks up a localized string similar to Setter expression can only use static custom matchers..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.VerficationFailed">
- <summary>
- Looks up a localized string similar to The following setups were not matched:
- {0}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.VerifyOnNonVirtualMember">
- <summary>
- Looks up a localized string similar to Invalid verify on a non-virtual (overridable in VB) member: {0}.
- </summary>
- </member>
- <member name="T:Moq.Protected.IProtectedMock`1">
- <summary>
- Allows setups to be specified for protected members by using their
- name as a string, rather than strong-typing them which is not possible
- due to their visibility.
- </summary>
- </member>
- <member name="M:Moq.Protected.IProtectedMock`1.Setup(System.String,System.Object[])">
- <summary>
- Specifies a setup for a void method invocation with the given
- <paramref name="voidMethodName"/>, optionally specifying arguments for the method call.
- </summary>
- <param name="voidMethodName">The name of the void method to be invoked.</param>
- <param name="args">The optional arguments for the invocation. If argument matchers are used,
- remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>
- </member>
- <member name="M:Moq.Protected.IProtectedMock`1.Setup``1(System.String,System.Object[])">
- <summary>
- Specifies a setup for an invocation on a property or a non void method with the given
- <paramref name="methodOrPropertyName"/>, optionally specifying arguments for the method call.
- </summary>
- <param name="methodOrPropertyName">The name of the method or property to be invoked.</param>
- <param name="args">The optional arguments for the invocation. If argument matchers are used,
- remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>
- <typeparam name="TResult">The return type of the method or property.</typeparam>
- </member>
- <member name="M:Moq.Protected.IProtectedMock`1.SetupGet``1(System.String)">
- <summary>
- Specifies a setup for an invocation on a property getter with the given
- <paramref name="propertyName"/>.
- </summary>
- <param name="propertyName">The name of the property.</param>
- <typeparam name="TProperty">The type of the property.</typeparam>
- </member>
- <member name="M:Moq.Protected.IProtectedMock`1.SetupSet``1(System.String,System.Object)">
- <summary>
- Specifies a setup for an invocation on a property setter with the given
- <paramref name="propertyName"/>.
- </summary>
- <param name="propertyName">The name of the property.</param>
- <param name="value">The property value. If argument matchers are used,
- remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>
- <typeparam name="TProperty">The type of the property.</typeparam>
- </member>
- <member name="M:Moq.Protected.IProtectedMock`1.Verify(System.String,Moq.Times,System.Object[])">
- <summary>
- Specifies a verify for a void method with the given <paramref name="methodName"/>,
- optionally specifying arguments for the method call. Use in conjuntion with the default
- <see cref="F:Moq.MockBehavior.Loose"/>.
- </summary>
- <exception cref="T:Moq.MockException">The invocation was not call the times specified by
- <paramref name="times"/>.</exception>
- <param name="methodName">The name of the void method to be verified.</param>
- <param name="times">The number of times a method is allowed to be called.</param>
- <param name="args">The optional arguments for the invocation. If argument matchers are used,
- remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>
- </member>
- <member name="M:Moq.Protected.IProtectedMock`1.Verify``1(System.String,Moq.Times,System.Object[])">
- <summary>
- Specifies a verify for an invocation on a property or a non void method with the given
- <paramref name="methodName"/>, optionally specifying arguments for the method call.
- </summary>
- <exception cref="T:Moq.MockException">The invocation was not call the times specified by
- <paramref name="times"/>.</exception>
- <param name="methodName">The name of the method or property to be invoked.</param>
- <param name="args">The optional arguments for the invocation. If argument matchers are used,
- remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>
- <param name="times">The number of times a method is allowed to be called.</param>
- <typeparam name="TResult">The type of return value from the expression.</typeparam>
- </member>
- <member name="M:Moq.Protected.IProtectedMock`1.VerifyGet``1(System.String,Moq.Times)">
- <summary>
- Specifies a verify for an invocation on a property getter with the given
- <paramref name="propertyName"/>.
- <exception cref="T:Moq.MockException">The invocation was not call the times specified by
- <paramref name="times"/>.</exception>
- </summary>
- <param name="propertyName">The name of the property.</param>
- <param name="times">The number of times a method is allowed to be called.</param>
- <typeparam name="TProperty">The type of the property.</typeparam>
- </member>
- <member name="M:Moq.Protected.IProtectedMock`1.VerifySet``1(System.String,Moq.Times,System.Object)">
- <summary>
- Specifies a setup for an invocation on a property setter with the given
- <paramref name="propertyName"/>.
- </summary>
- <exception cref="T:Moq.MockException">The invocation was not call the times specified by
- <paramref name="times"/>.</exception>
- <param name="propertyName">The name of the property.</param>
- <param name="times">The number of times a method is allowed to be called.</param>
- <param name="value">The property value.</param>
- <typeparam name="TProperty">The type of the property. If argument matchers are used,
- remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</typeparam>
- </member>
- <member name="T:Moq.Protected.ItExpr">
- <summary>
- Allows the specification of a matching condition for an
- argument in a protected member setup, rather than a specific
- argument value. "ItExpr" refers to the argument being matched.
- </summary>
- <remarks>
- <para>Use this variant of argument matching instead of
- <see cref="T:Moq.It"/> for protected setups.</para>
- This class allows the setup to match a method invocation
- with an arbitrary value, with a value in a specified range, or
- even one that matches a given predicate, or null.
- </remarks>
- </member>
- <member name="M:Moq.Protected.ItExpr.IsNull``1">
- <summary>
- Matches a null value of the given <typeparamref name="TValue"/> type.
- </summary>
- <remarks>
- Required for protected mocks as the null value cannot be used
- directly as it prevents proper method overload selection.
- </remarks>
- <example>
- <code>
- // Throws an exception for a call to Remove with a null string value.
- mock.Protected()
- .Setup("Remove", ItExpr.IsNull<string>())
- .Throws(new InvalidOperationException());
- </code>
- </example>
- <typeparam name="TValue">Type of the value.</typeparam>
- </member>
- <member name="M:Moq.Protected.ItExpr.IsAny``1">
- <summary>
- Matches any value of the given <typeparamref name="TValue"/> type.
- </summary>
- <remarks>
- Typically used when the actual argument value for a method
- call is not relevant.
- </remarks>
- <example>
- <code>
- // Throws an exception for a call to Remove with any string value.
- mock.Protected()
- .Setup("Remove", ItExpr.IsAny<string>())
- .Throws(new InvalidOperationException());
- </code>
- </example>
- <typeparam name="TValue">Type of the value.</typeparam>
- </member>
- <member name="M:Moq.Protected.ItExpr.Is``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">
- <summary>
- Matches any value that satisfies the given predicate.
- </summary>
- <typeparam name="TValue">Type of the argument to check.</typeparam>
- <param name="match">The predicate used to match the method argument.</param>
- <remarks>
- Allows the specification of a predicate to perform matching
- of method call arguments.
- </remarks>
- <example>
- This example shows how to return the value <c>1</c> whenever the argument to the
- <c>Do</c> method is an even number.
- <code>
- mock.Protected()
- .Setup("Do", ItExpr.Is<int>(i => i % 2 == 0))
- .Returns(1);
- </code>
- This example shows how to throw an exception if the argument to the
- method is a negative number:
- <code>
- mock.Protected()
- .Setup("GetUser", ItExpr.Is<int>(i => i < 0))
- .Throws(new ArgumentException());
- </code>
- </example>
- </member>
- <member name="M:Moq.Protected.ItExpr.IsInRange``1(``0,``0,Moq.Range)">
- <summary>
- Matches any value that is in the range specified.
- </summary>
- <typeparam name="TValue">Type of the argument to check.</typeparam>
- <param name="from">The lower bound of the range.</param>
- <param name="to">The upper bound of the range.</param>
- <param name="rangeKind">The kind of range. See <see cref="T:Moq.Range"/>.</param>
- <example>
- The following example shows how to expect a method call
- with an integer argument within the 0..100 range.
- <code>
- mock.Protected()
- .Setup("HasInventory",
- ItExpr.IsAny<string>(),
- ItExpr.IsInRange(0, 100, Range.Inclusive))
- .Returns(false);
- </code>
- </example>
- </member>
- <member name="M:Moq.Protected.ItExpr.IsRegex(System.String)">
- <summary>
- Matches a string argument if it matches the given regular expression pattern.
- </summary>
- <param name="regex">The pattern to use to match the string argument value.</param>
- <example>
- The following example shows how to expect a call to a method where the
- string argument matches the given regular expression:
- <code>
- mock.Protected()
- .Setup("Check", ItExpr.IsRegex("[a-z]+"))
- .Returns(1);
- </code>
- </example>
- </member>
- <member name="M:Moq.Protected.ItExpr.IsRegex(System.String,System.Text.RegularExpressions.RegexOptions)">
- <summary>
- Matches a string argument if it matches the given regular expression pattern.
- </summary>
- <param name="regex">The pattern to use to match the string argument value.</param>
- <param name="options">The options used to interpret the pattern.</param>
- <example>
- The following example shows how to expect a call to a method where the
- string argument matches the given regular expression, in a case insensitive way:
- <code>
- mock.Protected()
- .Setup("Check", ItExpr.IsRegex("[a-z]+", RegexOptions.IgnoreCase))
- .Returns(1);
- </code>
- </example>
- </member>
- <member name="T:Moq.Protected.ProtectedExtension">
- <summary>
- Enables the <c>Protected()</c> method on <see cref="T:Moq.Mock`1"/>,
- allowing setups to be set for protected members by using their
- name as a string, rather than strong-typing them which is not possible
- due to their visibility.
- </summary>
- </member>
- <member name="M:Moq.Protected.ProtectedExtension.Protected``1(Moq.Mock{``0})">
- <summary>
- Enable protected setups for the mock.
- </summary>
- <typeparam name="T">Mocked object type. Typically omitted as it can be inferred from the mock instance.</typeparam>
- <param name="mock">The mock to set the protected setups on.</param>
- </member>
- <member name="T:ThisAssembly">
- <group name="overview" title="Overview" order="0" />
- <group name="setups" title="Specifying setups" order="1" />
- <group name="returns" title="Returning values from members" order="2" />
- <group name="verification" title="Verifying setups" order="3" />
- <group name="advanced" title="Advanced scenarios" order="99" />
- <group name="factory" title="Using MockFactory for consistency across mocks" order="4" />
- </member>
- <member name="T:Moq.Range">
- <summary>
- Kind of range to use in a filter specified through
- <see cref="M:Moq.It.IsInRange``1(``0,``0,Moq.Range)"/>.
- </summary>
- </member>
- <member name="F:Moq.Range.Inclusive">
- <summary>
- The range includes the <c>to</c> and
- <c>from</c> values.
- </summary>
- </member>
- <member name="F:Moq.Range.Exclusive">
- <summary>
- The range does not include the <c>to</c> and
- <c>from</c> values.
- </summary>
- </member>
- <member name="T:Moq.DefaultValue">
- <summary>
- Determines the way default values are generated
- calculated for loose mocks.
- </summary>
- </member>
- <member name="F:Moq.DefaultValue.Empty">
- <summary>
- Default behavior, which generates empty values for
- value types (i.e. default(int)), empty array and
- enumerables, and nulls for all other reference types.
- </summary>
- </member>
- <member name="F:Moq.DefaultValue.Mock">
- <summary>
- Whenever the default value generated by <see cref="F:Moq.DefaultValue.Empty"/>
- is null, replaces this value with a mock (if the type
- can be mocked).
- </summary>
- <remarks>
- For sealed classes, a null value will be generated.
- </remarks>
- </member>
- <member name="T:Moq.Linq.MockQueryable`1">
- <summary>
- A default implementation of IQueryable for use with QueryProvider
- </summary>
- </member>
- <member name="M:Moq.Linq.MockQueryable`1.#ctor(System.Linq.Expressions.MethodCallExpression)">
- <summary>
- The <paramref name="underlyingCreateMocks"/> is a
- static method that returns an IQueryable of Mocks of T which is used to
- apply the linq specification to.
- </summary>
- </member>
- <member name="T:Moq.Match">
- <summary>
- Allows creation custom value matchers that can be used on setups and verification,
- completely replacing the built-in <see cref="T:Moq.It"/> class with your own argument
- matching rules.
- </summary><remarks>
- See also <see cref="T:Moq.Match`1"/>.
- </remarks>
- </member>
- <member name="M:Moq.Match.Matcher``1">
- <devdoc>
- Provided for the sole purpose of rendering the delegate passed to the
- matcher constructor if no friendly render lambda is provided.
- </devdoc>
- </member>
- <member name="M:Moq.Match.Create``1(System.Predicate{``0})">
- <summary>
- Initializes the match with the condition that
- will be checked in order to match invocation
- values.
- </summary><param name="condition">The condition to match against actual values.</param><remarks>
- <seealso cref="T:Moq.Match`1"/>
- </remarks>
- </member>
- <member name="M:Moq.Match.Create``1(System.Predicate{``0},System.Linq.Expressions.Expression{System.Func{``0}})">
- <!-- No matching elements were found for the following include tag --><include file="Match.xdoc" path="docs/doc[@for="Match.Create{T}(condition,renderExpression"]/*"/>
- </member>
- <member name="M:Moq.Match.SetLastMatch``1(Moq.Match{``0})">
- <devdoc>
- This method is used to set an expression as the last matcher invoked,
- which is used in the SetupSet to allow matchers in the prop = value
- delegate expression. This delegate is executed in "fluent" mode in
- order to capture the value being set, and construct the corresponding
- methodcall.
- This is also used in the MatcherFactory for each argument expression.
- This method ensures that when we execute the delegate, we
- also track the matcher that was invoked, so that when we create the
- methodcall we build the expression using it, rather than the null/default
- value returned from the actual invocation.
- </devdoc>
- </member>
- <member name="T:Moq.Match`1">
- <summary>
- Allows creation custom value matchers that can be used on setups and verification,
- completely replacing the built-in <see cref="T:Moq.It"/> class with your own argument
- matching rules.
- </summary><typeparam name="T">Type of the value to match.</typeparam><remarks>
- The argument matching is used to determine whether a concrete
- invocation in the mock matches a given setup. This
- matching mechanism is fully extensible.
- </remarks><example>
- Creating a custom matcher is straightforward. You just need to create a method
- that returns a value from a call to <see cref="M:Moq.Match.Create``1(System.Predicate{``0})"/> with
- your matching condition and optional friendly render expression:
- <code>
- [Matcher]
- public Order IsBigOrder()
- {
- return Match<Order>.Create(
- o => o.GrandTotal >= 5000,
- /* a friendly expression to render on failures */
- () => IsBigOrder());
- }
- </code>
- This method can be used in any mock setup invocation:
- <code>
- mock.Setup(m => m.Submit(IsBigOrder()).Throws<UnauthorizedAccessException>();
- </code>
- At runtime, Moq knows that the return value was a matcher (note that the method MUST be
- annotated with the [Matcher] attribute in order to determine this) and
- evaluates your predicate with the actual value passed into your predicate.
- <para>
- Another example might be a case where you want to match a lists of orders
- that contains a particular one. You might create matcher like the following:
- </para>
- <code>
- public static class Orders
- {
- [Matcher]
- public static IEnumerable<Order> Contains(Order order)
- {
- return Match<IEnumerable<Order>>.Create(orders => orders.Contains(order));
- }
- }
- </code>
- Now we can invoke this static method instead of an argument in an
- invocation:
- <code>
- var order = new Order { ... };
- var mock = new Mock<IRepository<Order>>();
-
- mock.Setup(x => x.Save(Orders.Contains(order)))
- .Throws<ArgumentException>();
- </code>
- </example>
- </member>
- <member name="T:Moq.FluentMockContext">
- <summary>
- Tracks the current mock and interception context.
- </summary>
- </member>
- <member name="P:Moq.FluentMockContext.IsActive">
- <summary>
- Having an active fluent mock context means that the invocation
- is being performed in "trial" mode, just to gather the
- target method and arguments that need to be matched later
- when the actual invocation is made.
- </summary>
- </member>
- <member name="T:Moq.MockDefaultValueProvider">
- <summary>
- A <see cref="T:Moq.IDefaultValueProvider"/> that returns an empty default value
- for non-mockeable types, and mocks for all other types (interfaces and
- non-sealed classes) that can be mocked.
- </summary>
- </member>
- <member name="T:Moq.Mocks">
- <summary>
- Allows querying the universe of mocks for those that behave
- according to the LINQ query specification.
- </summary>
- <devdoc>
- This entry-point into Linq to Mocks is the only one in the root Moq
- namespace to ease discovery. But to get all the mocking extension
- methods on Object, a using of Moq.Linq must be done, so that the
- polluting of the intellisense for all objects is an explicit opt-in.
- </devdoc>
- </member>
- <member name="M:Moq.Mocks.Of``1">
- <summary>
- Access the universe of mocks of the given type, to retrieve those
- that behave according to the LINQ query specification.
- </summary>
- <typeparam name="T">The type of the mocked object to query.</typeparam>
- </member>
- <member name="M:Moq.Mocks.Of``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">
- <summary>
- Access the universe of mocks of the given type, to retrieve those
- that behave according to the LINQ query specification.
- </summary>
- <param name="specification">The predicate with the setup expressions.</param>
- <typeparam name="T">The type of the mocked object to query.</typeparam>
- </member>
- <member name="M:Moq.Mocks.OneOf``1">
- <summary>
- Creates an mock object of the indicated type.
- </summary>
- <typeparam name="T">The type of the mocked object.</typeparam>
- <returns>The mocked object created.</returns>
- </member>
- <member name="M:Moq.Mocks.OneOf``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">
- <summary>
- Creates an mock object of the indicated type.
- </summary>
- <param name="specification">The predicate with the setup expressions.</param>
- <typeparam name="T">The type of the mocked object.</typeparam>
- <returns>The mocked object created.</returns>
- </member>
- <member name="M:Moq.Mocks.CreateMockQuery``1">
- <summary>
- Creates the mock query with the underlying queriable implementation.
- </summary>
- </member>
- <member name="M:Moq.Mocks.CreateQueryable``1">
- <summary>
- Wraps the enumerator inside a queryable.
- </summary>
- </member>
- <member name="M:Moq.Mocks.CreateMocks``1">
- <summary>
- Method that is turned into the actual call from .Query{T}, to
- transform the queryable query into a normal enumerable query.
- This method is never used directly by consumers.
- </summary>
- </member>
- <member name="M:Moq.Mocks.SetPropery``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},``1)">
- <summary>
- Extension method used to support Linq-like setup properties that are not virtual but do have
- a getter and a setter, thereby allowing the use of Linq to Mocks to quickly initialize Dtos too :)
- </summary>
- </member>
- <member name="T:Moq.QueryableMockExtensions">
- <summary>
- Helper extensions that are used by the query translator.
- </summary>
- </member>
- <member name="M:Moq.QueryableMockExtensions.FluentMock``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}})">
- <summary>
- Retrieves a fluent mock from the given setup expression.
- </summary>
- </member>
- <member name="T:Moq.Times">
- <summary>
- Defines the number of invocations allowed by a mocked method.
- </summary>
- </member>
- <member name="M:Moq.Times.AtLeast(System.Int32)">
- <summary>
- Specifies that a mocked method should be invoked <paramref name="callCount"/> times as minimum.
- </summary><param name="callCount">The minimun number of times.</param><returns>An object defining the allowed number of invocations.</returns>
- </member>
- <member name="M:Moq.Times.AtLeastOnce">
- <summary>
- Specifies that a mocked method should be invoked one time as minimum.
- </summary><returns>An object defining the allowed number of invocations.</returns>
- </member>
- <member name="M:Moq.Times.AtMost(System.Int32)">
- <summary>
- Specifies that a mocked method should be invoked <paramref name="callCount"/> time as maximun.
- </summary><param name="callCount">The maximun number of times.</param><returns>An object defining the allowed number of invocations.</returns>
- </member>
- <member name="M:Moq.Times.AtMostOnce">
- <summary>
- Specifies that a mocked method should be invoked one time as maximun.
- </summary><returns>An object defining the allowed number of invocations.</returns>
- </member>
- <member name="M:Moq.Times.Between(System.Int32,System.Int32,Moq.Range)">
- <summary>
- Specifies that a mocked method should be invoked between <paramref name="callCountFrom"/> and
- <paramref name="callCountTo"/> times.
- </summary><param name="callCountFrom">The minimun number of times.</param><param name="callCountTo">The maximun number of times.</param><param name="rangeKind">
- The kind of range. See <see cref="T:Moq.Range"/>.
- </param><returns>An object defining the allowed number of invocations.</returns>
- </member>
- <member name="M:Moq.Times.Exactly(System.Int32)">
- <summary>
- Specifies that a mocked method should be invoked exactly <paramref name="callCount"/> times.
- </summary><param name="callCount">The times that a method or property can be called.</param><returns>An object defining the allowed number of invocations.</returns>
- </member>
- <member name="M:Moq.Times.Never">
- <summary>
- Specifies that a mocked method should not be invoked.
- </summary><returns>An object defining the allowed number of invocations.</returns>
- </member>
- <member name="M:Moq.Times.Once">
- <summary>
- Specifies that a mocked method should be invoked exactly one time.
- </summary><returns>An object defining the allowed number of invocations.</returns>
- </member>
- <member name="M:Moq.Times.Equals(System.Object)">
- <summary>
- Determines whether the specified <see cref="T:System.Object"/> is equal to this instance.
- </summary><param name="obj">
- The <see cref="T:System.Object"/> to compare with this instance.
- </param><returns>
- <c>true</c> if the specified <see cref="T:System.Object"/> is equal to this instance; otherwise, <c>false</c>.
- </returns>
- </member>
- <member name="M:Moq.Times.GetHashCode">
- <summary>
- Returns a hash code for this instance.
- </summary><returns>
- A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
- </returns>
- </member>
- <member name="M:Moq.Times.op_Equality(Moq.Times,Moq.Times)">
- <summary>
- Determines whether two specified <see cref="T:Moq.Times"/> objects have the same value.
- </summary><param name="left">
- The first <see cref="T:Moq.Times"/>.
- </param><param name="right">
- The second <see cref="T:Moq.Times"/>.
- </param><returns>
- <c>true</c> if the value of left is the same as the value of right; otherwise, <c>false</c>.
- </returns>
- </member>
- <member name="M:Moq.Times.op_Inequality(Moq.Times,Moq.Times)">
- <summary>
- Determines whether two specified <see cref="T:Moq.Times"/> objects have different values.
- </summary><param name="left">
- The first <see cref="T:Moq.Times"/>.
- </param><param name="right">
- The second <see cref="T:Moq.Times"/>.
- </param><returns>
- <c>true</c> if the value of left is different from the value of right; otherwise, <c>false</c>.
- </returns>
- </member>
- </members>
-</doc>
diff --git a/SendGrid/packages/Moq.4.0.10827/lib/Silverlight4/Castle.Core.dll b/SendGrid/packages/Moq.4.0.10827/lib/Silverlight4/Castle.Core.dll Binary files differdeleted file mode 100644 index a887ecd..0000000 --- a/SendGrid/packages/Moq.4.0.10827/lib/Silverlight4/Castle.Core.dll +++ /dev/null diff --git a/SendGrid/packages/Moq.4.0.10827/lib/Silverlight4/Moq.Silverlight.dll b/SendGrid/packages/Moq.4.0.10827/lib/Silverlight4/Moq.Silverlight.dll Binary files differdeleted file mode 100644 index fb516c1..0000000 --- a/SendGrid/packages/Moq.4.0.10827/lib/Silverlight4/Moq.Silverlight.dll +++ /dev/null diff --git a/SendGrid/packages/Moq.4.0.10827/lib/Silverlight4/Moq.Silverlight.pdb b/SendGrid/packages/Moq.4.0.10827/lib/Silverlight4/Moq.Silverlight.pdb Binary files differdeleted file mode 100644 index d33d394..0000000 --- a/SendGrid/packages/Moq.4.0.10827/lib/Silverlight4/Moq.Silverlight.pdb +++ /dev/null diff --git a/SendGrid/packages/Moq.4.0.10827/lib/Silverlight4/Moq.Silverlight.xml b/SendGrid/packages/Moq.4.0.10827/lib/Silverlight4/Moq.Silverlight.xml deleted file mode 100644 index 90efe10..0000000 --- a/SendGrid/packages/Moq.4.0.10827/lib/Silverlight4/Moq.Silverlight.xml +++ /dev/null @@ -1,5101 +0,0 @@ -<?xml version="1.0"?>
-<doc>
- <assembly>
- <name>Moq.Silverlight</name>
- </assembly>
- <members>
- <member name="T:Moq.Mock`1">
- <summary>
- Provides a mock implementation of <typeparamref name="T"/>.
- </summary><remarks>
- Any interface type can be used for mocking, but for classes, only abstract and virtual members can be mocked.
- <para>
- The behavior of the mock with regards to the setups and the actual calls is determined
- by the optional <see cref="T:Moq.MockBehavior"/> that can be passed to the <see cref="M:Moq.Mock`1.#ctor(Moq.MockBehavior)"/>
- constructor.
- </para>
- </remarks><typeparam name="T">Type to mock, which can be an interface or a class.</typeparam><example group="overview" order="0">
- The following example shows establishing setups with specific values
- for method invocations:
- <code>
- // Arrange
- var order = new Order(TALISKER, 50);
- var mock = new Mock<IWarehouse>();
-
- mock.Setup(x => x.HasInventory(TALISKER, 50)).Returns(true);
-
- // Act
- order.Fill(mock.Object);
-
- // Assert
- Assert.True(order.IsFilled);
- </code>
- The following example shows how to use the <see cref="T:Moq.It"/> class
- to specify conditions for arguments instead of specific values:
- <code>
- // Arrange
- var order = new Order(TALISKER, 50);
- var mock = new Mock<IWarehouse>();
-
- // shows how to expect a value within a range
- mock.Setup(x => x.HasInventory(
- It.IsAny<string>(),
- It.IsInRange(0, 100, Range.Inclusive)))
- .Returns(false);
-
- // shows how to throw for unexpected calls.
- mock.Setup(x => x.Remove(
- It.IsAny<string>(),
- It.IsAny<int>()))
- .Throws(new InvalidOperationException());
-
- // Act
- order.Fill(mock.Object);
-
- // Assert
- Assert.False(order.IsFilled);
- </code>
- </example>
- </member>
- <member name="T:Moq.Mock">
- <summary>
- Base class for mocks and static helper class with methods that
- apply to mocked objects, such as <see cref="M:Moq.Mock.Get``1(``0)"/> to
- retrieve a <see cref="T:Moq.Mock`1"/> from an object instance.
- </summary>
- </member>
- <member name="T:Moq.IHideObjectMembers">
- <summary>
- Helper interface used to hide the base <see cref="T:System.Object"/>
- members from the fluent API to make it much cleaner
- in Visual Studio intellisense.
- </summary>
- </member>
- <member name="M:Moq.IHideObjectMembers.GetType">
- <summary/>
- </member>
- <member name="M:Moq.IHideObjectMembers.GetHashCode">
- <summary/>
- </member>
- <member name="M:Moq.IHideObjectMembers.ToString">
- <summary/>
- </member>
- <member name="M:Moq.IHideObjectMembers.Equals(System.Object)">
- <summary/>
- </member>
- <member name="M:Moq.Mock.Of``1">
- <summary>
- Creates an mock object of the indicated type.
- </summary>
- <typeparam name="T">The type of the mocked object.</typeparam>
- <returns>The mocked object created.</returns>
- </member>
- <member name="M:Moq.Mock.Of``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">
- <summary>
- Creates an mock object of the indicated type.
- </summary>
- <param name="predicate">The predicate with the specification of how the mocked object should behave.</param>
- <typeparam name="T">The type of the mocked object.</typeparam>
- <returns>The mocked object created.</returns>
- </member>
- <member name="M:Moq.Mock.#ctor">
- <summary>
- Initializes a new instance of the <see cref="T:Moq.Mock"/> class.
- </summary>
- </member>
- <member name="M:Moq.Mock.Get``1(``0)">
- <summary>
- Retrieves the mock object for the given object instance.
- </summary><typeparam name="T">
- Type of the mock to retrieve. Can be omitted as it's inferred
- from the object instance passed in as the <paramref name="mocked"/> instance.
- </typeparam><param name="mocked">The instance of the mocked object.</param><returns>The mock associated with the mocked object.</returns><exception cref="T:System.ArgumentException">
- The received <paramref name="mocked"/> instance
- was not created by Moq.
- </exception><example group="advanced">
- The following example shows how to add a new setup to an object
- instance which is not the original <see cref="T:Moq.Mock`1"/> but rather
- the object associated with it:
- <code>
- // Typed instance, not the mock, is retrieved from some test API.
- HttpContextBase context = GetMockContext();
-
- // context.Request is the typed object from the "real" API
- // so in order to add a setup to it, we need to get
- // the mock that "owns" it
- Mock<HttpRequestBase> request = Mock.Get(context.Request);
- mock.Setup(req => req.AppRelativeCurrentExecutionFilePath)
- .Returns(tempUrl);
- </code>
- </example>
- </member>
- <member name="M:Moq.Mock.OnGetObject">
- <summary>
- Returns the mocked object value.
- </summary>
- </member>
- <member name="M:Moq.Mock.Verify">
- <summary>
- Verifies that all verifiable expectations have been met.
- </summary><example group="verification">
- This example sets up an expectation and marks it as verifiable. After
- the mock is used, a <c>Verify()</c> call is issued on the mock
- to ensure the method in the setup was invoked:
- <code>
- var mock = new Mock<IWarehouse>();
- this.Setup(x => x.HasInventory(TALISKER, 50)).Verifiable().Returns(true);
- ...
- // other test code
- ...
- // Will throw if the test code has didn't call HasInventory.
- this.Verify();
- </code>
- </example><exception cref="T:Moq.MockException">Not all verifiable expectations were met.</exception>
- </member>
- <member name="M:Moq.Mock.VerifyAll">
- <summary>
- Verifies all expectations regardless of whether they have
- been flagged as verifiable.
- </summary><example group="verification">
- This example sets up an expectation without marking it as verifiable. After
- the mock is used, a <see cref="M:Moq.Mock.VerifyAll"/> call is issued on the mock
- to ensure that all expectations are met:
- <code>
- var mock = new Mock<IWarehouse>();
- this.Setup(x => x.HasInventory(TALISKER, 50)).Returns(true);
- ...
- // other test code
- ...
- // Will throw if the test code has didn't call HasInventory, even
- // that expectation was not marked as verifiable.
- this.VerifyAll();
- </code>
- </example><exception cref="T:Moq.MockException">At least one expectation was not met.</exception>
- </member>
- <member name="M:Moq.Mock.GetInterceptor(System.Linq.Expressions.Expression,Moq.Mock)">
- <summary>
- Gets the interceptor target for the given expression and root mock,
- building the intermediate hierarchy of mock objects if necessary.
- </summary>
- </member>
- <member name="M:Moq.Mock.DoRaise(System.Reflection.EventInfo,System.EventArgs)">
- <summary>
- Raises the associated event with the given
- event argument data.
- </summary>
- </member>
- <member name="M:Moq.Mock.DoRaise(System.Reflection.EventInfo,System.Object[])">
- <summary>
- Raises the associated event with the given
- event argument data.
- </summary>
- </member>
- <member name="M:Moq.Mock.As``1">
- <summary>
- Adds an interface implementation to the mock,
- allowing setups to be specified for it.
- </summary><remarks>
- This method can only be called before the first use
- of the mock <see cref="P:Moq.Mock.Object"/> property, at which
- point the runtime type has already been generated
- and no more interfaces can be added to it.
- <para>
- Also, <typeparamref name="TInterface"/> must be an
- interface and not a class, which must be specified
- when creating the mock instead.
- </para>
- </remarks><exception cref="T:System.InvalidOperationException">
- The mock type
- has already been generated by accessing the <see cref="P:Moq.Mock.Object"/> property.
- </exception><exception cref="T:System.ArgumentException">
- The <typeparamref name="TInterface"/> specified
- is not an interface.
- </exception><example>
- The following example creates a mock for the main interface
- and later adds <see cref="T:System.IDisposable"/> to it to verify
- it's called by the consumer code:
- <code>
- var mock = new Mock<IProcessor>();
- mock.Setup(x => x.Execute("ping"));
-
- // add IDisposable interface
- var disposable = mock.As<IDisposable>();
- disposable.Setup(d => d.Dispose()).Verifiable();
- </code>
- </example><typeparam name="TInterface">Type of interface to cast the mock to.</typeparam>
- </member>
- <member name="M:Moq.Mock.SetReturnsDefault``1(``0)">
- <!-- No matching elements were found for the following include tag --><include file="Mock.Generic.xdoc" path="docs/doc[@for="Mock.SetReturnDefault{TReturn}"]/*"/>
- </member>
- <member name="P:Moq.Mock.Behavior">
- <summary>
- Behavior of the mock, according to the value set in the constructor.
- </summary>
- </member>
- <member name="P:Moq.Mock.CallBase">
- <summary>
- Whether the base member virtual implementation will be called
- for mocked classes if no setup is matched. Defaults to <see langword="false"/>.
- </summary>
- </member>
- <member name="P:Moq.Mock.DefaultValue">
- <summary>
- Specifies the behavior to use when returning default values for
- unexpected invocations on loose mocks.
- </summary>
- </member>
- <member name="P:Moq.Mock.Object">
- <summary>
- Gets the mocked object instance.
- </summary>
- </member>
- <member name="P:Moq.Mock.MockedType">
- <summary>
- Retrieves the type of the mocked object, its generic type argument.
- This is used in the auto-mocking of hierarchy access.
- </summary>
- </member>
- <member name="P:Moq.Mock.DefaultValueProvider">
- <summary>
- Specifies the class that will determine the default
- value to return when invocations are made that
- have no setups and need to return a default
- value (for loose mocks).
- </summary>
- </member>
- <member name="P:Moq.Mock.ImplementedInterfaces">
- <summary>
- Exposes the list of extra interfaces implemented by the mock.
- </summary>
- </member>
- <member name="M:Moq.Mock`1.#ctor(System.Boolean)">
- <summary>
- Ctor invoked by AsTInterface exclusively.
- </summary>
- </member>
- <member name="M:Moq.Mock`1.#ctor">
- <summary>
- Initializes an instance of the mock with <see cref="F:Moq.MockBehavior.Default">default behavior</see>.
- </summary><example>
- <code>var mock = new Mock<IFormatProvider>();</code>
- </example>
- </member>
- <member name="M:Moq.Mock`1.#ctor(System.Object[])">
- <summary>
- Initializes an instance of the mock with <see cref="F:Moq.MockBehavior.Default">default behavior</see> and with
- the given constructor arguments for the class. (Only valid when <typeparamref name="T"/> is a class)
- </summary><remarks>
- The mock will try to find the best match constructor given the constructor arguments, and invoke that
- to initialize the instance. This applies only for classes, not interfaces.
- </remarks><example>
- <code>var mock = new Mock<MyProvider>(someArgument, 25);</code>
- </example><param name="args">Optional constructor arguments if the mocked type is a class.</param>
- </member>
- <member name="M:Moq.Mock`1.#ctor(Moq.MockBehavior)">
- <summary>
- Initializes an instance of the mock with the specified <see cref="T:Moq.MockBehavior">behavior</see>.
- </summary><example>
- <code>var mock = new Mock<IFormatProvider>(MockBehavior.Relaxed);</code>
- </example><param name="behavior">Behavior of the mock.</param>
- </member>
- <member name="M:Moq.Mock`1.#ctor(Moq.MockBehavior,System.Object[])">
- <summary>
- Initializes an instance of the mock with a specific <see cref="T:Moq.MockBehavior">behavior</see> with
- the given constructor arguments for the class.
- </summary><remarks>
- The mock will try to find the best match constructor given the constructor arguments, and invoke that
- to initialize the instance. This applies only to classes, not interfaces.
- </remarks><example>
- <code>var mock = new Mock<MyProvider>(someArgument, 25);</code>
- </example><param name="behavior">Behavior of the mock.</param><param name="args">Optional constructor arguments if the mocked type is a class.</param>
- </member>
- <member name="M:Moq.Mock`1.OnGetObject">
- <summary>
- Returns the mocked object value.
- </summary>
- </member>
- <member name="M:Moq.Mock`1.Setup(System.Linq.Expressions.Expression{System.Action{`0}})">
- <summary>
- Specifies a setup on the mocked type for a call to
- to a void method.
- </summary><remarks>
- If more than one setup is specified for the same method or property,
- the latest one wins and is the one that will be executed.
- </remarks><param name="expression">Lambda expression that specifies the expected method invocation.</param><example group="setups">
- <code>
- var mock = new Mock<IProcessor>();
- mock.Setup(x => x.Execute("ping"));
- </code>
- </example>
- </member>
- <member name="M:Moq.Mock`1.Setup``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
- <summary>
- Specifies a setup on the mocked type for a call to
- to a value returning method.
- </summary><typeparam name="TResult">Type of the return value. Typically omitted as it can be inferred from the expression.</typeparam><remarks>
- If more than one setup is specified for the same method or property,
- the latest one wins and is the one that will be executed.
- </remarks><param name="expression">Lambda expression that specifies the method invocation.</param><example group="setups">
- <code>
- mock.Setup(x => x.HasInventory("Talisker", 50)).Returns(true);
- </code>
- </example>
- </member>
- <member name="M:Moq.Mock`1.SetupGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
- <summary>
- Specifies a setup on the mocked type for a call to
- to a property getter.
- </summary><remarks>
- If more than one setup is set for the same property getter,
- the latest one wins and is the one that will be executed.
- </remarks><typeparam name="TProperty">Type of the property. Typically omitted as it can be inferred from the expression.</typeparam><param name="expression">Lambda expression that specifies the property getter.</param><example group="setups">
- <code>
- mock.SetupGet(x => x.Suspended)
- .Returns(true);
- </code>
- </example>
- </member>
- <member name="M:Moq.Mock`1.SetupSet``1(System.Action{`0})">
- <summary>
- Specifies a setup on the mocked type for a call to
- to a property setter.
- </summary><remarks>
- If more than one setup is set for the same property setter,
- the latest one wins and is the one that will be executed.
- <para>
- This overloads allows the use of a callback already
- typed for the property type.
- </para>
- </remarks><typeparam name="TProperty">Type of the property. Typically omitted as it can be inferred from the expression.</typeparam><param name="setterExpression">The Lambda expression that sets a property to a value.</param><example group="setups">
- <code>
- mock.SetupSet(x => x.Suspended = true);
- </code>
- </example>
- </member>
- <member name="M:Moq.Mock`1.SetupSet(System.Action{`0})">
- <summary>
- Specifies a setup on the mocked type for a call to
- to a property setter.
- </summary><remarks>
- If more than one setup is set for the same property setter,
- the latest one wins and is the one that will be executed.
- </remarks><param name="setterExpression">Lambda expression that sets a property to a value.</param><example group="setups">
- <code>
- mock.SetupSet(x => x.Suspended = true);
- </code>
- </example>
- </member>
- <member name="M:Moq.Mock`1.SetupProperty``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
- <summary>
- Specifies that the given property should have "property behavior",
- meaning that setting its value will cause it to be saved and
- later returned when the property is requested. (this is also
- known as "stubbing").
- </summary><typeparam name="TProperty">
- Type of the property, inferred from the property
- expression (does not need to be specified).
- </typeparam><param name="property">Property expression to stub.</param><example>
- If you have an interface with an int property <c>Value</c>, you might
- stub it using the following straightforward call:
- <code>
- var mock = new Mock<IHaveValue>();
- mock.Stub(v => v.Value);
- </code>
- After the <c>Stub</c> call has been issued, setting and
- retrieving the object value will behave as expected:
- <code>
- IHaveValue v = mock.Object;
-
- v.Value = 5;
- Assert.Equal(5, v.Value);
- </code>
- </example>
- </member>
- <member name="M:Moq.Mock`1.SetupProperty``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},``0)">
- <summary>
- Specifies that the given property should have "property behavior",
- meaning that setting its value will cause it to be saved and
- later returned when the property is requested. This overload
- allows setting the initial value for the property. (this is also
- known as "stubbing").
- </summary><typeparam name="TProperty">
- Type of the property, inferred from the property
- expression (does not need to be specified).
- </typeparam><param name="property">Property expression to stub.</param><param name="initialValue">Initial value for the property.</param><example>
- If you have an interface with an int property <c>Value</c>, you might
- stub it using the following straightforward call:
- <code>
- var mock = new Mock<IHaveValue>();
- mock.SetupProperty(v => v.Value, 5);
- </code>
- After the <c>SetupProperty</c> call has been issued, setting and
- retrieving the object value will behave as expected:
- <code>
- IHaveValue v = mock.Object;
- // Initial value was stored
- Assert.Equal(5, v.Value);
-
- // New value set which changes the initial value
- v.Value = 6;
- Assert.Equal(6, v.Value);
- </code>
- </example>
- </member>
- <member name="M:Moq.Mock`1.SetupAllProperties">
- <summary>
- Specifies that the all properties on the mock should have "property behavior",
- meaning that setting its value will cause it to be saved and
- later returned when the property is requested. (this is also
- known as "stubbing"). The default value for each property will be the
- one generated as specified by the <see cref="P:Moq.Mock.DefaultValue"/> property for the mock.
- </summary><remarks>
- If the mock <see cref="P:Moq.Mock.DefaultValue"/> is set to <see cref="F:Moq.DefaultValue.Mock"/>,
- the mocked default values will also get all properties setup recursively.
- </remarks>
- </member>
- <member name="M:Moq.Mock`1.When(System.Func{System.Boolean})">
- <!-- No matching elements were found for the following include tag --><include file="Mock.Generic.xdoc" path="docs/doc[@for="Mock{T}.When"]/*"/>
- </member>
- <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}})">
- <summary>
- Verifies that a specific invocation matching the given expression was performed on the mock. Use
- in conjuntion with the default <see cref="F:Moq.MockBehavior.Loose"/>.
- </summary><example group="verification">
- This example assumes that the mock has been used, and later we want to verify that a given
- invocation with specific parameters was performed:
- <code>
- var mock = new Mock<IProcessor>();
- // exercise mock
- //...
- // Will throw if the test code didn't call Execute with a "ping" string argument.
- mock.Verify(proc => proc.Execute("ping"));
- </code>
- </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="expression">Expression to verify.</param>
- </member>
- <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}},Moq.Times)">
- <summary>
- Verifies that a specific invocation matching the given expression was performed on the mock. Use
- in conjuntion with the default <see cref="F:Moq.MockBehavior.Loose"/>.
- </summary><exception cref="T:Moq.MockException">
- The invocation was not call the times specified by
- <paramref name="times"/>.
- </exception><param name="expression">Expression to verify.</param><param name="times">The number of times a method is allowed to be called.</param>
- </member>
- <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}},System.String)">
- <summary>
- Verifies that a specific invocation matching the given expression was performed on the mock,
- specifying a failure error message. Use in conjuntion with the default
- <see cref="F:Moq.MockBehavior.Loose"/>.
- </summary><example group="verification">
- This example assumes that the mock has been used, and later we want to verify that a given
- invocation with specific parameters was performed:
- <code>
- var mock = new Mock<IProcessor>();
- // exercise mock
- //...
- // Will throw if the test code didn't call Execute with a "ping" string argument.
- mock.Verify(proc => proc.Execute("ping"));
- </code>
- </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="expression">Expression to verify.</param><param name="failMessage">Message to show if verification fails.</param>
- </member>
- <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}},Moq.Times,System.String)">
- <summary>
- Verifies that a specific invocation matching the given expression was performed on the mock,
- specifying a failure error message. Use in conjuntion with the default
- <see cref="F:Moq.MockBehavior.Loose"/>.
- </summary><exception cref="T:Moq.MockException">
- The invocation was not call the times specified by
- <paramref name="times"/>.
- </exception><param name="expression">Expression to verify.</param><param name="times">The number of times a method is allowed to be called.</param><param name="failMessage">Message to show if verification fails.</param>
- </member>
- <member name="M:Moq.Mock`1.Verify``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
- <summary>
- Verifies that a specific invocation matching the given expression was performed on the mock. Use
- in conjuntion with the default <see cref="F:Moq.MockBehavior.Loose"/>.
- </summary><example group="verification">
- This example assumes that the mock has been used, and later we want to verify that a given
- invocation with specific parameters was performed:
- <code>
- var mock = new Mock<IWarehouse>();
- // exercise mock
- //...
- // Will throw if the test code didn't call HasInventory.
- mock.Verify(warehouse => warehouse.HasInventory(TALISKER, 50));
- </code>
- </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="expression">Expression to verify.</param><typeparam name="TResult">Type of return value from the expression.</typeparam>
- </member>
- <member name="M:Moq.Mock`1.Verify``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},Moq.Times)">
- <summary>
- Verifies that a specific invocation matching the given
- expression was performed on the mock. Use in conjuntion
- with the default <see cref="F:Moq.MockBehavior.Loose"/>.
- </summary><exception cref="T:Moq.MockException">
- The invocation was not call the times specified by
- <paramref name="times"/>.
- </exception><param name="expression">Expression to verify.</param><param name="times">The number of times a method is allowed to be called.</param><typeparam name="TResult">Type of return value from the expression.</typeparam>
- </member>
- <member name="M:Moq.Mock`1.Verify``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.String)">
- <summary>
- Verifies that a specific invocation matching the given
- expression was performed on the mock, specifying a failure
- error message.
- </summary><example group="verification">
- This example assumes that the mock has been used,
- and later we want to verify that a given invocation
- with specific parameters was performed:
- <code>
- var mock = new Mock<IWarehouse>();
- // exercise mock
- //...
- // Will throw if the test code didn't call HasInventory.
- mock.Verify(warehouse => warehouse.HasInventory(TALISKER, 50), "When filling orders, inventory has to be checked");
- </code>
- </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="expression">Expression to verify.</param><param name="failMessage">Message to show if verification fails.</param><typeparam name="TResult">Type of return value from the expression.</typeparam>
- </member>
- <member name="M:Moq.Mock`1.Verify``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},Moq.Times,System.String)">
- <summary>
- Verifies that a specific invocation matching the given
- expression was performed on the mock, specifying a failure
- error message.
- </summary><exception cref="T:Moq.MockException">
- The invocation was not call the times specified by
- <paramref name="times"/>.
- </exception><param name="expression">Expression to verify.</param><param name="times">The number of times a method is allowed to be called.</param><param name="failMessage">Message to show if verification fails.</param><typeparam name="TResult">Type of return value from the expression.</typeparam>
- </member>
- <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
- <summary>
- Verifies that a property was read on the mock.
- </summary><example group="verification">
- This example assumes that the mock has been used,
- and later we want to verify that a given property
- was retrieved from it:
- <code>
- var mock = new Mock<IWarehouse>();
- // exercise mock
- //...
- // Will throw if the test code didn't retrieve the IsClosed property.
- mock.VerifyGet(warehouse => warehouse.IsClosed);
- </code>
- </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="expression">Expression to verify.</param><typeparam name="TProperty">
- Type of the property to verify. Typically omitted as it can
- be inferred from the expression's return type.
- </typeparam>
- </member>
- <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},Moq.Times)">
- <summary>
- Verifies that a property was read on the mock.
- </summary><exception cref="T:Moq.MockException">
- The invocation was not call the times specified by
- <paramref name="times"/>.
- </exception><param name="times">The number of times a method is allowed to be called.</param><param name="expression">Expression to verify.</param><typeparam name="TProperty">
- Type of the property to verify. Typically omitted as it can
- be inferred from the expression's return type.
- </typeparam>
- </member>
- <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.String)">
- <summary>
- Verifies that a property was read on the mock, specifying a failure
- error message.
- </summary><example group="verification">
- This example assumes that the mock has been used,
- and later we want to verify that a given property
- was retrieved from it:
- <code>
- var mock = new Mock<IWarehouse>();
- // exercise mock
- //...
- // Will throw if the test code didn't retrieve the IsClosed property.
- mock.VerifyGet(warehouse => warehouse.IsClosed);
- </code>
- </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="expression">Expression to verify.</param><param name="failMessage">Message to show if verification fails.</param><typeparam name="TProperty">
- Type of the property to verify. Typically omitted as it can
- be inferred from the expression's return type.
- </typeparam>
- </member>
- <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},Moq.Times,System.String)">
- <summary>
- Verifies that a property was read on the mock, specifying a failure
- error message.
- </summary><exception cref="T:Moq.MockException">
- The invocation was not call the times specified by
- <paramref name="times"/>.
- </exception><param name="times">The number of times a method is allowed to be called.</param><param name="expression">Expression to verify.</param><param name="failMessage">Message to show if verification fails.</param><typeparam name="TProperty">
- Type of the property to verify. Typically omitted as it can
- be inferred from the expression's return type.
- </typeparam>
- </member>
- <member name="M:Moq.Mock`1.VerifySet(System.Action{`0})">
- <summary>
- Verifies that a property was set on the mock.
- </summary><example group="verification">
- This example assumes that the mock has been used,
- and later we want to verify that a given property
- was set on it:
- <code>
- var mock = new Mock<IWarehouse>();
- // exercise mock
- //...
- // Will throw if the test code didn't set the IsClosed property.
- mock.VerifySet(warehouse => warehouse.IsClosed = true);
- </code>
- </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="setterExpression">Expression to verify.</param>
- </member>
- <member name="M:Moq.Mock`1.VerifySet(System.Action{`0},Moq.Times)">
- <summary>
- Verifies that a property was set on the mock.
- </summary><exception cref="T:Moq.MockException">
- The invocation was not call the times specified by
- <paramref name="times"/>.
- </exception><param name="times">The number of times a method is allowed to be called.</param><param name="setterExpression">Expression to verify.</param>
- </member>
- <member name="M:Moq.Mock`1.VerifySet(System.Action{`0},System.String)">
- <summary>
- Verifies that a property was set on the mock, specifying
- a failure message.
- </summary><example group="verification">
- This example assumes that the mock has been used,
- and later we want to verify that a given property
- was set on it:
- <code>
- var mock = new Mock<IWarehouse>();
- // exercise mock
- //...
- // Will throw if the test code didn't set the IsClosed property.
- mock.VerifySet(warehouse => warehouse.IsClosed = true, "Warehouse should always be closed after the action");
- </code>
- </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="setterExpression">Expression to verify.</param><param name="failMessage">Message to show if verification fails.</param>
- </member>
- <member name="M:Moq.Mock`1.VerifySet(System.Action{`0},Moq.Times,System.String)">
- <summary>
- Verifies that a property was set on the mock, specifying
- a failure message.
- </summary><exception cref="T:Moq.MockException">
- The invocation was not call the times specified by
- <paramref name="times"/>.
- </exception><param name="times">The number of times a method is allowed to be called.</param><param name="setterExpression">Expression to verify.</param><param name="failMessage">Message to show if verification fails.</param>
- </member>
- <member name="M:Moq.Mock`1.Raise(System.Action{`0},System.EventArgs)">
- <summary>
- Raises the event referenced in <paramref name="eventExpression"/> using
- the given <paramref name="args"/> argument.
- </summary><exception cref="T:System.ArgumentException">
- The <paramref name="args"/> argument is
- invalid for the target event invocation, or the <paramref name="eventExpression"/> is
- not an event attach or detach expression.
- </exception><example>
- The following example shows how to raise a <see cref="E:System.ComponentModel.INotifyPropertyChanged.PropertyChanged"/> event:
- <code>
- var mock = new Mock<IViewModel>();
-
- mock.Raise(x => x.PropertyChanged -= null, new PropertyChangedEventArgs("Name"));
- </code>
- </example><example>
- This example shows how to invoke an event with a custom event arguments
- class in a view that will cause its corresponding presenter to
- react by changing its state:
- <code>
- var mockView = new Mock<IOrdersView>();
- var presenter = new OrdersPresenter(mockView.Object);
-
- // Check that the presenter has no selection by default
- Assert.Null(presenter.SelectedOrder);
-
- // Raise the event with a specific arguments data
- mockView.Raise(v => v.SelectionChanged += null, new OrderEventArgs { Order = new Order("moq", 500) });
-
- // Now the presenter reacted to the event, and we have a selected order
- Assert.NotNull(presenter.SelectedOrder);
- Assert.Equal("moq", presenter.SelectedOrder.ProductName);
- </code>
- </example>
- </member>
- <member name="M:Moq.Mock`1.Raise(System.Action{`0},System.Object[])">
- <summary>
- Raises the event referenced in <paramref name="eventExpression"/> using
- the given <paramref name="args"/> argument for a non-EventHandler typed event.
- </summary><exception cref="T:System.ArgumentException">
- The <paramref name="args"/> arguments are
- invalid for the target event invocation, or the <paramref name="eventExpression"/> is
- not an event attach or detach expression.
- </exception><example>
- The following example shows how to raise a custom event that does not adhere to
- the standard <c>EventHandler</c>:
- <code>
- var mock = new Mock<IViewModel>();
-
- mock.Raise(x => x.MyEvent -= null, "Name", bool, 25);
- </code>
- </example>
- </member>
- <member name="M:Moq.Mock`1.Expect(System.Linq.Expressions.Expression{System.Action{`0}})">
- <summary>
- Obsolete.
- </summary>
- </member>
- <member name="M:Moq.Mock`1.Expect``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
- <summary>
- Obsolete.
- </summary>
- </member>
- <member name="M:Moq.Mock`1.ExpectGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
- <summary>
- Obsolete.
- </summary>
- </member>
- <member name="M:Moq.Mock`1.ExpectSet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
- <summary>
- Obsolete.
- </summary>
- </member>
- <member name="M:Moq.Mock`1.ExpectSet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},``0)">
- <summary>
- Obsolete.
- </summary>
- </member>
- <member name="P:Moq.Mock`1.Object">
- <summary>
- Exposes the mocked object instance.
- </summary>
- </member>
- <member name="T:Moq.Language.ISetupConditionResult`1">
- <summary>
- Implements the fluent API.
- </summary>
- </member>
- <member name="M:Moq.Language.ISetupConditionResult`1.Setup(System.Linq.Expressions.Expression{System.Action{`0}})">
- <summary>
- The expectation will be considered only in the former condition.
- </summary>
- <param name="expression"></param>
- <returns></returns>
- </member>
- <member name="M:Moq.Language.ISetupConditionResult`1.Setup``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
- <summary>
- The expectation will be considered only in the former condition.
- </summary>
- <typeparam name="TResult"></typeparam>
- <param name="expression"></param>
- <returns></returns>
- </member>
- <member name="M:Moq.Language.ISetupConditionResult`1.SetupGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
- <summary>
- Setups the get.
- </summary>
- <typeparam name="TProperty">The type of the property.</typeparam>
- <param name="expression">The expression.</param>
- <returns></returns>
- </member>
- <member name="M:Moq.Language.ISetupConditionResult`1.SetupSet``1(System.Action{`0})">
- <summary>
- Setups the set.
- </summary>
- <typeparam name="TProperty">The type of the property.</typeparam>
- <param name="setterExpression">The setter expression.</param>
- <returns></returns>
- </member>
- <member name="M:Moq.Language.ISetupConditionResult`1.SetupSet(System.Action{`0})">
- <summary>
- Setups the set.
- </summary>
- <param name="setterExpression">The setter expression.</param>
- <returns></returns>
- </member>
- <member name="T:Moq.DefaultValue">
- <summary>
- Determines the way default values are generated
- calculated for loose mocks.
- </summary>
- </member>
- <member name="F:Moq.DefaultValue.Empty">
- <summary>
- Default behavior, which generates empty values for
- value types (i.e. default(int)), empty array and
- enumerables, and nulls for all other reference types.
- </summary>
- </member>
- <member name="F:Moq.DefaultValue.Mock">
- <summary>
- Whenever the default value generated by <see cref="F:Moq.DefaultValue.Empty"/>
- is null, replaces this value with a mock (if the type
- can be mocked).
- </summary>
- <remarks>
- For sealed classes, a null value will be generated.
- </remarks>
- </member>
- <member name="T:Moq.EmptyDefaultValueProvider">
- <summary>
- A <see cref="T:Moq.IDefaultValueProvider"/> that returns an empty default value
- for invocations that do not have setups or return values, with loose mocks.
- This is the default behavior for a mock.
- </summary>
- </member>
- <member name="T:Moq.IDefaultValueProvider">
- <summary>
- Interface to be implemented by classes that determine the
- default value of non-expected invocations.
- </summary>
- </member>
- <member name="M:Moq.IDefaultValueProvider.DefineDefault``1(``0)">
- <summary>
- Defines the default value to return in all the methods returning <typeparamref name="T"/>.
- </summary><typeparam name="T">The type of the return value.</typeparam><param name="value">The value to set as default.</param>
- </member>
- <member name="M:Moq.IDefaultValueProvider.ProvideDefault(System.Reflection.MethodInfo)">
- <summary>
- Provides a value for the given member and arguments.
- </summary><param name="member">
- The member to provide a default value for.
- </param>
- </member>
- <member name="T:Moq.Evaluator">
- <summary>
- Provides partial evaluation of subtrees, whenever they can be evaluated locally.
- </summary>
- <author>Matt Warren: http://blogs.msdn.com/mattwar</author>
- <contributor>Documented by InSTEDD: http://www.instedd.org</contributor>
- </member>
- <member name="M:Moq.Evaluator.PartialEval(System.Linq.Expressions.Expression,System.Func{System.Linq.Expressions.Expression,System.Boolean})">
- <summary>
- Performs evaluation and replacement of independent sub-trees
- </summary>
- <param name="expression">The root of the expression tree.</param>
- <param name="fnCanBeEvaluated">A function that decides whether a given expression
- node can be part of the local function.</param>
- <returns>A new tree with sub-trees evaluated and replaced.</returns>
- </member>
- <member name="M:Moq.Evaluator.PartialEval(System.Linq.Expressions.Expression)">
- <summary>
- Performs evaluation and replacement of independent sub-trees
- </summary>
- <param name="expression">The root of the expression tree.</param>
- <returns>A new tree with sub-trees evaluated and replaced.</returns>
- </member>
- <member name="T:Moq.Evaluator.SubtreeEvaluator">
- <summary>
- Evaluates and replaces sub-trees when first candidate is reached (top-down)
- </summary>
- </member>
- <member name="T:Moq.Evaluator.Nominator">
- <summary>
- Performs bottom-up analysis to determine which nodes can possibly
- be part of an evaluated sub-tree.
- </summary>
- </member>
- <member name="M:Moq.ExpressionExtensions.ToLambda(System.Linq.Expressions.Expression)">
- <summary>
- Casts the expression to a lambda expression, removing
- a cast if there's any.
- </summary>
- </member>
- <member name="M:Moq.ExpressionExtensions.ToMethodCall(System.Linq.Expressions.LambdaExpression)">
- <summary>
- Casts the body of the lambda expression to a <see cref="T:System.Linq.Expressions.MethodCallExpression"/>.
- </summary>
- <exception cref="T:System.ArgumentException">If the body is not a method call.</exception>
- </member>
- <member name="M:Moq.ExpressionExtensions.ToPropertyInfo(System.Linq.Expressions.LambdaExpression)">
- <summary>
- Converts the body of the lambda expression into the <see cref="T:System.Reflection.PropertyInfo"/> referenced by it.
- </summary>
- </member>
- <member name="M:Moq.ExpressionExtensions.IsProperty(System.Linq.Expressions.LambdaExpression)">
- <summary>
- Checks whether the body of the lambda expression is a property access.
- </summary>
- </member>
- <member name="M:Moq.ExpressionExtensions.IsProperty(System.Linq.Expressions.Expression)">
- <summary>
- Checks whether the expression is a property access.
- </summary>
- </member>
- <member name="M:Moq.ExpressionExtensions.IsPropertyIndexer(System.Linq.Expressions.LambdaExpression)">
- <summary>
- Checks whether the body of the lambda expression is a property indexer, which is true
- when the expression is an <see cref="T:System.Linq.Expressions.MethodCallExpression"/> whose
- <see cref="P:System.Linq.Expressions.MethodCallExpression.Method"/> has <see cref="P:System.Reflection.MethodBase.IsSpecialName"/>
- equal to <see langword="true"/>.
- </summary>
- </member>
- <member name="M:Moq.ExpressionExtensions.IsPropertyIndexer(System.Linq.Expressions.Expression)">
- <summary>
- Checks whether the expression is a property indexer, which is true
- when the expression is an <see cref="T:System.Linq.Expressions.MethodCallExpression"/> whose
- <see cref="P:System.Linq.Expressions.MethodCallExpression.Method"/> has <see cref="P:System.Reflection.MethodBase.IsSpecialName"/>
- equal to <see langword="true"/>.
- </summary>
- </member>
- <member name="M:Moq.ExpressionExtensions.CastTo``1(System.Linq.Expressions.Expression)">
- <summary>
- Creates an expression that casts the given expression to the <typeparamref name="T"/>
- type.
- </summary>
- </member>
- <member name="M:Moq.ExpressionExtensions.ToStringFixed(System.Linq.Expressions.Expression)">
- <devdoc>
- TODO: remove this code when https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=331583
- is fixed.
- </devdoc>
- </member>
- <member name="T:Moq.ExpressionStringBuilder">
- <summary>
- The intention of <see cref="T:Moq.ExpressionStringBuilder"/> is to create a more readable
- string representation for the failure message.
- </summary>
- </member>
- <member name="T:Moq.FluentMockContext">
- <summary>
- Tracks the current mock and interception context.
- </summary>
- </member>
- <member name="P:Moq.FluentMockContext.IsActive">
- <summary>
- Having an active fluent mock context means that the invocation
- is being performed in "trial" mode, just to gather the
- target method and arguments that need to be matched later
- when the actual invocation is made.
- </summary>
- </member>
- <member name="M:Moq.Guard.NotNull``1(System.Linq.Expressions.Expression{System.Func{``0}},``0)">
- <summary>
- Ensures the given <paramref name="value"/> is not null.
- Throws <see cref="T:System.ArgumentNullException"/> otherwise.
- </summary>
- </member>
- <member name="M:Moq.Guard.NotNullOrEmpty(System.Linq.Expressions.Expression{System.Func{System.String}},System.String)">
- <summary>
- Ensures the given string <paramref name="value"/> is not null or empty.
- Throws <see cref="T:System.ArgumentNullException"/> in the first case, or
- <see cref="T:System.ArgumentException"/> in the latter.
- </summary>
- </member>
- <member name="M:Moq.Guard.NotOutOfRangeInclusive``1(System.Linq.Expressions.Expression{System.Func{``0}},``0,``0,``0)">
- <summary>
- Checks an argument to ensure it is in the specified range including the edges.
- </summary>
- <typeparam name="T">Type of the argument to check, it must be an <see cref="T:System.IComparable"/> type.
- </typeparam>
- <param name="reference">The expression containing the name of the argument.</param>
- <param name="value">The argument value to check.</param>
- <param name="from">The minimun allowed value for the argument.</param>
- <param name="to">The maximun allowed value for the argument.</param>
- </member>
- <member name="M:Moq.Guard.NotOutOfRangeExclusive``1(System.Linq.Expressions.Expression{System.Func{``0}},``0,``0,``0)">
- <summary>
- Checks an argument to ensure it is in the specified range excluding the edges.
- </summary>
- <typeparam name="T">Type of the argument to check, it must be an <see cref="T:System.IComparable"/> type.
- </typeparam>
- <param name="reference">The expression containing the name of the argument.</param>
- <param name="value">The argument value to check.</param>
- <param name="from">The minimun allowed value for the argument.</param>
- <param name="to">The maximun allowed value for the argument.</param>
- </member>
- <member name="T:Moq.IMocked`1">
- <summary>
- Implemented by all generated mock object instances.
- </summary>
- </member>
- <member name="T:Moq.IMocked">
- <summary>
- Implemented by all generated mock object instances.
- </summary>
- </member>
- <member name="P:Moq.IMocked.Mock">
- <summary>
- Reference the Mock that contains this as the <c>mock.Object</c> value.
- </summary>
- </member>
- <member name="P:Moq.IMocked`1.Mock">
- <summary>
- Reference the Mock that contains this as the <c>mock.Object</c> value.
- </summary>
- </member>
- <member name="T:Moq.Interceptor">
- <summary>
- Implements the actual interception and method invocation for
- all mocks.
- </summary>
- </member>
- <member name="M:Moq.Interceptor.GetEventFromName(System.String)">
- <summary>
- Get an eventInfo for a given event name. Search type ancestors depth first if necessary.
- </summary>
- <param name="eventName">Name of the event, with the set_ or get_ prefix already removed</param>
- </member>
- <member name="M:Moq.Interceptor.GetAncestorTypes(System.Type)">
- <summary>
- Given a type return all of its ancestors, both types and interfaces.
- </summary>
- <param name="initialType">The type to find immediate ancestors of</param>
- </member>
- <member name="T:Moq.It">
- <summary>
- Allows the specification of a matching condition for an
- argument in a method invocation, rather than a specific
- argument value. "It" refers to the argument being matched.
- </summary><remarks>
- This class allows the setup to match a method invocation
- with an arbitrary value, with a value in a specified range, or
- even one that matches a given predicate.
- </remarks>
- </member>
- <member name="M:Moq.It.IsAny``1">
- <summary>
- Matches any value of the given <typeparamref name="TValue"/> type.
- </summary><remarks>
- Typically used when the actual argument value for a method
- call is not relevant.
- </remarks><example>
- <code>
- // Throws an exception for a call to Remove with any string value.
- mock.Setup(x => x.Remove(It.IsAny<string>())).Throws(new InvalidOperationException());
- </code>
- </example><typeparam name="TValue">Type of the value.</typeparam>
- </member>
- <member name="M:Moq.It.Is``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">
- <summary>
- Matches any value that satisfies the given predicate.
- </summary><typeparam name="TValue">Type of the argument to check.</typeparam><param name="match">The predicate used to match the method argument.</param><remarks>
- Allows the specification of a predicate to perform matching
- of method call arguments.
- </remarks><example>
- This example shows how to return the value <c>1</c> whenever the argument to the
- <c>Do</c> method is an even number.
- <code>
- mock.Setup(x => x.Do(It.Is<int>(i => i % 2 == 0)))
- .Returns(1);
- </code>
- This example shows how to throw an exception if the argument to the
- method is a negative number:
- <code>
- mock.Setup(x => x.GetUser(It.Is<int>(i => i < 0)))
- .Throws(new ArgumentException());
- </code>
- </example>
- </member>
- <member name="M:Moq.It.IsInRange``1(``0,``0,Moq.Range)">
- <summary>
- Matches any value that is in the range specified.
- </summary><typeparam name="TValue">Type of the argument to check.</typeparam><param name="from">The lower bound of the range.</param><param name="to">The upper bound of the range.</param><param name="rangeKind">
- The kind of range. See <see cref="T:Moq.Range"/>.
- </param><example>
- The following example shows how to expect a method call
- with an integer argument within the 0..100 range.
- <code>
- mock.Setup(x => x.HasInventory(
- It.IsAny<string>(),
- It.IsInRange(0, 100, Range.Inclusive)))
- .Returns(false);
- </code>
- </example>
- </member>
- <member name="M:Moq.It.IsRegex(System.String)">
- <summary>
- Matches a string argument if it matches the given regular expression pattern.
- </summary><param name="regex">The pattern to use to match the string argument value.</param><example>
- The following example shows how to expect a call to a method where the
- string argument matches the given regular expression:
- <code>
- mock.Setup(x => x.Check(It.IsRegex("[a-z]+"))).Returns(1);
- </code>
- </example>
- </member>
- <member name="M:Moq.It.IsRegex(System.String,System.Text.RegularExpressions.RegexOptions)">
- <summary>
- Matches a string argument if it matches the given regular expression pattern.
- </summary><param name="regex">The pattern to use to match the string argument value.</param><param name="options">The options used to interpret the pattern.</param><example>
- The following example shows how to expect a call to a method where the
- string argument matches the given regular expression, in a case insensitive way:
- <code>
- mock.Setup(x => x.Check(It.IsRegex("[a-z]+", RegexOptions.IgnoreCase))).Returns(1);
- </code>
- </example>
- </member>
- <member name="T:Moq.Language.Flow.IReturnsResult`1">
- <summary>
- Implements the fluent API.
- </summary>
- </member>
- <member name="T:Moq.Language.ICallback">
- <summary>
- Defines the <c>Callback</c> verb and overloads.
- </summary>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``2(System.Action{``0,``1})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2) => Console.WriteLine(arg1 + arg2));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``3(System.Action{``0,``1,``2})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3) => Console.WriteLine(arg1 + arg2 + arg3));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``4(System.Action{``0,``1,``2,``3})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4) => Console.WriteLine(arg1 + arg2 + arg3 + arg4));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``5(System.Action{``0,``1,``2,``3,``4})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``6(System.Action{``0,``1,``2,``3,``4,``5})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``7(System.Action{``0,``1,``2,``3,``4,``5,``6})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``8(System.Action{``0,``1,``2,``3,``4,``5,``6,``7})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``9(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``10(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``11(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``12(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``13(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``14(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``15(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,``14})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
- <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``16(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,``14,``15})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
- <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>
- <typeparam name="T16">The type of the sixteenth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15, string arg16) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback(System.Action)">
- <summary>
- Specifies a callback to invoke when the method is called.
- </summary>
- <param name="action">The callback method to invoke.</param>
- <example>
- The following example specifies a callback to set a boolean
- value that can be used later:
- <code>
- var called = false;
- mock.Setup(x => x.Execute())
- .Callback(() => called = true);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback.Callback``1(System.Action{``0})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T">The argument type of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <example>
- Invokes the given callback with the concrete invocation argument value.
- <para>
- Notice how the specific string argument is retrieved by simply declaring
- it as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(It.IsAny<string>()))
- .Callback((string command) => Console.WriteLine(command));
- </code>
- </example>
- </member>
- <member name="T:Moq.Language.IOccurrence">
- <summary>
- Defines occurrence members to constraint setups.
- </summary>
- </member>
- <member name="M:Moq.Language.IOccurrence.AtMostOnce">
- <summary>
- The expected invocation can happen at most once.
- </summary>
- <example>
- <code>
- var mock = new Mock<ICommand>();
- mock.Setup(foo => foo.Execute("ping"))
- .AtMostOnce();
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IOccurrence.AtMost(System.Int32)">
- <summary>
- The expected invocation can happen at most specified number of times.
- </summary>
- <param name="callCount">The number of times to accept calls.</param>
- <example>
- <code>
- var mock = new Mock<ICommand>();
- mock.Setup(foo => foo.Execute("ping"))
- .AtMost( 5 );
- </code>
- </example>
- </member>
- <member name="T:Moq.Language.IRaise`1">
- <summary>
- Defines the <c>Raises</c> verb.
- </summary>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)">
- <summary>
- Specifies the event that will be raised
- when the setup is met.
- </summary>
- <param name="eventExpression">An expression that represents an event attach or detach action.</param>
- <param name="args">The event arguments to pass for the raised event.</param>
- <example>
- The following example shows how to raise an event when
- the setup is met:
- <code>
- var mock = new Mock<IContainer>();
-
- mock.Setup(add => add.Add(It.IsAny<string>(), It.IsAny<object>()))
- .Raises(add => add.Added += null, EventArgs.Empty);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.Func{System.EventArgs})">
- <summary>
- Specifies the event that will be raised
- when the setup is matched.
- </summary>
- <param name="eventExpression">An expression that represents an event attach or detach action.</param>
- <param name="func">A function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.Object[])">
- <summary>
- Specifies the custom event that will be raised
- when the setup is matched.
- </summary>
- <param name="eventExpression">An expression that represents an event attach or detach action.</param>
- <param name="args">The arguments to pass to the custom delegate (non EventHandler-compatible).</param>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``1(System.Action{`0},System.Func{``0,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``2(System.Action{`0},System.Func{``0,``1,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``3(System.Action{`0},System.Func{``0,``1,``2,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``4(System.Action{`0},System.Func{``0,``1,``2,``3,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``5(System.Action{`0},System.Func{``0,``1,``2,``3,``4,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``6(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``7(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``8(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``9(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``10(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``11(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>
- <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``12(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>
- <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>
- <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``13(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>
- <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>
- <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``14(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>
- <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>
- <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument received by the expected invocation.</typeparam>
- <typeparam name="T14">The type of the fourteenth argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``15(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,``14,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>
- <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>
- <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument received by the expected invocation.</typeparam>
- <typeparam name="T14">The type of the fourteenth argument received by the expected invocation.</typeparam>
- <typeparam name="T15">The type of the fifteenth argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="M:Moq.Language.IRaise`1.Raises``16(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,``14,``15,System.EventArgs})">
- <summary>
- Specifies the event that will be raised when the setup is matched.
- </summary>
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
- to pass when raising the event.</param>
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>
- <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>
- <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument received by the expected invocation.</typeparam>
- <typeparam name="T14">The type of the fourteenth argument received by the expected invocation.</typeparam>
- <typeparam name="T15">The type of the fifteenth argument received by the expected invocation.</typeparam>
- <typeparam name="T16">The type of the sixteenth argument received by the expected invocation.</typeparam>
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
- </member>
- <member name="T:Moq.Language.IVerifies">
- <summary>
- Defines the <c>Verifiable</c> verb.
- </summary>
- </member>
- <member name="M:Moq.Language.IVerifies.Verifiable">
- <summary>
- Marks the expectation as verifiable, meaning that a call
- to <see cref="M:Moq.Mock.Verify"/> will check if this particular
- expectation was met.
- </summary>
- <example>
- The following example marks the expectation as verifiable:
- <code>
- mock.Expect(x => x.Execute("ping"))
- .Returns(true)
- .Verifiable();
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IVerifies.Verifiable(System.String)">
- <summary>
- Marks the expectation as verifiable, meaning that a call
- to <see cref="M:Moq.Mock.Verify"/> will check if this particular
- expectation was met, and specifies a message for failures.
- </summary>
- <example>
- The following example marks the expectation as verifiable:
- <code>
- mock.Expect(x => x.Execute("ping"))
- .Returns(true)
- .Verifiable("Ping should be executed always!");
- </code>
- </example>
- </member>
- <member name="T:Moq.Language.Flow.ISetup`1">
- <summary>
- Implements the fluent API.
- </summary>
- </member>
- <member name="T:Moq.Language.Flow.ICallbackResult">
- <summary>
- Implements the fluent API.
- </summary>
- </member>
- <member name="T:Moq.Language.IThrows">
- <summary>
- Defines the <c>Throws</c> verb.
- </summary>
- </member>
- <member name="M:Moq.Language.IThrows.Throws(System.Exception)">
- <summary>
- Specifies the exception to throw when the method is invoked.
- </summary>
- <param name="exception">Exception instance to throw.</param>
- <example>
- This example shows how to throw an exception when the method is
- invoked with an empty string argument:
- <code>
- mock.Setup(x => x.Execute(""))
- .Throws(new ArgumentException());
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IThrows.Throws``1">
- <summary>
- Specifies the type of exception to throw when the method is invoked.
- </summary>
- <typeparam name="TException">Type of exception to instantiate and throw when the setup is matched.</typeparam>
- <example>
- This example shows how to throw an exception when the method is
- invoked with an empty string argument:
- <code>
- mock.Setup(x => x.Execute(""))
- .Throws<ArgumentException>();
- </code>
- </example>
- </member>
- <member name="T:Moq.Language.Flow.IThrowsResult">
- <summary>
- Implements the fluent API.
- </summary>
- </member>
- <member name="T:Moq.Language.Flow.ISetup`2">
- <summary>
- Implements the fluent API.
- </summary>
- </member>
- <member name="T:Moq.Language.ICallback`2">
- <summary>
- Defines the <c>Callback</c> verb and overloads for callbacks on
- setups that return a value.
- </summary>
- <typeparam name="TMock">Mocked type.</typeparam>
- <typeparam name="TResult">Type of the return value of the setup.</typeparam>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``2(System.Action{``0,``1})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2) => Console.WriteLine(arg1 + arg2));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``3(System.Action{``0,``1,``2})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3) => Console.WriteLine(arg1 + arg2 + arg3));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``4(System.Action{``0,``1,``2,``3})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4) => Console.WriteLine(arg1 + arg2 + arg3 + arg4));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``5(System.Action{``0,``1,``2,``3,``4})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4, arg5) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``6(System.Action{``0,``1,``2,``3,``4,``5})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``7(System.Action{``0,``1,``2,``3,``4,``5,``6})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``8(System.Action{``0,``1,``2,``3,``4,``5,``6,``7})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``9(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``10(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``11(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``12(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``13(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``14(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``15(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,``14})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
- <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``16(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,``14,``15})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original
- arguments.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
- <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>
- <typeparam name="T16">The type of the sixteenth argument of the invoked method.</typeparam>
- <param name="action">The callback method to invoke.</param>
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
- <example>
- Invokes the given callback with the concrete invocation arguments values.
- <para>
- Notice how the specific arguments are retrieved by simply declaring
- them as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>(),
- It.IsAny<string>()))
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16));
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback(System.Action)">
- <summary>
- Specifies a callback to invoke when the method is called.
- </summary>
- <param name="action">The callback method to invoke.</param>
- <example>
- The following example specifies a callback to set a boolean value that can be used later:
- <code>
- var called = false;
- mock.Setup(x => x.Execute())
- .Callback(() => called = true)
- .Returns(true);
- </code>
- Note that in the case of value-returning methods, after the <c>Callback</c>
- call you can still specify the return value.
- </example>
- </member>
- <member name="M:Moq.Language.ICallback`2.Callback``1(System.Action{``0})">
- <summary>
- Specifies a callback to invoke when the method is called that receives the original arguments.
- </summary>
- <typeparam name="T">The type of the argument of the invoked method.</typeparam>
- <param name="action">Callback method to invoke.</param>
- <example>
- Invokes the given callback with the concrete invocation argument value.
- <para>
- Notice how the specific string argument is retrieved by simply declaring
- it as part of the lambda expression for the callback:
- </para>
- <code>
- mock.Setup(x => x.Execute(It.IsAny<string>()))
- .Callback(command => Console.WriteLine(command))
- .Returns(true);
- </code>
- </example>
- </member>
- <member name="T:Moq.Language.Flow.IReturnsThrows`2">
- <summary>
- Implements the fluent API.
- </summary>
- </member>
- <member name="T:Moq.Language.IReturns`2">
- <summary>
- Defines the <c>Returns</c> verb.
- </summary>
- <typeparam name="TMock">Mocked type.</typeparam>
- <typeparam name="TResult">Type of the return value from the expression.</typeparam>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``2(System.Func{``0,``1,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2) => arg1 + arg2);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``3(System.Func{``0,``1,``2,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3) => arg1 + arg2 + arg3);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``4(System.Func{``0,``1,``2,``3,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4) => arg1 + arg2 + arg3 + arg4);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``5(System.Func{``0,``1,``2,``3,``4,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5) => arg1 + arg2 + arg3 + arg4 + arg5);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``6(System.Func{``0,``1,``2,``3,``4,``5,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``7(System.Func{``0,``1,``2,``3,``4,``5,``6,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``8(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``9(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``10(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``11(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``12(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``13(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``14(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``15(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,``14,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
- <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``16(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,``14,``15,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
- <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>
- <typeparam name="T16">The type of the sixteenth argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
- <example>
- <para>
- The return value is calculated from the value of the actual method invocation arguments.
- Notice how the arguments are retrieved by simply declaring them as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>(),
- It.IsAny<int>()))
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15, string arg16) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns(`1)">
- <summary>
- Specifies the value to return.
- </summary>
- <param name="value">The value to return, or <see langword="null"/>.</param>
- <example>
- Return a <c>true</c> value from the method call:
- <code>
- mock.Setup(x => x.Execute("ping"))
- .Returns(true);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns(System.Func{`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method.
- </summary>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <example group="returns">
- Return a calculated value when the method is called:
- <code>
- mock.Setup(x => x.Execute("ping"))
- .Returns(() => returnValues[0]);
- </code>
- The lambda expression to retrieve the return value is lazy-executed,
- meaning that its value may change depending on the moment the method
- is executed and the value the <c>returnValues</c> array has at
- that moment.
- </example>
- </member>
- <member name="M:Moq.Language.IReturns`2.Returns``1(System.Func{``0,`1})">
- <summary>
- Specifies a function that will calculate the value to return from the method,
- retrieving the arguments for the invocation.
- </summary>
- <typeparam name="T">The type of the argument of the invoked method.</typeparam>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <example group="returns">
- Return a calculated value which is evaluated lazily at the time of the invocation.
- <para>
- The lookup list can change between invocations and the setup
- will return different values accordingly. Also, notice how the specific
- string argument is retrieved by simply declaring it as part of the lambda
- expression:
- </para>
- <code>
- mock.Setup(x => x.Execute(It.IsAny<string>()))
- .Returns((string command) => returnValues[command]);
- </code>
- </example>
- </member>
- <member name="T:Moq.Language.Flow.ISetupGetter`2">
- <summary>
- Implements the fluent API.
- </summary>
- </member>
- <member name="T:Moq.Language.ICallbackGetter`2">
- <summary>
- Defines the <c>Callback</c> verb for property getter setups.
- </summary>
- <seealso cref="M:Moq.Mock`1.SetupGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})"/>
- <typeparam name="TMock">Mocked type.</typeparam>
- <typeparam name="TProperty">Type of the property.</typeparam>
- </member>
- <member name="M:Moq.Language.ICallbackGetter`2.Callback(System.Action)">
- <summary>
- Specifies a callback to invoke when the property is retrieved.
- </summary>
- <param name="action">Callback method to invoke.</param>
- <example>
- Invokes the given callback with the property value being set.
- <code>
- mock.SetupGet(x => x.Suspended)
- .Callback(() => called = true)
- .Returns(true);
- </code>
- </example>
- </member>
- <member name="T:Moq.Language.Flow.IReturnsThrowsGetter`2">
- <summary>
- Implements the fluent API.
- </summary>
- </member>
- <member name="T:Moq.Language.IReturnsGetter`2">
- <summary>
- Defines the <c>Returns</c> verb for property get setups.
- </summary>
- <typeparam name="TMock">Mocked type.</typeparam>
- <typeparam name="TProperty">Type of the property.</typeparam>
- </member>
- <member name="M:Moq.Language.IReturnsGetter`2.Returns(`1)">
- <summary>
- Specifies the value to return.
- </summary>
- <param name="value">The value to return, or <see langword="null"/>.</param>
- <example>
- Return a <c>true</c> value from the property getter call:
- <code>
- mock.SetupGet(x => x.Suspended)
- .Returns(true);
- </code>
- </example>
- </member>
- <member name="M:Moq.Language.IReturnsGetter`2.Returns(System.Func{`1})">
- <summary>
- Specifies a function that will calculate the value to return for the property.
- </summary>
- <param name="valueFunction">The function that will calculate the return value.</param>
- <example>
- Return a calculated value when the property is retrieved:
- <code>
- mock.SetupGet(x => x.Suspended)
- .Returns(() => returnValues[0]);
- </code>
- The lambda expression to retrieve the return value is lazy-executed,
- meaning that its value may change depending on the moment the property
- is retrieved and the value the <c>returnValues</c> array has at
- that moment.
- </example>
- </member>
- <member name="T:Moq.Language.Flow.ISetupSetter`2">
- <summary>
- Implements the fluent API.
- </summary>
- </member>
- <member name="T:Moq.Language.ICallbackSetter`1">
- <summary>
- Defines the <c>Callback</c> verb for property setter setups.
- </summary>
- <typeparam name="TProperty">Type of the property.</typeparam>
- </member>
- <member name="M:Moq.Language.ICallbackSetter`1.Callback(System.Action{`0})">
- <summary>
- Specifies a callback to invoke when the property is set that receives the
- property value being set.
- </summary>
- <param name="action">Callback method to invoke.</param>
- <example>
- Invokes the given callback with the property value being set.
- <code>
- mock.SetupSet(x => x.Suspended)
- .Callback((bool state) => Console.WriteLine(state));
- </code>
- </example>
- </member>
- <member name="T:Moq.Language.ISetupSequentialResult`1">
- <summary>
- Language for ReturnSequence
- </summary>
- </member>
- <member name="M:Moq.Language.ISetupSequentialResult`1.Returns(`0)">
- <summary>
- Returns value
- </summary>
- </member>
- <member name="M:Moq.Language.ISetupSequentialResult`1.Throws(System.Exception)">
- <summary>
- Throws an exception
- </summary>
- </member>
- <member name="M:Moq.Language.ISetupSequentialResult`1.Throws``1">
- <summary>
- Throws an exception
- </summary>
- </member>
- <member name="F:Moq.Linq.FluentMockVisitor.isFirst">
- <summary>
- The first method call or member access will be the
- last segment of the expression (depth-first traversal),
- which is the one we have to Setup rather than FluentMock.
- And the last one is the one we have to Mock.Get rather
- than FluentMock.
- </summary>
- </member>
- <member name="T:Moq.Linq.MockQueryable`1">
- <summary>
- A default implementation of IQueryable for use with QueryProvider
- </summary>
- </member>
- <member name="M:Moq.Linq.MockQueryable`1.#ctor(System.Linq.Expressions.MethodCallExpression)">
- <summary>
- The <paramref name="underlyingCreateMocks"/> is a
- static method that returns an IQueryable of Mocks of T which is used to
- apply the linq specification to.
- </summary>
- </member>
- <member name="T:Moq.MockRepository">
- <summary>
- Utility repository class to use to construct multiple
- mocks when consistent verification is
- desired for all of them.
- </summary>
- <remarks>
- If multiple mocks will be created during a test, passing
- the desired <see cref="T:Moq.MockBehavior"/> (if different than the
- <see cref="F:Moq.MockBehavior.Default"/> or the one
- passed to the repository constructor) and later verifying each
- mock can become repetitive and tedious.
- <para>
- This repository class helps in that scenario by providing a
- simplified creation of multiple mocks with a default
- <see cref="T:Moq.MockBehavior"/> (unless overriden by calling
- <see cref="M:Moq.MockFactory.Create``1(Moq.MockBehavior)"/>) and posterior verification.
- </para>
- </remarks>
- <example group="repository">
- The following is a straightforward example on how to
- create and automatically verify strict mocks using a <see cref="T:Moq.MockRepository"/>:
- <code>
- var repository = new MockRepository(MockBehavior.Strict);
-
- var foo = repository.Create<IFoo>();
- var bar = repository.Create<IBar>();
-
- // no need to call Verifiable() on the setup
- // as we'll be validating all of them anyway.
- foo.Setup(f => f.Do());
- bar.Setup(b => b.Redo());
-
- // exercise the mocks here
-
- repository.VerifyAll();
- // At this point all setups are already checked
- // and an optional MockException might be thrown.
- // Note also that because the mocks are strict, any invocation
- // that doesn't have a matching setup will also throw a MockException.
- </code>
- The following examples shows how to setup the repository
- to create loose mocks and later verify only verifiable setups:
- <code>
- var repository = new MockRepository(MockBehavior.Loose);
-
- var foo = repository.Create<IFoo>();
- var bar = repository.Create<IBar>();
-
- // this setup will be verified when we verify the repository
- foo.Setup(f => f.Do()).Verifiable();
-
- // this setup will NOT be verified
- foo.Setup(f => f.Calculate());
-
- // this setup will be verified when we verify the repository
- bar.Setup(b => b.Redo()).Verifiable();
-
- // exercise the mocks here
- // note that because the mocks are Loose, members
- // called in the interfaces for which no matching
- // setups exist will NOT throw exceptions,
- // and will rather return default values.
-
- repository.Verify();
- // At this point verifiable setups are already checked
- // and an optional MockException might be thrown.
- </code>
- The following examples shows how to setup the repository with a
- default strict behavior, overriding that default for a
- specific mock:
- <code>
- var repository = new MockRepository(MockBehavior.Strict);
-
- // this particular one we want loose
- var foo = repository.Create<IFoo>(MockBehavior.Loose);
- var bar = repository.Create<IBar>();
-
- // specify setups
-
- // exercise the mocks here
-
- repository.Verify();
- </code>
- </example>
- <seealso cref="T:Moq.MockBehavior"/>
- </member>
- <member name="T:Moq.MockFactory">
- <summary>
- Utility factory class to use to construct multiple
- mocks when consistent verification is
- desired for all of them.
- </summary>
- <remarks>
- If multiple mocks will be created during a test, passing
- the desired <see cref="T:Moq.MockBehavior"/> (if different than the
- <see cref="F:Moq.MockBehavior.Default"/> or the one
- passed to the factory constructor) and later verifying each
- mock can become repetitive and tedious.
- <para>
- This factory class helps in that scenario by providing a
- simplified creation of multiple mocks with a default
- <see cref="T:Moq.MockBehavior"/> (unless overriden by calling
- <see cref="M:Moq.MockFactory.Create``1(Moq.MockBehavior)"/>) and posterior verification.
- </para>
- </remarks>
- <example group="factory">
- The following is a straightforward example on how to
- create and automatically verify strict mocks using a <see cref="T:Moq.MockFactory"/>:
- <code>
- var factory = new MockFactory(MockBehavior.Strict);
-
- var foo = factory.Create<IFoo>();
- var bar = factory.Create<IBar>();
-
- // no need to call Verifiable() on the setup
- // as we'll be validating all of them anyway.
- foo.Setup(f => f.Do());
- bar.Setup(b => b.Redo());
-
- // exercise the mocks here
-
- factory.VerifyAll();
- // At this point all setups are already checked
- // and an optional MockException might be thrown.
- // Note also that because the mocks are strict, any invocation
- // that doesn't have a matching setup will also throw a MockException.
- </code>
- The following examples shows how to setup the factory
- to create loose mocks and later verify only verifiable setups:
- <code>
- var factory = new MockFactory(MockBehavior.Loose);
-
- var foo = factory.Create<IFoo>();
- var bar = factory.Create<IBar>();
-
- // this setup will be verified when we verify the factory
- foo.Setup(f => f.Do()).Verifiable();
-
- // this setup will NOT be verified
- foo.Setup(f => f.Calculate());
-
- // this setup will be verified when we verify the factory
- bar.Setup(b => b.Redo()).Verifiable();
-
- // exercise the mocks here
- // note that because the mocks are Loose, members
- // called in the interfaces for which no matching
- // setups exist will NOT throw exceptions,
- // and will rather return default values.
-
- factory.Verify();
- // At this point verifiable setups are already checked
- // and an optional MockException might be thrown.
- </code>
- The following examples shows how to setup the factory with a
- default strict behavior, overriding that default for a
- specific mock:
- <code>
- var factory = new MockFactory(MockBehavior.Strict);
-
- // this particular one we want loose
- var foo = factory.Create<IFoo>(MockBehavior.Loose);
- var bar = factory.Create<IBar>();
-
- // specify setups
-
- // exercise the mocks here
-
- factory.Verify();
- </code>
- </example>
- <seealso cref="T:Moq.MockBehavior"/>
- </member>
- <member name="M:Moq.MockFactory.#ctor(Moq.MockBehavior)">
- <summary>
- Initializes the factory with the given <paramref name="defaultBehavior"/>
- for newly created mocks from the factory.
- </summary>
- <param name="defaultBehavior">The behavior to use for mocks created
- using the <see cref="M:Moq.MockFactory.Create``1"/> factory method if not overriden
- by using the <see cref="M:Moq.MockFactory.Create``1(Moq.MockBehavior)"/> overload.</param>
- </member>
- <member name="M:Moq.MockFactory.Create``1">
- <summary>
- Creates a new mock with the default <see cref="T:Moq.MockBehavior"/>
- specified at factory construction time.
- </summary>
- <typeparam name="T">Type to mock.</typeparam>
- <returns>A new <see cref="T:Moq.Mock`1"/>.</returns>
- <example ignore="true">
- <code>
- var factory = new MockFactory(MockBehavior.Strict);
-
- var foo = factory.Create<IFoo>();
- // use mock on tests
-
- factory.VerifyAll();
- </code>
- </example>
- </member>
- <member name="M:Moq.MockFactory.Create``1(System.Object[])">
- <summary>
- Creates a new mock with the default <see cref="T:Moq.MockBehavior"/>
- specified at factory construction time and with the
- the given constructor arguments for the class.
- </summary>
- <remarks>
- The mock will try to find the best match constructor given the
- constructor arguments, and invoke that to initialize the instance.
- This applies only to classes, not interfaces.
- </remarks>
- <typeparam name="T">Type to mock.</typeparam>
- <param name="args">Constructor arguments for mocked classes.</param>
- <returns>A new <see cref="T:Moq.Mock`1"/>.</returns>
- <example ignore="true">
- <code>
- var factory = new MockFactory(MockBehavior.Default);
-
- var mock = factory.Create<MyBase>("Foo", 25, true);
- // use mock on tests
-
- factory.Verify();
- </code>
- </example>
- </member>
- <member name="M:Moq.MockFactory.Create``1(Moq.MockBehavior)">
- <summary>
- Creates a new mock with the given <paramref name="behavior"/>.
- </summary>
- <typeparam name="T">Type to mock.</typeparam>
- <param name="behavior">Behavior to use for the mock, which overrides
- the default behavior specified at factory construction time.</param>
- <returns>A new <see cref="T:Moq.Mock`1"/>.</returns>
- <example group="factory">
- The following example shows how to create a mock with a different
- behavior to that specified as the default for the factory:
- <code>
- var factory = new MockFactory(MockBehavior.Strict);
-
- var foo = factory.Create<IFoo>(MockBehavior.Loose);
- </code>
- </example>
- </member>
- <member name="M:Moq.MockFactory.Create``1(Moq.MockBehavior,System.Object[])">
- <summary>
- Creates a new mock with the given <paramref name="behavior"/>
- and with the the given constructor arguments for the class.
- </summary>
- <remarks>
- The mock will try to find the best match constructor given the
- constructor arguments, and invoke that to initialize the instance.
- This applies only to classes, not interfaces.
- </remarks>
- <typeparam name="T">Type to mock.</typeparam>
- <param name="behavior">Behavior to use for the mock, which overrides
- the default behavior specified at factory construction time.</param>
- <param name="args">Constructor arguments for mocked classes.</param>
- <returns>A new <see cref="T:Moq.Mock`1"/>.</returns>
- <example group="factory">
- The following example shows how to create a mock with a different
- behavior to that specified as the default for the factory, passing
- constructor arguments:
- <code>
- var factory = new MockFactory(MockBehavior.Default);
-
- var mock = factory.Create<MyBase>(MockBehavior.Strict, "Foo", 25, true);
- </code>
- </example>
- </member>
- <member name="M:Moq.MockFactory.CreateMock``1(Moq.MockBehavior,System.Object[])">
- <summary>
- Implements creation of a new mock within the factory.
- </summary>
- <typeparam name="T">Type to mock.</typeparam>
- <param name="behavior">The behavior for the new mock.</param>
- <param name="args">Optional arguments for the construction of the mock.</param>
- </member>
- <member name="M:Moq.MockFactory.Verify">
- <summary>
- Verifies all verifiable expectations on all mocks created
- by this factory.
- </summary>
- <seealso cref="M:Moq.Mock.Verify"/>
- <exception cref="T:Moq.MockException">One or more mocks had expectations that were not satisfied.</exception>
- </member>
- <member name="M:Moq.MockFactory.VerifyAll">
- <summary>
- Verifies all verifiable expectations on all mocks created
- by this factory.
- </summary>
- <seealso cref="M:Moq.Mock.Verify"/>
- <exception cref="T:Moq.MockException">One or more mocks had expectations that were not satisfied.</exception>
- </member>
- <member name="M:Moq.MockFactory.VerifyMocks(System.Action{Moq.Mock})">
- <summary>
- Invokes <paramref name="verifyAction"/> for each mock
- in <see cref="P:Moq.MockFactory.Mocks"/>, and accumulates the resulting
- <see cref="T:Moq.MockVerificationException"/> that might be
- thrown from the action.
- </summary>
- <param name="verifyAction">The action to execute against
- each mock.</param>
- </member>
- <member name="P:Moq.MockFactory.CallBase">
- <summary>
- Whether the base member virtual implementation will be called
- for mocked classes if no setup is matched. Defaults to <see langword="false"/>.
- </summary>
- </member>
- <member name="P:Moq.MockFactory.DefaultValue">
- <summary>
- Specifies the behavior to use when returning default values for
- unexpected invocations on loose mocks.
- </summary>
- </member>
- <member name="P:Moq.MockFactory.Mocks">
- <summary>
- Gets the mocks that have been created by this factory and
- that will get verified together.
- </summary>
- </member>
- <member name="M:Moq.MockRepository.Of``1">
- <summary>
- Access the universe of mocks of the given type, to retrieve those
- that behave according to the LINQ query specification.
- </summary>
- <typeparam name="T">The type of the mocked object to query.</typeparam>
- </member>
- <member name="M:Moq.MockRepository.Of``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">
- <summary>
- Access the universe of mocks of the given type, to retrieve those
- that behave according to the LINQ query specification.
- </summary>
- <param name="specification">The predicate with the setup expressions.</param>
- <typeparam name="T">The type of the mocked object to query.</typeparam>
- </member>
- <member name="M:Moq.MockRepository.OneOf``1">
- <summary>
- Creates an mock object of the indicated type.
- </summary>
- <typeparam name="T">The type of the mocked object.</typeparam>
- <returns>The mocked object created.</returns>
- </member>
- <member name="M:Moq.MockRepository.OneOf``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">
- <summary>
- Creates an mock object of the indicated type.
- </summary>
- <param name="specification">The predicate with the setup expressions.</param>
- <typeparam name="T">The type of the mocked object.</typeparam>
- <returns>The mocked object created.</returns>
- </member>
- <member name="M:Moq.MockRepository.CreateMockQuery``1">
- <summary>
- Creates the mock query with the underlying queriable implementation.
- </summary>
- </member>
- <member name="M:Moq.MockRepository.CreateQueryable``1">
- <summary>
- Wraps the enumerator inside a queryable.
- </summary>
- </member>
- <member name="M:Moq.MockRepository.CreateMocks``1">
- <summary>
- Method that is turned into the actual call from .Query{T}, to
- transform the queryable query into a normal enumerable query.
- This method is never used directly by consumers.
- </summary>
- </member>
- <member name="M:Moq.MockRepository.#ctor(Moq.MockBehavior)">
- <summary>
- Initializes the repository with the given <paramref name="defaultBehavior"/>
- for newly created mocks from the repository.
- </summary>
- <param name="defaultBehavior">The behavior to use for mocks created
- using the <see cref="M:Moq.MockFactory.Create``1"/> repository method if not overriden
- by using the <see cref="M:Moq.MockFactory.Create``1(Moq.MockBehavior)"/> overload.</param>
- </member>
- <member name="T:Moq.Mocks">
- <summary>
- Allows querying the universe of mocks for those that behave
- according to the LINQ query specification.
- </summary>
- <devdoc>
- This entry-point into Linq to Mocks is the only one in the root Moq
- namespace to ease discovery. But to get all the mocking extension
- methods on Object, a using of Moq.Linq must be done, so that the
- polluting of the intellisense for all objects is an explicit opt-in.
- </devdoc>
- </member>
- <member name="M:Moq.Mocks.Of``1">
- <summary>
- Access the universe of mocks of the given type, to retrieve those
- that behave according to the LINQ query specification.
- </summary>
- <typeparam name="T">The type of the mocked object to query.</typeparam>
- </member>
- <member name="M:Moq.Mocks.Of``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">
- <summary>
- Access the universe of mocks of the given type, to retrieve those
- that behave according to the LINQ query specification.
- </summary>
- <param name="specification">The predicate with the setup expressions.</param>
- <typeparam name="T">The type of the mocked object to query.</typeparam>
- </member>
- <member name="M:Moq.Mocks.OneOf``1">
- <summary>
- Creates an mock object of the indicated type.
- </summary>
- <typeparam name="T">The type of the mocked object.</typeparam>
- <returns>The mocked object created.</returns>
- </member>
- <member name="M:Moq.Mocks.OneOf``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">
- <summary>
- Creates an mock object of the indicated type.
- </summary>
- <param name="specification">The predicate with the setup expressions.</param>
- <typeparam name="T">The type of the mocked object.</typeparam>
- <returns>The mocked object created.</returns>
- </member>
- <member name="M:Moq.Mocks.CreateMockQuery``1">
- <summary>
- Creates the mock query with the underlying queriable implementation.
- </summary>
- </member>
- <member name="M:Moq.Mocks.CreateQueryable``1">
- <summary>
- Wraps the enumerator inside a queryable.
- </summary>
- </member>
- <member name="M:Moq.Mocks.CreateMocks``1">
- <summary>
- Method that is turned into the actual call from .Query{T}, to
- transform the queryable query into a normal enumerable query.
- This method is never used directly by consumers.
- </summary>
- </member>
- <member name="M:Moq.Mocks.SetPropery``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},``1)">
- <summary>
- Extension method used to support Linq-like setup properties that are not virtual but do have
- a getter and a setter, thereby allowing the use of Linq to Mocks to quickly initialize Dtos too :)
- </summary>
- </member>
- <member name="T:Moq.QueryableMockExtensions">
- <summary>
- Helper extensions that are used by the query translator.
- </summary>
- </member>
- <member name="M:Moq.QueryableMockExtensions.FluentMock``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}})">
- <summary>
- Retrieves a fluent mock from the given setup expression.
- </summary>
- </member>
- <member name="T:Moq.Match">
- <summary>
- Allows creation custom value matchers that can be used on setups and verification,
- completely replacing the built-in <see cref="T:Moq.It"/> class with your own argument
- matching rules.
- </summary><remarks>
- See also <see cref="T:Moq.Match`1"/>.
- </remarks>
- </member>
- <member name="M:Moq.Match.Matcher``1">
- <devdoc>
- Provided for the sole purpose of rendering the delegate passed to the
- matcher constructor if no friendly render lambda is provided.
- </devdoc>
- </member>
- <member name="M:Moq.Match.Create``1(System.Predicate{``0})">
- <summary>
- Initializes the match with the condition that
- will be checked in order to match invocation
- values.
- </summary><param name="condition">The condition to match against actual values.</param><remarks>
- <seealso cref="T:Moq.Match`1"/>
- </remarks>
- </member>
- <member name="M:Moq.Match.Create``1(System.Predicate{``0},System.Linq.Expressions.Expression{System.Func{``0}})">
- <!-- No matching elements were found for the following include tag --><include file="Match.xdoc" path="docs/doc[@for="Match.Create{T}(condition,renderExpression"]/*"/>
- </member>
- <member name="M:Moq.Match.SetLastMatch``1(Moq.Match{``0})">
- <devdoc>
- This method is used to set an expression as the last matcher invoked,
- which is used in the SetupSet to allow matchers in the prop = value
- delegate expression. This delegate is executed in "fluent" mode in
- order to capture the value being set, and construct the corresponding
- methodcall.
- This is also used in the MatcherFactory for each argument expression.
- This method ensures that when we execute the delegate, we
- also track the matcher that was invoked, so that when we create the
- methodcall we build the expression using it, rather than the null/default
- value returned from the actual invocation.
- </devdoc>
- </member>
- <member name="T:Moq.Match`1">
- <summary>
- Allows creation custom value matchers that can be used on setups and verification,
- completely replacing the built-in <see cref="T:Moq.It"/> class with your own argument
- matching rules.
- </summary><typeparam name="T">Type of the value to match.</typeparam><remarks>
- The argument matching is used to determine whether a concrete
- invocation in the mock matches a given setup. This
- matching mechanism is fully extensible.
- </remarks><example>
- Creating a custom matcher is straightforward. You just need to create a method
- that returns a value from a call to <see cref="M:Moq.Match.Create``1(System.Predicate{``0})"/> with
- your matching condition and optional friendly render expression:
- <code>
- [Matcher]
- public Order IsBigOrder()
- {
- return Match<Order>.Create(
- o => o.GrandTotal >= 5000,
- /* a friendly expression to render on failures */
- () => IsBigOrder());
- }
- </code>
- This method can be used in any mock setup invocation:
- <code>
- mock.Setup(m => m.Submit(IsBigOrder()).Throws<UnauthorizedAccessException>();
- </code>
- At runtime, Moq knows that the return value was a matcher (note that the method MUST be
- annotated with the [Matcher] attribute in order to determine this) and
- evaluates your predicate with the actual value passed into your predicate.
- <para>
- Another example might be a case where you want to match a lists of orders
- that contains a particular one. You might create matcher like the following:
- </para>
- <code>
- public static class Orders
- {
- [Matcher]
- public static IEnumerable<Order> Contains(Order order)
- {
- return Match<IEnumerable<Order>>.Create(orders => orders.Contains(order));
- }
- }
- </code>
- Now we can invoke this static method instead of an argument in an
- invocation:
- <code>
- var order = new Order { ... };
- var mock = new Mock<IRepository<Order>>();
-
- mock.Setup(x => x.Save(Orders.Contains(order)))
- .Throws<ArgumentException>();
- </code>
- </example>
- </member>
- <member name="T:Moq.MatcherAttribute">
- <summary>
- Marks a method as a matcher, which allows complete replacement
- of the built-in <see cref="T:Moq.It"/> class with your own argument
- matching rules.
- </summary>
- <remarks>
- <b>This feature has been deprecated in favor of the new
- and simpler <see cref="T:Moq.Match`1"/>.
- </b>
- <para>
- The argument matching is used to determine whether a concrete
- invocation in the mock matches a given setup. This
- matching mechanism is fully extensible.
- </para>
- <para>
- There are two parts of a matcher: the compiler matcher
- and the runtime matcher.
- <list type="bullet">
- <item>
- <term>Compiler matcher</term>
- <description>Used to satisfy the compiler requirements for the
- argument. Needs to be a method optionally receiving any arguments
- you might need for the matching, but with a return type that
- matches that of the argument.
- <para>
- Let's say I want to match a lists of orders that contains
- a particular one. I might create a compiler matcher like the following:
- </para>
- <code>
- public static class Orders
- {
- [Matcher]
- public static IEnumerable<Order> Contains(Order order)
- {
- return null;
- }
- }
- </code>
- Now we can invoke this static method instead of an argument in an
- invocation:
- <code>
- var order = new Order { ... };
- var mock = new Mock<IRepository<Order>>();
-
- mock.Setup(x => x.Save(Orders.Contains(order)))
- .Throws<ArgumentException>();
- </code>
- Note that the return value from the compiler matcher is irrelevant.
- This method will never be called, and is just used to satisfy the
- compiler and to signal Moq that this is not a method that we want
- to be invoked at runtime.
- </description>
- </item>
- <item>
- <term>Runtime matcher</term>
- <description>
- The runtime matcher is the one that will actually perform evaluation
- when the test is run, and is defined by convention to have the
- same signature as the compiler matcher, but where the return
- value is the first argument to the call, which contains the
- object received by the actual invocation at runtime:
- <code>
- public static bool Contains(IEnumerable<Order> orders, Order order)
- {
- return orders.Contains(order);
- }
- </code>
- At runtime, the mocked method will be invoked with a specific
- list of orders. This value will be passed to this runtime
- matcher as the first argument, while the second argument is the
- one specified in the setup (<c>x.Save(Orders.Contains(order))</c>).
- <para>
- The boolean returned determines whether the given argument has been
- matched. If all arguments to the expected method are matched, then
- the setup matches and is evaluated.
- </para>
- </description>
- </item>
- </list>
- </para>
- Using this extensible infrastructure, you can easily replace the entire
- <see cref="T:Moq.It"/> set of matchers with your own. You can also avoid the
- typical (and annoying) lengthy expressions that result when you have
- multiple arguments that use generics.
- </remarks>
- <example>
- The following is the complete example explained above:
- <code>
- public static class Orders
- {
- [Matcher]
- public static IEnumerable<Order> Contains(Order order)
- {
- return null;
- }
-
- public static bool Contains(IEnumerable<Order> orders, Order order)
- {
- return orders.Contains(order);
- }
- }
- </code>
- And the concrete test using this matcher:
- <code>
- var order = new Order { ... };
- var mock = new Mock<IRepository<Order>>();
-
- mock.Setup(x => x.Save(Orders.Contains(order)))
- .Throws<ArgumentException>();
-
- // use mock, invoke Save, and have the matcher filter.
- </code>
- </example>
- </member>
- <member name="T:Moq.Matchers.MatcherAttributeMatcher">
- <summary>
- Matcher to treat static functions as matchers.
-
- mock.Setup(x => x.StringMethod(A.MagicString()));
-
- public static class A
- {
- [Matcher]
- public static string MagicString() { return null; }
- public static bool MagicString(string arg)
- {
- return arg == "magic";
- }
- }
-
- Will succeed if: mock.Object.StringMethod("magic");
- and fail with any other call.
- </summary>
- </member>
- <member name="T:Moq.MethodCallReturn">
- <devdoc>
- We need this non-generics base class so that
- we can use <see cref="P:Moq.MethodCallReturn.HasReturnValue"/> from
- generic code.
- </devdoc>
- </member>
- <member name="T:Moq.MockBehavior">
- <summary>
- Options to customize the behavior of the mock.
- </summary>
- </member>
- <member name="F:Moq.MockBehavior.Strict">
- <summary>
- Causes the mock to always throw
- an exception for invocations that don't have a
- corresponding setup.
- </summary>
- </member>
- <member name="F:Moq.MockBehavior.Loose">
- <summary>
- Will never throw exceptions, returning default
- values when necessary (null for reference types,
- zero for value types or empty enumerables and arrays).
- </summary>
- </member>
- <member name="F:Moq.MockBehavior.Default">
- <summary>
- Default mock behavior, which equals <see cref="F:Moq.MockBehavior.Loose"/>.
- </summary>
- </member>
- <member name="T:Moq.MockDefaultValueProvider">
- <summary>
- A <see cref="T:Moq.IDefaultValueProvider"/> that returns an empty default value
- for non-mockeable types, and mocks for all other types (interfaces and
- non-sealed classes) that can be mocked.
- </summary>
- </member>
- <member name="T:Moq.MockException">
- <summary>
- Exception thrown by mocks when setups are not matched,
- the mock is not properly setup, etc.
- </summary>
- <remarks>
- A distinct exception type is provided so that exceptions
- thrown by the mock can be differentiated in tests that
- expect other exceptions to be thrown (i.e. ArgumentException).
- <para>
- Richer exception hierarchy/types are not provided as
- tests typically should <b>not</b> catch or expect exceptions
- from the mocks. These are typically the result of changes
- in the tested class or its collaborators implementation, and
- result in fixes in the mock setup so that they dissapear and
- allow the test to pass.
- </para>
- </remarks>
- </member>
- <member name="T:Moq.MockException.ExceptionReason">
- <summary>
- Made internal as it's of no use for
- consumers, but it's important for
- our own tests.
- </summary>
- </member>
- <member name="T:Moq.MockVerificationException">
- <devdoc>
- Used by the mock factory to accumulate verification
- failures.
- </devdoc>
- </member>
- <member name="T:Moq.MockSequence">
- <summary>
- Helper class to setup a full trace between many mocks
- </summary>
- </member>
- <member name="M:Moq.MockSequence.#ctor">
- <summary>
- Initialize a trace setup
- </summary>
- </member>
- <member name="P:Moq.MockSequence.Cyclic">
- <summary>
- Allow sequence to be repeated
- </summary>
- </member>
- <member name="T:Moq.MockSequenceHelper">
- <summary>
- define nice api
- </summary>
- </member>
- <member name="M:Moq.MockSequenceHelper.InSequence``1(Moq.Mock{``0},Moq.MockSequence)">
- <summary>
- Perform an expectation in the trace.
- </summary>
- </member>
- <member name="T:Moq.MockLegacyExtensions">
- <summary>
- Provides legacy API members as extensions so that
- existing code continues to compile, but new code
- doesn't see then.
- </summary>
- </member>
- <member name="M:Moq.MockLegacyExtensions.SetupSet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},``1)">
- <summary>
- Obsolete.
- </summary>
- </member>
- <member name="M:Moq.MockLegacyExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},``1)">
- <summary>
- Obsolete.
- </summary>
- </member>
- <member name="M:Moq.MockLegacyExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},``1,System.String)">
- <summary>
- Obsolete.
- </summary>
- </member>
- <member name="T:Moq.MockExtensions">
- <summary>
- Provides additional methods on mocks.
- </summary>
- <devdoc>
- Provided as extension methods as they confuse the compiler
- with the overloads taking Action.
- </devdoc>
- </member>
- <member name="M:Moq.MockExtensions.SetupSet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}})">
- <summary>
- Specifies a setup on the mocked type for a call to
- to a property setter, regardless of its value.
- </summary>
- <remarks>
- If more than one setup is set for the same property setter,
- the latest one wins and is the one that will be executed.
- </remarks>
- <typeparam name="TProperty">Type of the property. Typically omitted as it can be inferred from the expression.</typeparam>
- <typeparam name="T">Type of the mock.</typeparam>
- <param name="mock">The target mock for the setup.</param>
- <param name="expression">Lambda expression that specifies the property setter.</param>
- <example group="setups">
- <code>
- mock.SetupSet(x => x.Suspended);
- </code>
- </example>
- <devdoc>
- This method is not legacy, but must be on an extension method to avoid
- confusing the compiler with the new Action syntax.
- </devdoc>
- </member>
- <member name="M:Moq.MockExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}})">
- <summary>
- Verifies that a property has been set on the mock, regarless of its value.
- </summary>
- <example group="verification">
- This example assumes that the mock has been used,
- and later we want to verify that a given invocation
- with specific parameters was performed:
- <code>
- var mock = new Mock<IWarehouse>();
- // exercise mock
- //...
- // Will throw if the test code didn't set the IsClosed property.
- mock.VerifySet(warehouse => warehouse.IsClosed);
- </code>
- </example>
- <exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception>
- <param name="expression">Expression to verify.</param>
- <param name="mock">The mock instance.</param>
- <typeparam name="T">Mocked type.</typeparam>
- <typeparam name="TProperty">Type of the property to verify. Typically omitted as it can
- be inferred from the expression's return type.</typeparam>
- </member>
- <member name="M:Moq.MockExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String)">
- <summary>
- Verifies that a property has been set on the mock, specifying a failure
- error message.
- </summary>
- <example group="verification">
- This example assumes that the mock has been used,
- and later we want to verify that a given invocation
- with specific parameters was performed:
- <code>
- var mock = new Mock<IWarehouse>();
- // exercise mock
- //...
- // Will throw if the test code didn't set the IsClosed property.
- mock.VerifySet(warehouse => warehouse.IsClosed);
- </code>
- </example>
- <exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception>
- <param name="expression">Expression to verify.</param>
- <param name="failMessage">Message to show if verification fails.</param>
- <param name="mock">The mock instance.</param>
- <typeparam name="T">Mocked type.</typeparam>
- <typeparam name="TProperty">Type of the property to verify. Typically omitted as it can
- be inferred from the expression's return type.</typeparam>
- </member>
- <member name="M:Moq.MockExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},Moq.Times)">
- <summary>
- Verifies that a property has been set on the mock, regardless
- of the value but only the specified number of times.
- </summary>
- <example group="verification">
- This example assumes that the mock has been used,
- and later we want to verify that a given invocation
- with specific parameters was performed:
- <code>
- var mock = new Mock<IWarehouse>();
- // exercise mock
- //...
- // Will throw if the test code didn't set the IsClosed property.
- mock.VerifySet(warehouse => warehouse.IsClosed);
- </code>
- </example>
- <exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception>
- <exception cref="T:Moq.MockException">The invocation was not call the times specified by
- <paramref name="times"/>.</exception>
- <param name="mock">The mock instance.</param>
- <typeparam name="T">Mocked type.</typeparam>
- <param name="times">The number of times a method is allowed to be called.</param>
- <param name="expression">Expression to verify.</param>
- <typeparam name="TProperty">Type of the property to verify. Typically omitted as it can
- be inferred from the expression's return type.</typeparam>
- </member>
- <member name="M:Moq.MockExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},Moq.Times,System.String)">
- <summary>
- Verifies that a property has been set on the mock, regardless
- of the value but only the specified number of times, and specifying a failure
- error message.
- </summary>
- <example group="verification">
- This example assumes that the mock has been used,
- and later we want to verify that a given invocation
- with specific parameters was performed:
- <code>
- var mock = new Mock<IWarehouse>();
- // exercise mock
- //...
- // Will throw if the test code didn't set the IsClosed property.
- mock.VerifySet(warehouse => warehouse.IsClosed);
- </code>
- </example>
- <exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception>
- <exception cref="T:Moq.MockException">The invocation was not call the times specified by
- <paramref name="times"/>.</exception>
- <param name="mock">The mock instance.</param>
- <typeparam name="T">Mocked type.</typeparam>
- <param name="times">The number of times a method is allowed to be called.</param>
- <param name="failMessage">Message to show if verification fails.</param>
- <param name="expression">Expression to verify.</param>
- <typeparam name="TProperty">Type of the property to verify. Typically omitted as it can
- be inferred from the expression's return type.</typeparam>
- </member>
- <member name="T:Moq.Protected.IProtectedMock`1">
- <summary>
- Allows setups to be specified for protected members by using their
- name as a string, rather than strong-typing them which is not possible
- due to their visibility.
- </summary>
- </member>
- <member name="M:Moq.Protected.IProtectedMock`1.Setup(System.String,System.Object[])">
- <summary>
- Specifies a setup for a void method invocation with the given
- <paramref name="voidMethodName"/>, optionally specifying arguments for the method call.
- </summary>
- <param name="voidMethodName">The name of the void method to be invoked.</param>
- <param name="args">The optional arguments for the invocation. If argument matchers are used,
- remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>
- </member>
- <member name="M:Moq.Protected.IProtectedMock`1.Setup``1(System.String,System.Object[])">
- <summary>
- Specifies a setup for an invocation on a property or a non void method with the given
- <paramref name="methodOrPropertyName"/>, optionally specifying arguments for the method call.
- </summary>
- <param name="methodOrPropertyName">The name of the method or property to be invoked.</param>
- <param name="args">The optional arguments for the invocation. If argument matchers are used,
- remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>
- <typeparam name="TResult">The return type of the method or property.</typeparam>
- </member>
- <member name="M:Moq.Protected.IProtectedMock`1.SetupGet``1(System.String)">
- <summary>
- Specifies a setup for an invocation on a property getter with the given
- <paramref name="propertyName"/>.
- </summary>
- <param name="propertyName">The name of the property.</param>
- <typeparam name="TProperty">The type of the property.</typeparam>
- </member>
- <member name="M:Moq.Protected.IProtectedMock`1.SetupSet``1(System.String,System.Object)">
- <summary>
- Specifies a setup for an invocation on a property setter with the given
- <paramref name="propertyName"/>.
- </summary>
- <param name="propertyName">The name of the property.</param>
- <param name="value">The property value. If argument matchers are used,
- remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>
- <typeparam name="TProperty">The type of the property.</typeparam>
- </member>
- <member name="M:Moq.Protected.IProtectedMock`1.Verify(System.String,Moq.Times,System.Object[])">
- <summary>
- Specifies a verify for a void method with the given <paramref name="methodName"/>,
- optionally specifying arguments for the method call. Use in conjuntion with the default
- <see cref="F:Moq.MockBehavior.Loose"/>.
- </summary>
- <exception cref="T:Moq.MockException">The invocation was not call the times specified by
- <paramref name="times"/>.</exception>
- <param name="methodName">The name of the void method to be verified.</param>
- <param name="times">The number of times a method is allowed to be called.</param>
- <param name="args">The optional arguments for the invocation. If argument matchers are used,
- remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>
- </member>
- <member name="M:Moq.Protected.IProtectedMock`1.Verify``1(System.String,Moq.Times,System.Object[])">
- <summary>
- Specifies a verify for an invocation on a property or a non void method with the given
- <paramref name="methodName"/>, optionally specifying arguments for the method call.
- </summary>
- <exception cref="T:Moq.MockException">The invocation was not call the times specified by
- <paramref name="times"/>.</exception>
- <param name="methodName">The name of the method or property to be invoked.</param>
- <param name="args">The optional arguments for the invocation. If argument matchers are used,
- remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>
- <param name="times">The number of times a method is allowed to be called.</param>
- <typeparam name="TResult">The type of return value from the expression.</typeparam>
- </member>
- <member name="M:Moq.Protected.IProtectedMock`1.VerifyGet``1(System.String,Moq.Times)">
- <summary>
- Specifies a verify for an invocation on a property getter with the given
- <paramref name="propertyName"/>.
- <exception cref="T:Moq.MockException">The invocation was not call the times specified by
- <paramref name="times"/>.</exception>
- </summary>
- <param name="propertyName">The name of the property.</param>
- <param name="times">The number of times a method is allowed to be called.</param>
- <typeparam name="TProperty">The type of the property.</typeparam>
- </member>
- <member name="M:Moq.Protected.IProtectedMock`1.VerifySet``1(System.String,Moq.Times,System.Object)">
- <summary>
- Specifies a setup for an invocation on a property setter with the given
- <paramref name="propertyName"/>.
- </summary>
- <exception cref="T:Moq.MockException">The invocation was not call the times specified by
- <paramref name="times"/>.</exception>
- <param name="propertyName">The name of the property.</param>
- <param name="times">The number of times a method is allowed to be called.</param>
- <param name="value">The property value.</param>
- <typeparam name="TProperty">The type of the property. If argument matchers are used,
- remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</typeparam>
- </member>
- <member name="T:Moq.Protected.ItExpr">
- <summary>
- Allows the specification of a matching condition for an
- argument in a protected member setup, rather than a specific
- argument value. "ItExpr" refers to the argument being matched.
- </summary>
- <remarks>
- <para>Use this variant of argument matching instead of
- <see cref="T:Moq.It"/> for protected setups.</para>
- This class allows the setup to match a method invocation
- with an arbitrary value, with a value in a specified range, or
- even one that matches a given predicate, or null.
- </remarks>
- </member>
- <member name="M:Moq.Protected.ItExpr.IsNull``1">
- <summary>
- Matches a null value of the given <typeparamref name="TValue"/> type.
- </summary>
- <remarks>
- Required for protected mocks as the null value cannot be used
- directly as it prevents proper method overload selection.
- </remarks>
- <example>
- <code>
- // Throws an exception for a call to Remove with a null string value.
- mock.Protected()
- .Setup("Remove", ItExpr.IsNull<string>())
- .Throws(new InvalidOperationException());
- </code>
- </example>
- <typeparam name="TValue">Type of the value.</typeparam>
- </member>
- <member name="M:Moq.Protected.ItExpr.IsAny``1">
- <summary>
- Matches any value of the given <typeparamref name="TValue"/> type.
- </summary>
- <remarks>
- Typically used when the actual argument value for a method
- call is not relevant.
- </remarks>
- <example>
- <code>
- // Throws an exception for a call to Remove with any string value.
- mock.Protected()
- .Setup("Remove", ItExpr.IsAny<string>())
- .Throws(new InvalidOperationException());
- </code>
- </example>
- <typeparam name="TValue">Type of the value.</typeparam>
- </member>
- <member name="M:Moq.Protected.ItExpr.Is``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">
- <summary>
- Matches any value that satisfies the given predicate.
- </summary>
- <typeparam name="TValue">Type of the argument to check.</typeparam>
- <param name="match">The predicate used to match the method argument.</param>
- <remarks>
- Allows the specification of a predicate to perform matching
- of method call arguments.
- </remarks>
- <example>
- This example shows how to return the value <c>1</c> whenever the argument to the
- <c>Do</c> method is an even number.
- <code>
- mock.Protected()
- .Setup("Do", ItExpr.Is<int>(i => i % 2 == 0))
- .Returns(1);
- </code>
- This example shows how to throw an exception if the argument to the
- method is a negative number:
- <code>
- mock.Protected()
- .Setup("GetUser", ItExpr.Is<int>(i => i < 0))
- .Throws(new ArgumentException());
- </code>
- </example>
- </member>
- <member name="M:Moq.Protected.ItExpr.IsInRange``1(``0,``0,Moq.Range)">
- <summary>
- Matches any value that is in the range specified.
- </summary>
- <typeparam name="TValue">Type of the argument to check.</typeparam>
- <param name="from">The lower bound of the range.</param>
- <param name="to">The upper bound of the range.</param>
- <param name="rangeKind">The kind of range. See <see cref="T:Moq.Range"/>.</param>
- <example>
- The following example shows how to expect a method call
- with an integer argument within the 0..100 range.
- <code>
- mock.Protected()
- .Setup("HasInventory",
- ItExpr.IsAny<string>(),
- ItExpr.IsInRange(0, 100, Range.Inclusive))
- .Returns(false);
- </code>
- </example>
- </member>
- <member name="M:Moq.Protected.ItExpr.IsRegex(System.String)">
- <summary>
- Matches a string argument if it matches the given regular expression pattern.
- </summary>
- <param name="regex">The pattern to use to match the string argument value.</param>
- <example>
- The following example shows how to expect a call to a method where the
- string argument matches the given regular expression:
- <code>
- mock.Protected()
- .Setup("Check", ItExpr.IsRegex("[a-z]+"))
- .Returns(1);
- </code>
- </example>
- </member>
- <member name="M:Moq.Protected.ItExpr.IsRegex(System.String,System.Text.RegularExpressions.RegexOptions)">
- <summary>
- Matches a string argument if it matches the given regular expression pattern.
- </summary>
- <param name="regex">The pattern to use to match the string argument value.</param>
- <param name="options">The options used to interpret the pattern.</param>
- <example>
- The following example shows how to expect a call to a method where the
- string argument matches the given regular expression, in a case insensitive way:
- <code>
- mock.Protected()
- .Setup("Check", ItExpr.IsRegex("[a-z]+", RegexOptions.IgnoreCase))
- .Returns(1);
- </code>
- </example>
- </member>
- <member name="T:Moq.Protected.ProtectedExtension">
- <summary>
- Enables the <c>Protected()</c> method on <see cref="T:Moq.Mock`1"/>,
- allowing setups to be set for protected members by using their
- name as a string, rather than strong-typing them which is not possible
- due to their visibility.
- </summary>
- </member>
- <member name="M:Moq.Protected.ProtectedExtension.Protected``1(Moq.Mock{``0})">
- <summary>
- Enable protected setups for the mock.
- </summary>
- <typeparam name="T">Mocked object type. Typically omitted as it can be inferred from the mock instance.</typeparam>
- <param name="mock">The mock to set the protected setups on.</param>
- </member>
- <member name="T:ThisAssembly">
- <group name="overview" title="Overview" order="0" />
- <group name="setups" title="Specifying setups" order="1" />
- <group name="returns" title="Returning values from members" order="2" />
- <group name="verification" title="Verifying setups" order="3" />
- <group name="advanced" title="Advanced scenarios" order="99" />
- <group name="factory" title="Using MockFactory for consistency across mocks" order="4" />
- </member>
- <member name="T:Moq.Properties.Resources">
- <summary>
- A strongly-typed resource class, for looking up localized strings, etc.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.ResourceManager">
- <summary>
- Returns the cached ResourceManager instance used by this class.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.Culture">
- <summary>
- Overrides the current thread's CurrentUICulture property for all
- resource lookups using this strongly typed resource class.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.AlreadyInitialized">
- <summary>
- Looks up a localized string similar to Mock type has already been initialized by accessing its Object property. Adding interfaces must be done before that..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.ArgumentCannotBeEmpty">
- <summary>
- Looks up a localized string similar to Value cannot be an empty string..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.AsMustBeInterface">
- <summary>
- Looks up a localized string similar to Can only add interfaces to the mock..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.CantSetReturnValueForVoid">
- <summary>
- Looks up a localized string similar to Can't set return value for void method {0}..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.ConstructorArgsForInterface">
- <summary>
- Looks up a localized string similar to Constructor arguments cannot be passed for interface mocks..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.ConstructorNotFound">
- <summary>
- Looks up a localized string similar to A matching constructor for the given arguments was not found on the mocked type..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.EventNofFound">
- <summary>
- Looks up a localized string similar to Could not locate event for attach or detach method {0}..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.FieldsNotSupported">
- <summary>
- Looks up a localized string similar to Expression {0} involves a field access, which is not supported. Use properties instead..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.InvalidMockClass">
- <summary>
- Looks up a localized string similar to Type to mock must be an interface or an abstract or non-sealed class. .
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.InvalidMockGetType">
- <summary>
- Looks up a localized string similar to Cannot retrieve a mock with the given object type {0} as it's not the main type of the mock or any of its additional interfaces.
- Please cast the argument to one of the supported types: {1}.
- Remember that there's no generics covariance in the CLR, so your object must be one of these types in order for the call to succeed..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.LinqBinaryOperatorNotSupported">
- <summary>
- Looks up a localized string similar to The equals ("==" or "=" in VB) and the conditional 'and' ("&&" or "AndAlso" in VB) operators are the only ones supported in the query specification expression. Unsupported expression: {0}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.LinqMethodNotSupported">
- <summary>
- Looks up a localized string similar to LINQ method '{0}' not supported..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.LinqMethodNotVirtual">
- <summary>
- Looks up a localized string similar to Expression contains a call to a method which is not virtual (overridable in VB) or abstract. Unsupported expression: {0}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.MemberMissing">
- <summary>
- Looks up a localized string similar to Member {0}.{1} does not exist..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.MethodIsPublic">
- <summary>
- Looks up a localized string similar to Method {0}.{1} is public. Use strong-typed Expect overload instead:
- mock.Setup(x => x.{1}());
- .
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.MockExceptionMessage">
- <summary>
- Looks up a localized string similar to {0} invocation failed with mock behavior {1}.
- {2}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.MoreThanNCalls">
- <summary>
- Looks up a localized string similar to Expected only {0} calls to {1}..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.MoreThanOneCall">
- <summary>
- Looks up a localized string similar to Expected only one call to {0}..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.NoMatchingCallsAtLeast">
- <summary>
- Looks up a localized string similar to {0}
- Expected invocation on the mock at least {2} times, but was {4} times: {1}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.NoMatchingCallsAtLeastOnce">
- <summary>
- Looks up a localized string similar to {0}
- Expected invocation on the mock at least once, but was never performed: {1}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.NoMatchingCallsAtMost">
- <summary>
- Looks up a localized string similar to {0}
- Expected invocation on the mock at most {3} times, but was {4} times: {1}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.NoMatchingCallsAtMostOnce">
- <summary>
- Looks up a localized string similar to {0}
- Expected invocation on the mock at most once, but was {4} times: {1}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.NoMatchingCallsBetweenExclusive">
- <summary>
- Looks up a localized string similar to {0}
- Expected invocation on the mock between {2} and {3} times (Exclusive), but was {4} times: {1}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.NoMatchingCallsBetweenInclusive">
- <summary>
- Looks up a localized string similar to {0}
- Expected invocation on the mock between {2} and {3} times (Inclusive), but was {4} times: {1}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.NoMatchingCallsExactly">
- <summary>
- Looks up a localized string similar to {0}
- Expected invocation on the mock exactly {2} times, but was {4} times: {1}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.NoMatchingCallsNever">
- <summary>
- Looks up a localized string similar to {0}
- Expected invocation on the mock should never have been performed, but was {4} times: {1}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.NoMatchingCallsOnce">
- <summary>
- Looks up a localized string similar to {0}
- Expected invocation on the mock once, but was {4} times: {1}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.NoSetup">
- <summary>
- Looks up a localized string similar to All invocations on the mock must have a corresponding setup..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.ObjectInstanceNotMock">
- <summary>
- Looks up a localized string similar to Object instance was not created by Moq..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.OutExpressionMustBeConstantValue">
- <summary>
- Looks up a localized string similar to Out expression must evaluate to a constant value..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.PropertyGetNotFound">
- <summary>
- Looks up a localized string similar to Property {0}.{1} does not have a getter..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.PropertyMissing">
- <summary>
- Looks up a localized string similar to Property {0}.{1} does not exist..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.PropertyNotReadable">
- <summary>
- Looks up a localized string similar to Property {0}.{1} is write-only..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.PropertyNotWritable">
- <summary>
- Looks up a localized string similar to Property {0}.{1} is read-only..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.PropertySetNotFound">
- <summary>
- Looks up a localized string similar to Property {0}.{1} does not have a setter..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.RaisedUnassociatedEvent">
- <summary>
- Looks up a localized string similar to Cannot raise a mocked event unless it has been associated (attached) to a concrete event in a mocked object..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.RefExpressionMustBeConstantValue">
- <summary>
- Looks up a localized string similar to Ref expression must evaluate to a constant value..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.ReturnValueRequired">
- <summary>
- Looks up a localized string similar to Invocation needs to return a value and therefore must have a corresponding setup that provides it..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.SetupLambda">
- <summary>
- Looks up a localized string similar to A lambda expression is expected as the argument to It.Is<T>..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.SetupNever">
- <summary>
- Looks up a localized string similar to Invocation {0} should not have been made..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.SetupNotMethod">
- <summary>
- Looks up a localized string similar to Expression is not a method invocation: {0}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.SetupNotProperty">
- <summary>
- Looks up a localized string similar to Expression is not a property access: {0}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.SetupNotSetter">
- <summary>
- Looks up a localized string similar to Expression is not a property setter invocation..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.SetupOnNonMemberMethod">
- <summary>
- Looks up a localized string similar to Expression references a method that does not belong to the mocked object: {0}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.SetupOnNonOverridableMember">
- <summary>
- Looks up a localized string similar to Invalid setup on a non-virtual (overridable in VB) member: {0}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.TypeNotImplementInterface">
- <summary>
- Looks up a localized string similar to Type {0} does not implement required interface {1}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.TypeNotInheritFromType">
- <summary>
- Looks up a localized string similar to Type {0} does not from required type {1}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.UnexpectedPublicProperty">
- <summary>
- Looks up a localized string similar to To specify a setup for public property {0}.{1}, use the typed overloads, such as:
- mock.Setup(x => x.{1}).Returns(value);
- mock.SetupGet(x => x.{1}).Returns(value); //equivalent to previous one
- mock.SetupSet(x => x.{1}).Callback(callbackDelegate);
- .
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.UnsupportedExpression">
- <summary>
- Looks up a localized string similar to Unsupported expression: {0}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.UnsupportedIntermediateExpression">
- <summary>
- Looks up a localized string similar to Only property accesses are supported in intermediate invocations on a setup. Unsupported expression {0}..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.UnsupportedIntermediateType">
- <summary>
- Looks up a localized string similar to Expression contains intermediate property access {0}.{1} which is of type {2} and cannot be mocked. Unsupported expression {3}..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.UnsupportedMatcherParamsForSetter">
- <summary>
- Looks up a localized string similar to Setter expression cannot use argument matchers that receive parameters..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.UnsupportedMember">
- <summary>
- Looks up a localized string similar to Member {0} is not supported for protected mocking..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.UnsupportedNonStaticMatcherForSetter">
- <summary>
- Looks up a localized string similar to Setter expression can only use static custom matchers..
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.VerficationFailed">
- <summary>
- Looks up a localized string similar to The following setups were not matched:
- {0}.
- </summary>
- </member>
- <member name="P:Moq.Properties.Resources.VerifyOnNonVirtualMember">
- <summary>
- Looks up a localized string similar to Invalid verify on a non-virtual (overridable in VB) member: {0}.
- </summary>
- </member>
- <member name="T:Moq.Range">
- <summary>
- Kind of range to use in a filter specified through
- <see cref="M:Moq.It.IsInRange``1(``0,``0,Moq.Range)"/>.
- </summary>
- </member>
- <member name="F:Moq.Range.Inclusive">
- <summary>
- The range includes the <c>to</c> and
- <c>from</c> values.
- </summary>
- </member>
- <member name="F:Moq.Range.Exclusive">
- <summary>
- The range does not include the <c>to</c> and
- <c>from</c> values.
- </summary>
- </member>
- <member name="T:Moq.SequenceExtensions">
- <summary>
- Helper for sequencing return values in the same method.
- </summary>
- </member>
- <member name="M:Moq.SequenceExtensions.SetupSequence``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}})">
- <summary>
- Return a sequence of values, once per call.
- </summary>
- </member>
- <member name="T:Moq.Times">
- <summary>
- Defines the number of invocations allowed by a mocked method.
- </summary>
- </member>
- <member name="M:Moq.Times.AtLeast(System.Int32)">
- <summary>
- Specifies that a mocked method should be invoked <paramref name="callCount"/> times as minimum.
- </summary><param name="callCount">The minimun number of times.</param><returns>An object defining the allowed number of invocations.</returns>
- </member>
- <member name="M:Moq.Times.AtLeastOnce">
- <summary>
- Specifies that a mocked method should be invoked one time as minimum.
- </summary><returns>An object defining the allowed number of invocations.</returns>
- </member>
- <member name="M:Moq.Times.AtMost(System.Int32)">
- <summary>
- Specifies that a mocked method should be invoked <paramref name="callCount"/> time as maximun.
- </summary><param name="callCount">The maximun number of times.</param><returns>An object defining the allowed number of invocations.</returns>
- </member>
- <member name="M:Moq.Times.AtMostOnce">
- <summary>
- Specifies that a mocked method should be invoked one time as maximun.
- </summary><returns>An object defining the allowed number of invocations.</returns>
- </member>
- <member name="M:Moq.Times.Between(System.Int32,System.Int32,Moq.Range)">
- <summary>
- Specifies that a mocked method should be invoked between <paramref name="callCountFrom"/> and
- <paramref name="callCountTo"/> times.
- </summary><param name="callCountFrom">The minimun number of times.</param><param name="callCountTo">The maximun number of times.</param><param name="rangeKind">
- The kind of range. See <see cref="T:Moq.Range"/>.
- </param><returns>An object defining the allowed number of invocations.</returns>
- </member>
- <member name="M:Moq.Times.Exactly(System.Int32)">
- <summary>
- Specifies that a mocked method should be invoked exactly <paramref name="callCount"/> times.
- </summary><param name="callCount">The times that a method or property can be called.</param><returns>An object defining the allowed number of invocations.</returns>
- </member>
- <member name="M:Moq.Times.Never">
- <summary>
- Specifies that a mocked method should not be invoked.
- </summary><returns>An object defining the allowed number of invocations.</returns>
- </member>
- <member name="M:Moq.Times.Once">
- <summary>
- Specifies that a mocked method should be invoked exactly one time.
- </summary><returns>An object defining the allowed number of invocations.</returns>
- </member>
- <member name="M:Moq.Times.Equals(System.Object)">
- <summary>
- Determines whether the specified <see cref="T:System.Object"/> is equal to this instance.
- </summary><param name="obj">
- The <see cref="T:System.Object"/> to compare with this instance.
- </param><returns>
- <c>true</c> if the specified <see cref="T:System.Object"/> is equal to this instance; otherwise, <c>false</c>.
- </returns>
- </member>
- <member name="M:Moq.Times.GetHashCode">
- <summary>
- Returns a hash code for this instance.
- </summary><returns>
- A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
- </returns>
- </member>
- <member name="M:Moq.Times.op_Equality(Moq.Times,Moq.Times)">
- <summary>
- Determines whether two specified <see cref="T:Moq.Times"/> objects have the same value.
- </summary><param name="left">
- The first <see cref="T:Moq.Times"/>.
- </param><param name="right">
- The second <see cref="T:Moq.Times"/>.
- </param><returns>
- <c>true</c> if the value of left is the same as the value of right; otherwise, <c>false</c>.
- </returns>
- </member>
- <member name="M:Moq.Times.op_Inequality(Moq.Times,Moq.Times)">
- <summary>
- Determines whether two specified <see cref="T:Moq.Times"/> objects have different values.
- </summary><param name="left">
- The first <see cref="T:Moq.Times"/>.
- </param><param name="right">
- The second <see cref="T:Moq.Times"/>.
- </param><returns>
- <c>true</c> if the value of left is different from the value of right; otherwise, <c>false</c>.
- </returns>
- </member>
- </members>
-</doc>
diff --git a/SendGrid/packages/repositories.config b/SendGrid/packages/repositories.config deleted file mode 100644 index 032e840..0000000 --- a/SendGrid/packages/repositories.config +++ /dev/null @@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?>
-<repositories>
- <repository path="../SendGridMail/packages.config" />
- <repository path="../Tests/packages.config" />
- <repository path="..\Example\packages.config" />
- <repository path="..\SendGridMail\packages.config" />
- <repository path="..\Tests\packages.config" />
-</repositories>
\ No newline at end of file |