Whatsmeow.Testing
1.0.0-rc.4
This is a prerelease version of Whatsmeow.Testing.
dotnet add package Whatsmeow.Testing --version 1.0.0-rc.4
NuGet\Install-Package Whatsmeow.Testing -Version 1.0.0-rc.4
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Whatsmeow.Testing" Version="1.0.0-rc.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Whatsmeow.Testing" Version="1.0.0-rc.4" />
<PackageReference Include="Whatsmeow.Testing" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Whatsmeow.Testing --version 1.0.0-rc.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Whatsmeow.Testing, 1.0.0-rc.4"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Whatsmeow.Testing@1.0.0-rc.4
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Whatsmeow.Testing&version=1.0.0-rc.4&prerelease
#tool nuget:?package=Whatsmeow.Testing&version=1.0.0-rc.4&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Whatsmeow.Testing
FakeWhatsAppClient is an IWhatsAppClient in memory, with no sidecar and no WhatsApp, for testing the code you build on Whatsmeow.Client.
RaiseAsync(event)runs your handlers on the client's own event pipeline, with its per-chat order, and waits for them.Callsrecords every call your code made, andFailNextmakes the next call to a member throw the exception you give.UseFakeClientreplaces a session declared withWhatsmeow.Extensions.Hosting, so a host under test starts no sidecar.
Hosting and testing has an example.
It is pinned to the exact version of Whatsmeow.Client and Whatsmeow.Extensions.Hosting it was built with.
License: MPL-2.0.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net11.0
- Google.Protobuf (>= 3.36.2)
- Grpc.Core.Api (>= 2.85.0)
- Grpc.HealthCheck (>= 2.85.0)
- Grpc.Net.Client (>= 2.85.0)
- Grpc.StatusProto (>= 2.85.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 11.0.0)
- Vogen (>= 8.0.7)
- Whatsmeow.Client (= 1.0.0-rc.4)
- Whatsmeow.Extensions.Hosting (= 1.0.0-rc.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 1.0.0-rc.4 | 77 | 11/12/2026 | |
| 1.0.0-rc.2 | 76 | 11/11/2026 | |
| 1.0.0-rc.1 | 90 | 11/11/2026 |