This repository contains two sets of Coyote samples.
The first set of samples shows how you can use Coyote to systematically test unmodified C# task-based applications and services:
- AccountManager: demonstrates how to write a simple task-based C# application to create, get and delete account records in a backend NoSQL database and then systematically test this application using Coyote to find a race condition.
- ImageGalleryAspNet: demonstrates how to use Coyote to test an ASP.NET Core service.
- Coffee Machine Failover: demonstrates how to systematically test the failover logic in your task-based applications.
- BoundedBuffer: demonstrates how to use
coyote rewrite
to find deadlocks in unmodified C# code.
The second set of samples shows how you can use the Coyote actor programming model to build reliable applications and services:
- HelloWorldActors: demonstrates how to write a simple Coyote application using actors, and then run and systematically test it.
- CloudMessaging: demonstrates how to write a Coyote application that contains components that communicate with each other using the Azure Service Bus cloud messaging queue.
- Coffee Machine Failover: demonstrates how to systematically test the failover logic in your Coyote actor applications.
- Robot Navigator Failover: demonstrates how to systematically test the failover logic in your Coyote actors applications.
- Timers in Actors: demonstrates how to use the timer API of the Coyote actor programming model.
To build and run the samples, you will need to:
- Install the .NET 5.0 SDK.
- Install the .NET 5.0 version of the coyote tool.
Once you are ready, clone this repository and build the samples by running the following PowerShell script:
.\build.ps1
Then, follow the instructions in each sample.
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.