{"id":22772343,"url":"https://github.com/pactflow/example-provider-dotnet","last_synced_at":"2025-06-10T21:04:38.666Z","repository":{"id":42567654,"uuid":"288359664","full_name":"pactflow/example-provider-dotnet","owner":"pactflow","description":".NET provider example","archived":false,"fork":false,"pushed_at":"2025-04-01T17:10:41.000Z","size":70,"stargazers_count":4,"open_issues_count":1,"forks_count":27,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-15T06:48:26.283Z","etag":null,"topics":["example"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pactflow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-18T05:05:00.000Z","updated_at":"2025-04-01T17:10:44.000Z","dependencies_parsed_at":"2025-02-17T21:38:25.761Z","dependency_job_id":null,"html_url":"https://github.com/pactflow/example-provider-dotnet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pactflow%2Fexample-provider-dotnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pactflow%2Fexample-provider-dotnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pactflow%2Fexample-provider-dotnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pactflow%2Fexample-provider-dotnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pactflow","download_url":"https://codeload.github.com/pactflow/example-provider-dotnet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249023707,"owners_count":21199958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["example"],"created_at":"2024-12-11T17:08:11.840Z","updated_at":"2025-04-15T06:49:03.203Z","avatar_url":"https://github.com/pactflow.png","language":"C#","readme":"# Example Provider Dotnet\n\n[![Build](https://github.com/pactflow/example-provider-dotnet/actions/workflows/build.yml/badge)](https://github.com/pactflow/example-provider-dotnet/actions/workflows/build.yml)\n\n![Can I Deploy](https://testdemo.pactflow.io/pacticipants/pactflow-example-provider-dotnet/branches/master/latest-version/can-i-deploy/to-environment/production/badge)\n\n![Pact Status](https://testdemo.pactflow.io/pacts/provider/pactflow-example-provider-dotnet/consumer/pactflow-example-consumer-dotnet/latest/badge) (latest)\n\n![Pact Status](https://testdemo.pactflow.io/pacts/provider/pactflow-example-provider-dotnet/consumer/pactflow-example-consumer-dotnet/latest/prod/badge) (prod)\n\nThis is an example of a .NET 8 provider that uses Pact, [PactFlow](https://pactflow.io) and GitHub Actions to ensure that it is compatible with the expectations its consumers have of it.\n\nThe project uses a Makefile to simulate a very simple build pipeline with two stages - test and deploy.\n\nThe latest version of the Example Consumer/Example Provider pact is published [here](https://test.pactflow.io/pacts/provider/pactflow-example-provider-dotnet/consumer/pactflow-example-consumer/latest).\n\n## Project Phases\n\nThe project uses a Makefile to simulate a very simple build pipeline with two stages - test and deploy.\n\n* Test\n  * Run tests (including the pact tests that generate the contract)\n  * Publish pacts, tagging the consumer version with the name of the current branch\n  * Check if we are safe to deploy to prod (ie. has the pact content been successfully verified)\n* Deploy (only from master)\n  * Deploy app (just pretend for the purposes of this example!)\n  * Tag the deployed consumer version as 'prod'\n\n## Dependencies\n\n* Docker\n* A [PactFlow](https://pactflow.io) account\n* A [read/write API Token](https://docs.pactflow.io/#configuring-your-api-token) from your PactFlow account\n* .NET 8.x installed. Installation instructions can be found here: \u003chttps://learn.microsoft.com/en-us/dotnet/core/install/\u003e\n\n## Usage\n\nSee the [PactFlow CI/CD Workshop](https://github.com/pactflow/ci-cd-workshop).\n\nThe below commands are designed for a Linux/OSX environment, please translate for use on Windows/PowerShell as necessary:\n\nPlease ensure the following environment variables have been exported in the process that you run the tests (generally a terminal):\n\n```bash\nexport PACT_BROKER_TOKEN=\u003cyour pactflow read/write token here\u003e\nexport PACT_BROKER_BASE_URL=https://\u003cyour pactflow subdomain\u003e.pactflow.io\n```\n\n### Simulating CI\n\nUsually, you would integrate this into a real CI system (such as Buildkite/Jenkins/CircleCI etc., or Travis as this repository is built against).\n\nYou can simulate a CI process with the following command:\n\n```bash\nmake fake_ci\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpactflow%2Fexample-provider-dotnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpactflow%2Fexample-provider-dotnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpactflow%2Fexample-provider-dotnet/lists"}