kiota/tests
hem@hdk fac7928db3
feat: Control generated types access modifier for C# (#5284)
* Control generated class access modifier for C#

- Add `--class-access-modifier` flag.

* Review feedback

- Rename `--class-access-modifier` to `--type-access-modifier`.
- Use `AccessModifier` enum instead of string and extend to `Internal` value.
- Add `Access` property to `CodeClass` and `CodeEnum`.
- Use `CSharpRefiner` to set `Access` property from configuration.
- Extend `CodeClassDeclarationWriter` and `CodeEnumWriter` to write actual type access modifier.

* Review feedback 2

- Add `TypeAccessModifierOption` to client handlers.
- Add `TypeAccessModifier` to workspace `ApiClientConfiguration` and `ApiClientConfigurationComparer`.
- Add default value of `Public` for stringified `TypeAccessModifier` properties.
- Add test case for `CSharpRefiner`.
- Implement `IAccessibleElement` for `CodeClass` and `CodeEnum`.

* Review feedback 3

- Use parenthesized pattern matching for type checks.

* Move changelog to unreleased section

* chore: runs dotnet format

---------

Co-authored-by: Vincent Biret <vibiret@microsoft.com>
2024-09-13 18:05:56 +00:00
..
Kiota.Builder.IntegrationTests chore(deps): bump Microsoft.NET.Test.SDK from 17.11.0 to 17.11.1 2024-09-05 08:31:48 +00:00
Kiota.Builder.Tests feat: Control generated types access modifier for C# (#5284) 2024-09-13 18:05:56 +00:00
Kiota.Tests chore(deps): bump moq from 4.20.71 to 4.20.72 2024-09-09 08:58:02 +00:00