Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency xunit to v2.6.6 #291

Merged
merged 2 commits into from
Jan 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,112 +13,211 @@ namespace Refitter.Tests.AdditionalFiles.NoFilename
[System.CodeDom.Compiler.GeneratedCode("Refitter", "1.0.0.0")]
public partial interface ISwaggerPetstore
{
/// <summary>
/// Update an existing pet by Id
/// </summary>
/// <summary>Update an existing pet</summary>
/// <remarks>Update an existing pet by Id</remarks>
/// <param name="body">Update an existent pet in the store</param>
/// <returns>Successful operation</returns>
/// <throws cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// 400: Invalid ID supplied
/// 404: Pet not found
/// 405: Validation exception
/// </throws>
[Headers("Accept: application/xml, application/json")]
[Put("/pet")]
Task<Pet> UpdatePet([Body] Pet body);

/// <summary>
/// Add a new pet to the store
/// </summary>
/// <summary>Add a new pet to the store</summary>
/// <remarks>Add a new pet to the store</remarks>
/// <param name="body">Create a new pet in the store</param>
/// <returns>Successful operation</returns>
/// <throws cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// 405: Invalid input
/// </throws>
[Headers("Accept: application/xml, application/json")]
[Post("/pet")]
Task<Pet> AddPet([Body] Pet body);

/// <summary>
/// Multiple status values can be provided with comma separated strings
/// </summary>
/// <summary>Finds Pets by status</summary>
/// <remarks>Multiple status values can be provided with comma separated strings</remarks>
/// <param name="status">Status values that need to be considered for filter</param>
/// <returns>successful operation</returns>
/// <throws cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// 400: Invalid status value
/// </throws>
[Headers("Accept: application/json")]
[Get("/pet/findByStatus")]
Task<ICollection<Pet>> FindPetsByStatus([Query] Status? status);

/// <summary>
/// Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
/// </summary>
/// <summary>Finds Pets by tags</summary>
/// <remarks>Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.</remarks>
/// <param name="tags">Tags to filter by</param>
/// <returns>successful operation</returns>
/// <throws cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// 400: Invalid tag value
/// </throws>
[Headers("Accept: application/json")]
[Get("/pet/findByTags")]
Task<ICollection<Pet>> FindPetsByTags([Query(CollectionFormat.Multi)] IEnumerable<string> tags);

/// <summary>
/// Returns a single pet
/// </summary>
/// <summary>Find pet by ID</summary>
/// <remarks>Returns a single pet</remarks>
/// <param name="petId">ID of pet to return</param>
/// <returns>successful operation</returns>
/// <throws cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// 400: Invalid ID supplied
/// 404: Pet not found
/// </throws>
[Headers("Accept: application/xml, application/json")]
[Get("/pet/{petId}")]
Task<Pet> GetPetById(long petId);

/// <summary>Updates a pet in the store with form data</summary>
/// <param name="petId">ID of pet that needs to be updated</param>
/// <param name="name">Name of pet that needs to be updated</param>
/// <param name="status">Status of pet that needs to be updated</param>
/// <returns>A <see cref="Task"/> that completes when the request is finished.</returns>
/// <throws cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// 405: Invalid input
/// </throws>
[Post("/pet/{petId}")]
Task UpdatePetWithForm(long petId, [Query] string name, [Query] string status);

/// <summary>Deletes a pet</summary>
/// <param name="petId">Pet id to delete</param>
/// <returns>A <see cref="Task"/> that completes when the request is finished.</returns>
/// <throws cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// 400: Invalid pet value
/// </throws>
[Delete("/pet/{petId}")]
Task DeletePet(long petId, [Header("api_key")] string api_key);

/// <summary>uploads an image</summary>
/// <param name="petId">ID of pet to update</param>
/// <param name="additionalMetadata">Additional Metadata</param>
/// <returns>
/// A <see cref="Task"/> representing the <see cref="IApiResponse"/> instance containing the result:
/// 200: successful operation
/// </returns>
[Headers("Accept: application/json")]
[Post("/pet/{petId}/uploadImage")]
Task<ApiResponse> UploadFile(long petId, [Query] string additionalMetadata, StreamPart body);

/// <summary>
/// Returns a map of status codes to quantities
/// </summary>
/// <summary>Returns pet inventories by status</summary>
/// <remarks>Returns a map of status codes to quantities</remarks>
/// <returns>successful operation</returns>
/// <throws cref="ApiException">Thrown when the request returns a non-success status code.</throws>
[Headers("Accept: application/json")]
[Get("/store/inventory")]
Task<IDictionary<string, int>> GetInventory();

/// <summary>
/// Place a new order in the store
/// </summary>
/// <summary>Place an order for a pet</summary>
/// <remarks>Place a new order in the store</remarks>
/// <returns>successful operation</returns>
/// <throws cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// 405: Invalid input
/// </throws>
[Headers("Accept: application/json")]
[Post("/store/order")]
Task<Order> PlaceOrder([Body] Order body);

/// <summary>
/// For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
/// </summary>
/// <summary>Find purchase order by ID</summary>
/// <remarks>For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions</remarks>
/// <param name="orderId">ID of order that needs to be fetched</param>
/// <returns>successful operation</returns>
/// <throws cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// 400: Invalid ID supplied
/// 404: Order not found
/// </throws>
[Headers("Accept: application/json")]
[Get("/store/order/{orderId}")]
Task<Order> GetOrderById(long orderId);

/// <summary>
/// For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
/// </summary>
/// <summary>Delete purchase order by ID</summary>
/// <remarks>For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors</remarks>
/// <param name="orderId">ID of the order that needs to be deleted</param>
/// <returns>A <see cref="Task"/> that completes when the request is finished.</returns>
/// <throws cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// 400: Invalid ID supplied
/// 404: Order not found
/// </throws>
[Delete("/store/order/{orderId}")]
Task DeleteOrder(long orderId);

/// <summary>
/// This can only be done by the logged in user.
/// </summary>
/// <summary>Create user</summary>
/// <remarks>This can only be done by the logged in user.</remarks>
/// <param name="body">Created user object</param>
/// <returns>successful operation</returns>
/// <throws cref="ApiException">Thrown when the request returns a non-success status code.</throws>
[Headers("Accept: application/json, application/xml")]
[Post("/user")]
Task CreateUser([Body] User body);

/// <summary>
/// Creates list of users with given input array
/// </summary>
/// <summary>Creates list of users with given input array</summary>
/// <remarks>Creates list of users with given input array</remarks>
/// <returns>Successful operation</returns>
/// <throws cref="ApiException">Thrown when the request returns a non-success status code.</throws>
[Headers("Accept: application/xml, application/json")]
[Post("/user/createWithList")]
Task<User> CreateUsersWithListInput([Body] IEnumerable<User> body);

/// <summary>Logs user into the system</summary>
/// <param name="username">The user name for login</param>
/// <param name="password">The password for login in clear text</param>
/// <returns>successful operation</returns>
/// <throws cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// 400: Invalid username/password supplied
/// </throws>
[Headers("Accept: application/json")]
[Get("/user/login")]
Task<string> LoginUser([Query] string username, [Query] string password);

/// <summary>Logs out current logged in user session</summary>
/// <returns>A <see cref="Task"/> that completes when the request is finished.</returns>
/// <throws cref="ApiException">Thrown when the request returns a non-success status code.</throws>
[Get("/user/logout")]
Task LogoutUser();

/// <summary>Get user by user name</summary>
/// <param name="username">The name that needs to be fetched. Use user1 for testing.</param>
/// <returns>successful operation</returns>
/// <throws cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// 400: Invalid username supplied
/// 404: User not found
/// </throws>
[Headers("Accept: application/json")]
[Get("/user/{username}")]
Task<User> GetUserByName(string username);

/// <summary>
/// This can only be done by the logged in user.
/// </summary>
/// <summary>Update user</summary>
/// <remarks>This can only be done by the logged in user.</remarks>
/// <param name="username">name that need to be deleted</param>
/// <param name="body">Update an existent user in the store</param>
/// <returns>A <see cref="Task"/> that completes when the request is finished.</returns>
/// <throws cref="ApiException">Thrown when the request returns a non-success status code.</throws>
[Put("/user/{username}")]
Task UpdateUser(string username, [Body] User body);

/// <summary>
/// This can only be done by the logged in user.
/// </summary>
/// <summary>Delete user</summary>
/// <remarks>This can only be done by the logged in user.</remarks>
/// <param name="username">The name that needs to be deleted</param>
/// <returns>A <see cref="Task"/> that completes when the request is finished.</returns>
/// <throws cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// 400: Invalid username supplied
/// 404: User not found
/// </throws>
[Delete("/user/{username}")]
Task DeleteUser(string username);

Expand Down
Loading