This project is designed to test various functionalities of the GitHub API using RestSharp and NUnit. The purpose is to automate the testing of RESTful web services to ensure they work correctly and handle errors gracefully.
- RestSharp: A powerful library to simplify HTTP requests in .NET.
- NUnit: A popular unit testing framework for .NET applications.
- GitHub Issues provides the standard RESTful API endpoints, which you can access with HTTP client from GitHub API edndpoints
- This project tests various endpoints of the GitHub API.
- For a full list of available endpoints, refer to the GitHub API documentation
- RestSharpServices: Methods that interact with the GitHub API using RestSharp.
- TestGitHubApi: Tests to verify the functionality of the RestSharpServices methods.
- Models: These classes represent the data that the GitHub API will send and receive.
The constructor takes three parameters:
- BaseUrl: The root URL of the GitHub API. This is where all API requests will start from.
- Username: Your GitHub username.
- Token: Your GitHub personal access token. This is used for authentication and allows you to interact with the GitHub API.
Incremental Approach: To use this apprach you have to write one method, then immediately write the corresponding test to validate it. Then Repeat this process for each method. This approach helps to focus on one piece of functionality at a time and makes debugging easier.
Contributions are welcome! If you have any improvements or bug fixes, feel free to open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
For any questions or suggestions, please reach out to me or open an issue in the repository.