diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Accounts/MyContracts/Interfaces/ISetAccountNameHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Accounts/MyContracts/Interfaces/ISetAccountNameHandler.verified.cs
new file mode 100644
index 000000000..80dbd1854
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Accounts/MyContracts/Interfaces/ISetAccountNameHandler.verified.cs
@@ -0,0 +1,25 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Accounts.MyContracts;
+
+///
+/// Domain Interface for RequestHandler.
+/// Description: Set name of account.
+/// Operation: SetAccountName.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface ISetAccountNameHandler
+{
+ ///
+ /// Execute method.
+ ///
+ /// The parameters.
+ /// The cancellation token.
+ Task ExecuteAsync(
+ SetAccountNameParameters parameters,
+ CancellationToken cancellationToken = default);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Accounts/MyContracts/Interfaces/IUpdateAccountNameHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Accounts/MyContracts/Interfaces/IUpdateAccountNameHandler.verified.cs
new file mode 100644
index 000000000..12be463b5
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Accounts/MyContracts/Interfaces/IUpdateAccountNameHandler.verified.cs
@@ -0,0 +1,25 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Accounts.MyContracts;
+
+///
+/// Domain Interface for RequestHandler.
+/// Description: Update name of account.
+/// Operation: UpdateAccountName.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface IUpdateAccountNameHandler
+{
+ ///
+ /// Execute method.
+ ///
+ /// The parameters.
+ /// The cancellation token.
+ Task ExecuteAsync(
+ UpdateAccountNameParameters parameters,
+ CancellationToken cancellationToken = default);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Accounts/MyContracts/Models/UpdateAccountRequest.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Accounts/MyContracts/Models/UpdateAccountRequest.verified.cs
new file mode 100644
index 000000000..0555135b9
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Accounts/MyContracts/Models/UpdateAccountRequest.verified.cs
@@ -0,0 +1,14 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Accounts.MyContracts;
+
+///
+/// UpdateAccountRequest.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record UpdateAccountRequest(
+ string Name);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Accounts/MyContracts/Parameters/SetAccountNameParameters.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Accounts/MyContracts/Parameters/SetAccountNameParameters.verified.cs
new file mode 100644
index 000000000..78a7fbe56
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Accounts/MyContracts/Parameters/SetAccountNameParameters.verified.cs
@@ -0,0 +1,17 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Accounts.MyContracts;
+
+///
+/// Parameters for operation request.
+/// Description: Set name of account.
+/// Operation: SetAccountName.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record SetAccountNameParameters(
+ [property: FromRoute, Required] Guid AccountId,
+ [property: FromBody, Required] UpdateAccountRequest Request);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Accounts/MyContracts/Parameters/UpdateAccountNameParameters.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Accounts/MyContracts/Parameters/UpdateAccountNameParameters.verified.cs
new file mode 100644
index 000000000..ce3fce97a
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Accounts/MyContracts/Parameters/UpdateAccountNameParameters.verified.cs
@@ -0,0 +1,17 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Accounts.MyContracts;
+
+///
+/// Parameters for operation request.
+/// Description: Update name of account.
+/// Operation: UpdateAccountName.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record UpdateAccountNameParameters(
+ [property: FromRoute, Required] Guid AccountId,
+ [property: FromHeader] string? Name);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Accounts/MyContracts/Results/SetAccountNameResult.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Accounts/MyContracts/Results/SetAccountNameResult.verified.cs
new file mode 100644
index 000000000..f807498f4
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Accounts/MyContracts/Results/SetAccountNameResult.verified.cs
@@ -0,0 +1,35 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Accounts.MyContracts;
+
+///
+/// Results for operation request.
+/// Description: Set name of account.
+/// Operation: SetAccountName.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class SetAccountNameResult
+{
+ private SetAccountNameResult(IResult result)
+ {
+ Result = result;
+ }
+
+ public IResult Result { get; }
+
+ ///
+ /// 200 - Ok response.
+ ///
+ public static SetAccountNameResult Ok(string? message = null)
+ => new(TypedResults.Ok(message));
+
+ ///
+ /// Performs an implicit conversion from SetAccountNameResult to IResult.
+ ///
+ public static IResult ToIResult(SetAccountNameResult result)
+ => result.Result;
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Accounts/MyContracts/Results/UpdateAccountNameResult.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Accounts/MyContracts/Results/UpdateAccountNameResult.verified.cs
new file mode 100644
index 000000000..29c710bb1
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Accounts/MyContracts/Results/UpdateAccountNameResult.verified.cs
@@ -0,0 +1,35 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Accounts.MyContracts;
+
+///
+/// Results for operation request.
+/// Description: Update name of account.
+/// Operation: UpdateAccountName.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class UpdateAccountNameResult
+{
+ private UpdateAccountNameResult(IResult result)
+ {
+ Result = result;
+ }
+
+ public IResult Result { get; }
+
+ ///
+ /// 200 - Ok response.
+ ///
+ public static UpdateAccountNameResult Ok(string? message = null)
+ => new(TypedResults.Ok(message));
+
+ ///
+ /// Performs an implicit conversion from UpdateAccountNameResult to IResult.
+ ///
+ public static IResult ToIResult(UpdateAccountNameResult result)
+ => result.Result;
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Addresses/MyContracts/Interfaces/IGetAddressesByPostalCodesHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Addresses/MyContracts/Interfaces/IGetAddressesByPostalCodesHandler.verified.cs
new file mode 100644
index 000000000..5e1b3ecb2
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Addresses/MyContracts/Interfaces/IGetAddressesByPostalCodesHandler.verified.cs
@@ -0,0 +1,25 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Addresses.MyContracts;
+
+///
+/// Domain Interface for RequestHandler.
+/// Description: Get addresses by postal code.
+/// Operation: GetAddressesByPostalCodes.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface IGetAddressesByPostalCodesHandler
+{
+ ///
+ /// Execute method.
+ ///
+ /// The parameters.
+ /// The cancellation token.
+ Task ExecuteAsync(
+ GetAddressesByPostalCodesParameters parameters,
+ CancellationToken cancellationToken = default);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Addresses/MyContracts/Parameters/GetAddressesByPostalCodesParameters.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Addresses/MyContracts/Parameters/GetAddressesByPostalCodesParameters.verified.cs
new file mode 100644
index 000000000..f3c4359c6
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Addresses/MyContracts/Parameters/GetAddressesByPostalCodesParameters.verified.cs
@@ -0,0 +1,16 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Addresses.MyContracts;
+
+///
+/// Parameters for operation request.
+/// Description: Get addresses by postal code.
+/// Operation: GetAddressesByPostalCodes.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record GetAddressesByPostalCodesParameters(
+ [property: FromRoute, Required] string PostalCode);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Addresses/MyContracts/Results/GetAddressesByPostalCodesResult.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Addresses/MyContracts/Results/GetAddressesByPostalCodesResult.verified.cs
new file mode 100644
index 000000000..89f5f0ccf
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Addresses/MyContracts/Results/GetAddressesByPostalCodesResult.verified.cs
@@ -0,0 +1,41 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Addresses.MyContracts;
+
+///
+/// Results for operation request.
+/// Description: Get addresses by postal code.
+/// Operation: GetAddressesByPostalCodes.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class GetAddressesByPostalCodesResult
+{
+ private GetAddressesByPostalCodesResult(IResult result)
+ {
+ Result = result;
+ }
+
+ public IResult Result { get; }
+
+ ///
+ /// 200 - Ok response.
+ ///
+ public static GetAddressesByPostalCodesResult Ok(List result)
+ => new(TypedResults.Ok(result));
+
+ ///
+ /// 404 - NotFound response.
+ ///
+ public static GetAddressesByPostalCodesResult NotFound(string? message = null)
+ => new(TypedResults.NotFound(message));
+
+ ///
+ /// Performs an implicit conversion from GetAddressesByPostalCodesResult to IResult.
+ ///
+ public static IResult ToIResult(GetAddressesByPostalCodesResult result)
+ => result.Result;
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/EventArgs/MyContracts/Interfaces/IGetEventArgByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/EventArgs/MyContracts/Interfaces/IGetEventArgByIdHandler.verified.cs
new file mode 100644
index 000000000..3a4df487b
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/EventArgs/MyContracts/Interfaces/IGetEventArgByIdHandler.verified.cs
@@ -0,0 +1,25 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.EventArgs.MyContracts;
+
+///
+/// Domain Interface for RequestHandler.
+/// Description: Get EventArgs By Id.
+/// Operation: GetEventArgById.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface IGetEventArgByIdHandler
+{
+ ///
+ /// Execute method.
+ ///
+ /// The parameters.
+ /// The cancellation token.
+ Task ExecuteAsync(
+ GetEventArgByIdParameters parameters,
+ CancellationToken cancellationToken = default);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/EventArgs/MyContracts/Interfaces/IGetEventArgsHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/EventArgs/MyContracts/Interfaces/IGetEventArgsHandler.verified.cs
new file mode 100644
index 000000000..95b0fb798
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/EventArgs/MyContracts/Interfaces/IGetEventArgsHandler.verified.cs
@@ -0,0 +1,23 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.EventArgs.MyContracts;
+
+///
+/// Domain Interface for RequestHandler.
+/// Description: Get EventArgs List.
+/// Operation: GetEventArgs.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface IGetEventArgsHandler
+{
+ ///
+ /// Execute method.
+ ///
+ /// The cancellation token.
+ Task ExecuteAsync(
+ CancellationToken cancellationToken = default);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/EventArgs/MyContracts/Models/EventArgs.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/EventArgs/MyContracts/Models/EventArgs.verified.cs
new file mode 100644
index 000000000..07248fbcf
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/EventArgs/MyContracts/Models/EventArgs.verified.cs
@@ -0,0 +1,15 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.EventArgs.MyContracts;
+
+///
+/// EventArgs.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record EventArgs(
+ Guid Id,
+ string EventName);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/EventArgs/MyContracts/Parameters/GetEventArgByIdParameters.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/EventArgs/MyContracts/Parameters/GetEventArgByIdParameters.verified.cs
new file mode 100644
index 000000000..f033abc2a
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/EventArgs/MyContracts/Parameters/GetEventArgByIdParameters.verified.cs
@@ -0,0 +1,16 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.EventArgs.MyContracts;
+
+///
+/// Parameters for operation request.
+/// Description: Get EventArgs By Id.
+/// Operation: GetEventArgById.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record GetEventArgByIdParameters(
+ [property: FromRoute, Required] string Id);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/EventArgs/MyContracts/Results/GetEventArgByIdResult.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/EventArgs/MyContracts/Results/GetEventArgByIdResult.verified.cs
new file mode 100644
index 000000000..b698dd88e
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/EventArgs/MyContracts/Results/GetEventArgByIdResult.verified.cs
@@ -0,0 +1,41 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.EventArgs.MyContracts;
+
+///
+/// Results for operation request.
+/// Description: Get EventArgs By Id.
+/// Operation: GetEventArgById.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class GetEventArgByIdResult
+{
+ private GetEventArgByIdResult(IResult result)
+ {
+ Result = result;
+ }
+
+ public IResult Result { get; }
+
+ ///
+ /// 200 - Ok response.
+ ///
+ public static GetEventArgByIdResult Ok(EventArgs result)
+ => new(TypedResults.Ok(result));
+
+ ///
+ /// 404 - NotFound response.
+ ///
+ public static GetEventArgByIdResult NotFound(string? message = null)
+ => new(TypedResults.NotFound(message));
+
+ ///
+ /// Performs an implicit conversion from GetEventArgByIdResult to IResult.
+ ///
+ public static IResult ToIResult(GetEventArgByIdResult result)
+ => result.Result;
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/EventArgs/MyContracts/Results/GetEventArgsResult.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/EventArgs/MyContracts/Results/GetEventArgsResult.verified.cs
new file mode 100644
index 000000000..6730ef585
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/EventArgs/MyContracts/Results/GetEventArgsResult.verified.cs
@@ -0,0 +1,35 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.EventArgs.MyContracts;
+
+///
+/// Results for operation request.
+/// Description: Get EventArgs List.
+/// Operation: GetEventArgs.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class GetEventArgsResult
+{
+ private GetEventArgsResult(IResult result)
+ {
+ Result = result;
+ }
+
+ public IResult Result { get; }
+
+ ///
+ /// 200 - Ok response.
+ ///
+ public static GetEventArgsResult Ok(List result)
+ => new(TypedResults.Ok(result));
+
+ ///
+ /// Performs an implicit conversion from GetEventArgsResult to IResult.
+ ///
+ public static IResult ToIResult(GetEventArgsResult result)
+ => result.Result;
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Interfaces/IGetFileByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Interfaces/IGetFileByIdHandler.verified.cs
new file mode 100644
index 000000000..a10a53e3e
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Interfaces/IGetFileByIdHandler.verified.cs
@@ -0,0 +1,25 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Files.MyContracts;
+
+///
+/// Domain Interface for RequestHandler.
+/// Description: Get File By Id.
+/// Operation: GetFileById.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface IGetFileByIdHandler
+{
+ ///
+ /// Execute method.
+ ///
+ /// The parameters.
+ /// The cancellation token.
+ Task ExecuteAsync(
+ GetFileByIdParameters parameters,
+ CancellationToken cancellationToken = default);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Interfaces/IUploadMultiFilesAsFormDataHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Interfaces/IUploadMultiFilesAsFormDataHandler.verified.cs
new file mode 100644
index 000000000..1ddda3760
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Interfaces/IUploadMultiFilesAsFormDataHandler.verified.cs
@@ -0,0 +1,25 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Files.MyContracts;
+
+///
+/// Domain Interface for RequestHandler.
+/// Description: Upload multi files as form data.
+/// Operation: UploadMultiFilesAsFormData.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface IUploadMultiFilesAsFormDataHandler
+{
+ ///
+ /// Execute method.
+ ///
+ /// The parameters.
+ /// The cancellation token.
+ Task ExecuteAsync(
+ UploadMultiFilesAsFormDataParameters parameters,
+ CancellationToken cancellationToken = default);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Interfaces/IUploadSingleFileAsFormDataHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Interfaces/IUploadSingleFileAsFormDataHandler.verified.cs
new file mode 100644
index 000000000..dcf66124e
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Interfaces/IUploadSingleFileAsFormDataHandler.verified.cs
@@ -0,0 +1,25 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Files.MyContracts;
+
+///
+/// Domain Interface for RequestHandler.
+/// Description: Upload a file as OctetStream.
+/// Operation: UploadSingleFileAsFormData.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface IUploadSingleFileAsFormDataHandler
+{
+ ///
+ /// Execute method.
+ ///
+ /// The parameters.
+ /// The cancellation token.
+ Task ExecuteAsync(
+ UploadSingleFileAsFormDataParameters parameters,
+ CancellationToken cancellationToken = default);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Interfaces/IUploadSingleObjectWithFileAsFormDataHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Interfaces/IUploadSingleObjectWithFileAsFormDataHandler.verified.cs
new file mode 100644
index 000000000..bdaeeac4c
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Interfaces/IUploadSingleObjectWithFileAsFormDataHandler.verified.cs
@@ -0,0 +1,25 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Files.MyContracts;
+
+///
+/// Domain Interface for RequestHandler.
+/// Description: Upload a file as FormData.
+/// Operation: UploadSingleObjectWithFileAsFormData.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface IUploadSingleObjectWithFileAsFormDataHandler
+{
+ ///
+ /// Execute method.
+ ///
+ /// The parameters.
+ /// The cancellation token.
+ Task ExecuteAsync(
+ UploadSingleObjectWithFileAsFormDataParameters parameters,
+ CancellationToken cancellationToken = default);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Interfaces/IUploadSingleObjectWithFilesAsFormDataHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Interfaces/IUploadSingleObjectWithFilesAsFormDataHandler.verified.cs
new file mode 100644
index 000000000..47e56e87e
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Interfaces/IUploadSingleObjectWithFilesAsFormDataHandler.verified.cs
@@ -0,0 +1,25 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Files.MyContracts;
+
+///
+/// Domain Interface for RequestHandler.
+/// Description: Upload files as FormData.
+/// Operation: UploadSingleObjectWithFilesAsFormData.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface IUploadSingleObjectWithFilesAsFormDataHandler
+{
+ ///
+ /// Execute method.
+ ///
+ /// The parameters.
+ /// The cancellation token.
+ Task ExecuteAsync(
+ UploadSingleObjectWithFilesAsFormDataParameters parameters,
+ CancellationToken cancellationToken = default);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Models/FileAsFormDataRequest.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Models/FileAsFormDataRequest.verified.cs
new file mode 100644
index 000000000..ccf6ffb2b
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Models/FileAsFormDataRequest.verified.cs
@@ -0,0 +1,16 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Files.MyContracts;
+
+///
+/// FileAsFormDataRequest.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record FileAsFormDataRequest(
+ [property: Required] string ItemName,
+ IFormFile? File,
+ [property: Required] List Items);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Models/FilesAsFormDataRequest.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Models/FilesAsFormDataRequest.verified.cs
new file mode 100644
index 000000000..95f831b87
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Models/FilesAsFormDataRequest.verified.cs
@@ -0,0 +1,14 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Files.MyContracts;
+
+///
+/// FilesAsFormDataRequest.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record FilesAsFormDataRequest(
+ List Files);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Parameters/GetFileByIdParameters.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Parameters/GetFileByIdParameters.verified.cs
new file mode 100644
index 000000000..584c4c7e1
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Parameters/GetFileByIdParameters.verified.cs
@@ -0,0 +1,16 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Files.MyContracts;
+
+///
+/// Parameters for operation request.
+/// Description: Get File By Id.
+/// Operation: GetFileById.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record GetFileByIdParameters(
+ [property: FromRoute, Required] string Id);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Parameters/UploadMultiFilesAsFormDataParameters.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Parameters/UploadMultiFilesAsFormDataParameters.verified.cs
new file mode 100644
index 000000000..cc24ae2a9
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Parameters/UploadMultiFilesAsFormDataParameters.verified.cs
@@ -0,0 +1,16 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Files.MyContracts;
+
+///
+/// Parameters for operation request.
+/// Description: Upload multi files as form data.
+/// Operation: UploadMultiFilesAsFormData.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record UploadMultiFilesAsFormDataParameters(
+ [property: FromForm, Required] IFormFile Request);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Parameters/UploadSingleFileAsFormDataParameters.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Parameters/UploadSingleFileAsFormDataParameters.verified.cs
new file mode 100644
index 000000000..39c947b12
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Parameters/UploadSingleFileAsFormDataParameters.verified.cs
@@ -0,0 +1,16 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Files.MyContracts;
+
+///
+/// Parameters for operation request.
+/// Description: Upload a file as OctetStream.
+/// Operation: UploadSingleFileAsFormData.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record UploadSingleFileAsFormDataParameters(
+ [property: FromBody, Required] IFormFile Request);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Parameters/UploadSingleObjectWithFileAsFormDataParameters.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Parameters/UploadSingleObjectWithFileAsFormDataParameters.verified.cs
new file mode 100644
index 000000000..0ef601909
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Parameters/UploadSingleObjectWithFileAsFormDataParameters.verified.cs
@@ -0,0 +1,16 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Files.MyContracts;
+
+///
+/// Parameters for operation request.
+/// Description: Upload a file as FormData.
+/// Operation: UploadSingleObjectWithFileAsFormData.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record UploadSingleObjectWithFileAsFormDataParameters(
+ [property: FromForm, Required] FileAsFormDataRequest Request);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Parameters/UploadSingleObjectWithFilesAsFormDataParameters.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Parameters/UploadSingleObjectWithFilesAsFormDataParameters.verified.cs
new file mode 100644
index 000000000..b72f054c2
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Parameters/UploadSingleObjectWithFilesAsFormDataParameters.verified.cs
@@ -0,0 +1,16 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Files.MyContracts;
+
+///
+/// Parameters for operation request.
+/// Description: Upload files as FormData.
+/// Operation: UploadSingleObjectWithFilesAsFormData.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record UploadSingleObjectWithFilesAsFormDataParameters(
+ [property: FromForm, Required] FilesAsFormDataRequest Request);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Results/GetFileByIdResult.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Results/GetFileByIdResult.verified.cs
new file mode 100644
index 000000000..3c6a7cc14
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Results/GetFileByIdResult.verified.cs
@@ -0,0 +1,35 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Files.MyContracts;
+
+///
+/// Results for operation request.
+/// Description: Get File By Id.
+/// Operation: GetFileById.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class GetFileByIdResult
+{
+ private GetFileByIdResult(IResult result)
+ {
+ Result = result;
+ }
+
+ public IResult Result { get; }
+
+ ///
+ /// 200 - Ok response.
+ ///
+ public static GetFileByIdResult Ok(string? message = null)
+ => new(TypedResults.Ok(message));
+
+ ///
+ /// 404 - NotFound response.
+ ///
+ public static GetFileByIdResult NotFound(string? message = null)
+ => new(TypedResults.NotFound(message));
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Results/UploadMultiFilesAsFormDataResult.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Results/UploadMultiFilesAsFormDataResult.verified.cs
new file mode 100644
index 000000000..4e920baf9
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Results/UploadMultiFilesAsFormDataResult.verified.cs
@@ -0,0 +1,35 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Files.MyContracts;
+
+///
+/// Results for operation request.
+/// Description: Upload multi files as form data.
+/// Operation: UploadMultiFilesAsFormData.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class UploadMultiFilesAsFormDataResult
+{
+ private UploadMultiFilesAsFormDataResult(IResult result)
+ {
+ Result = result;
+ }
+
+ public IResult Result { get; }
+
+ ///
+ /// 200 - Ok response.
+ ///
+ public static UploadMultiFilesAsFormDataResult Ok(string? message = null)
+ => new(TypedResults.Ok(message));
+
+ ///
+ /// Performs an implicit conversion from UploadMultiFilesAsFormDataResult to IResult.
+ ///
+ public static IResult ToIResult(UploadMultiFilesAsFormDataResult result)
+ => result.Result;
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Results/UploadSingleFileAsFormDataResult.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Results/UploadSingleFileAsFormDataResult.verified.cs
new file mode 100644
index 000000000..744a7ca11
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Results/UploadSingleFileAsFormDataResult.verified.cs
@@ -0,0 +1,35 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Files.MyContracts;
+
+///
+/// Results for operation request.
+/// Description: Upload a file as OctetStream.
+/// Operation: UploadSingleFileAsFormData.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class UploadSingleFileAsFormDataResult
+{
+ private UploadSingleFileAsFormDataResult(IResult result)
+ {
+ Result = result;
+ }
+
+ public IResult Result { get; }
+
+ ///
+ /// 200 - Ok response.
+ ///
+ public static UploadSingleFileAsFormDataResult Ok(string? message = null)
+ => new(TypedResults.Ok(message));
+
+ ///
+ /// Performs an implicit conversion from UploadSingleFileAsFormDataResult to IResult.
+ ///
+ public static IResult ToIResult(UploadSingleFileAsFormDataResult result)
+ => result.Result;
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Results/UploadSingleObjectWithFileAsFormDataResult.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Results/UploadSingleObjectWithFileAsFormDataResult.verified.cs
new file mode 100644
index 000000000..0ac159492
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Results/UploadSingleObjectWithFileAsFormDataResult.verified.cs
@@ -0,0 +1,41 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Files.MyContracts;
+
+///
+/// Results for operation request.
+/// Description: Upload a file as FormData.
+/// Operation: UploadSingleObjectWithFileAsFormData.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class UploadSingleObjectWithFileAsFormDataResult
+{
+ private UploadSingleObjectWithFileAsFormDataResult(IResult result)
+ {
+ Result = result;
+ }
+
+ public IResult Result { get; }
+
+ ///
+ /// 200 - Ok response.
+ ///
+ public static UploadSingleObjectWithFileAsFormDataResult Ok(string? message = null)
+ => new(TypedResults.Ok(message));
+
+ ///
+ /// 400 - BadRequest response.
+ ///
+ public static UploadSingleObjectWithFileAsFormDataResult BadRequest(string? message = null)
+ => new(TypedResults.BadRequest(message));
+
+ ///
+ /// Performs an implicit conversion from UploadSingleObjectWithFileAsFormDataResult to IResult.
+ ///
+ public static IResult ToIResult(UploadSingleObjectWithFileAsFormDataResult result)
+ => result.Result;
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Results/UploadSingleObjectWithFilesAsFormDataResult.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Results/UploadSingleObjectWithFilesAsFormDataResult.verified.cs
new file mode 100644
index 000000000..52236f827
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Files/MyContracts/Results/UploadSingleObjectWithFilesAsFormDataResult.verified.cs
@@ -0,0 +1,41 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Files.MyContracts;
+
+///
+/// Results for operation request.
+/// Description: Upload files as FormData.
+/// Operation: UploadSingleObjectWithFilesAsFormData.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class UploadSingleObjectWithFilesAsFormDataResult
+{
+ private UploadSingleObjectWithFilesAsFormDataResult(IResult result)
+ {
+ Result = result;
+ }
+
+ public IResult Result { get; }
+
+ ///
+ /// 200 - Ok response.
+ ///
+ public static UploadSingleObjectWithFilesAsFormDataResult Ok(string? message = null)
+ => new(TypedResults.Ok(message));
+
+ ///
+ /// 400 - BadRequest response.
+ ///
+ public static UploadSingleObjectWithFilesAsFormDataResult BadRequest(string? message = null)
+ => new(TypedResults.BadRequest(message));
+
+ ///
+ /// Performs an implicit conversion from UploadSingleObjectWithFilesAsFormDataResult to IResult.
+ ///
+ public static IResult ToIResult(UploadSingleObjectWithFilesAsFormDataResult result)
+ => result.Result;
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/GlobalUsings.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/GlobalUsings.verified.cs
new file mode 100644
index 000000000..e1124768d
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/GlobalUsings.verified.cs
@@ -0,0 +1,23 @@
+global using System.CodeDom.Compiler;
+global using System.ComponentModel.DataAnnotations;
+global using System.Diagnostics.CodeAnalysis;
+
+global using Atc.Rest.MinimalApi.Abstractions;
+global using Atc.Rest.MinimalApi.Filters.Endpoints;
+global using Atc.Rest.Results;
+
+global using Microsoft.AspNetCore.Authorization;
+global using Microsoft.AspNetCore.Builder;
+global using Microsoft.AspNetCore.Http;
+global using Microsoft.AspNetCore.Mvc;
+
+global using Structure1.Api.Generated.Accounts.MyContracts;
+global using Structure1.Api.Generated.Addresses.MyContracts;
+global using Structure1.Api.Generated.EventArgs.MyContracts;
+global using Structure1.Api.Generated.Files.MyContracts;
+global using Structure1.Api.Generated.Items.MyContracts;
+global using Structure1.Api.Generated.MyContracts;
+global using Structure1.Api.Generated.Orders.MyContracts;
+global using Structure1.Api.Generated.RouteWithDash.MyContracts;
+global using Structure1.Api.Generated.Tasks.MyContracts;
+global using Structure1.Api.Generated.Users.MyContracts;
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/IApiContractAssemblyMarker.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/IApiContractAssemblyMarker.verified.cs
new file mode 100644
index 000000000..ce1be25cb
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/IApiContractAssemblyMarker.verified.cs
@@ -0,0 +1,13 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated;
+
+[SuppressMessage("Design", "CA1040:Avoid empty interfaces", Justification = "OK.")]
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface IApiContractAssemblyMarker
+{
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Items/MyContracts/Interfaces/ICreateItemHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Items/MyContracts/Interfaces/ICreateItemHandler.verified.cs
new file mode 100644
index 000000000..e6c623a37
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Items/MyContracts/Interfaces/ICreateItemHandler.verified.cs
@@ -0,0 +1,25 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Items.MyContracts;
+
+///
+/// Domain Interface for RequestHandler.
+/// Description: Create a new item.
+/// Operation: CreateItem.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface ICreateItemHandler
+{
+ ///
+ /// Execute method.
+ ///
+ /// The parameters.
+ /// The cancellation token.
+ Task ExecuteAsync(
+ CreateItemParameters parameters,
+ CancellationToken cancellationToken = default);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Items/MyContracts/Interfaces/IUpdateItemHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Items/MyContracts/Interfaces/IUpdateItemHandler.verified.cs
new file mode 100644
index 000000000..cb7998fd5
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Items/MyContracts/Interfaces/IUpdateItemHandler.verified.cs
@@ -0,0 +1,25 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Items.MyContracts;
+
+///
+/// Domain Interface for RequestHandler.
+/// Description: Updates an item.
+/// Operation: UpdateItem.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface IUpdateItemHandler
+{
+ ///
+ /// Execute method.
+ ///
+ /// The parameters.
+ /// The cancellation token.
+ Task ExecuteAsync(
+ UpdateItemParameters parameters,
+ CancellationToken cancellationToken = default);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Items/MyContracts/Models/CreateItemRequest.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Items/MyContracts/Models/CreateItemRequest.verified.cs
new file mode 100644
index 000000000..660841249
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Items/MyContracts/Models/CreateItemRequest.verified.cs
@@ -0,0 +1,15 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Items.MyContracts;
+
+///
+/// CreateItemRequest.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record CreateItemRequest(
+ [property: Required] Item Item,
+ [property: Required] List- MyItems);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Items/MyContracts/Models/Item.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Items/MyContracts/Models/Item.verified.cs
new file mode 100644
index 000000000..a5e4b9a94
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Items/MyContracts/Models/Item.verified.cs
@@ -0,0 +1,14 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Items.MyContracts;
+
+///
+/// Item.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record Item(
+ [property: Required] string Name);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Items/MyContracts/Models/UpdateItemRequest.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Items/MyContracts/Models/UpdateItemRequest.verified.cs
new file mode 100644
index 000000000..6e87b9045
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Items/MyContracts/Models/UpdateItemRequest.verified.cs
@@ -0,0 +1,14 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Items.MyContracts;
+
+///
+/// UpdateItemRequest.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record UpdateItemRequest(
+ [property: Required] Item Item);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Items/MyContracts/Parameters/CreateItemParameters.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Items/MyContracts/Parameters/CreateItemParameters.verified.cs
new file mode 100644
index 000000000..26a9cb90d
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Items/MyContracts/Parameters/CreateItemParameters.verified.cs
@@ -0,0 +1,16 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Items.MyContracts;
+
+///
+/// Parameters for operation request.
+/// Description: Create a new item.
+/// Operation: CreateItem.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record CreateItemParameters(
+ [property: FromBody, Required] CreateItemRequest Request);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Items/MyContracts/Parameters/UpdateItemParameters.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Items/MyContracts/Parameters/UpdateItemParameters.verified.cs
new file mode 100644
index 000000000..7df0c820f
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Items/MyContracts/Parameters/UpdateItemParameters.verified.cs
@@ -0,0 +1,17 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Items.MyContracts;
+
+///
+/// Parameters for operation request.
+/// Description: Updates an item.
+/// Operation: UpdateItem.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record UpdateItemParameters(
+ [property: FromRoute, Required] Guid Id,
+ [property: FromBody, Required] UpdateItemRequest Request);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Items/MyContracts/Results/CreateItemResult.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Items/MyContracts/Results/CreateItemResult.verified.cs
new file mode 100644
index 000000000..55a004d88
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Items/MyContracts/Results/CreateItemResult.verified.cs
@@ -0,0 +1,35 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Items.MyContracts;
+
+///
+/// Results for operation request.
+/// Description: Create a new item.
+/// Operation: CreateItem.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class CreateItemResult
+{
+ private CreateItemResult(IResult result)
+ {
+ Result = result;
+ }
+
+ public IResult Result { get; }
+
+ ///
+ /// 200 - Ok response.
+ ///
+ public static CreateItemResult Ok(string? message = null)
+ => new(TypedResults.Ok(message));
+
+ ///
+ /// Performs an implicit conversion from CreateItemResult to IResult.
+ ///
+ public static IResult ToIResult(CreateItemResult result)
+ => result.Result;
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Items/MyContracts/Results/UpdateItemResult.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Items/MyContracts/Results/UpdateItemResult.verified.cs
new file mode 100644
index 000000000..db19534c8
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Items/MyContracts/Results/UpdateItemResult.verified.cs
@@ -0,0 +1,35 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Items.MyContracts;
+
+///
+/// Results for operation request.
+/// Description: Updates an item.
+/// Operation: UpdateItem.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class UpdateItemResult
+{
+ private UpdateItemResult(IResult result)
+ {
+ Result = result;
+ }
+
+ public IResult Result { get; }
+
+ ///
+ /// 200 - Ok response.
+ ///
+ public static UpdateItemResult Ok(Guid result)
+ => new(TypedResults.Ok(result));
+
+ ///
+ /// Performs an implicit conversion from UpdateItemResult to IResult.
+ ///
+ public static IResult ToIResult(UpdateItemResult result)
+ => result.Result;
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyContracts/_EnumerationTypes/ColorType.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyContracts/_EnumerationTypes/ColorType.verified.cs
new file mode 100644
index 000000000..3df9ddd51
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyContracts/_EnumerationTypes/ColorType.verified.cs
@@ -0,0 +1,21 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.MyContracts;
+
+///
+/// Enumeration: ColorType.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+[Flags]
+public enum ColorType
+{
+ None = 0,
+ Black = 1,
+ White = 2,
+ Yellow = 4,
+ Red = 8,
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyContracts/_EnumerationTypes/GenderType.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyContracts/_EnumerationTypes/GenderType.verified.cs
new file mode 100644
index 000000000..fbdaffc77
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyContracts/_EnumerationTypes/GenderType.verified.cs
@@ -0,0 +1,19 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.MyContracts;
+
+///
+/// Enumeration: GenderType.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public enum GenderType
+{
+ None,
+ NonBinary,
+ Male,
+ Female,
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyContracts/_Shared/Address.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyContracts/_Shared/Address.verified.cs
new file mode 100644
index 000000000..dd19143a4
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyContracts/_Shared/Address.verified.cs
@@ -0,0 +1,18 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.MyContracts;
+
+///
+/// Address.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record Address(
+ [property: StringLength(255)] string StreetName,
+ string StreetNumber,
+ string PostalCode,
+ string CityName,
+ Country MyCountry);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyContracts/_Shared/Country.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyContracts/_Shared/Country.verified.cs
new file mode 100644
index 000000000..7907d838e
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyContracts/_Shared/Country.verified.cs
@@ -0,0 +1,16 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.MyContracts;
+
+///
+/// Country.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record Country(
+ [property: Required] string Name,
+ [property: Required, MinLength(2), MaxLength(2), RegularExpression("^[A-Za-z]{2}$")] string Alpha2code,
+ [property: Required, MinLength(3), MaxLength(3), RegularExpression("^[A-Za-z]{3}$")] string Alpha3code);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyEndpoints/AccountsEndpointDefinition.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyEndpoints/AccountsEndpointDefinition.verified.cs
new file mode 100644
index 000000000..fd735a510
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyEndpoints/AccountsEndpointDefinition.verified.cs
@@ -0,0 +1,60 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.MyEndpoints;
+
+///
+/// Endpoint definitions.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public sealed class AccountsEndpointDefinition : IEndpointDefinition
+{
+ internal const string ApiRouteBase = "/api/v1/accounts";
+
+ public void DefineEndpoints(
+ WebApplication app)
+ {
+ var accounts = app
+ .NewVersionedApi("Accounts")
+ .MapGroup(ApiRouteBase);
+
+ accounts
+ .MapPut("{accountId}/name", UpdateAccountName)
+ .WithName("UpdateAccountName")
+ .WithSummary("Update name of account.")
+ .WithDescription("Update name of account.")
+ .AddEndpointFilter>()
+ .Produces()
+ .Produces(StatusCodes.Status400BadRequest);
+
+ accounts
+ .MapPost("{accountId}/name", SetAccountName)
+ .WithName("SetAccountName")
+ .WithSummary("Set name of account.")
+ .WithDescription("Set name of account.")
+ .AddEndpointFilter>()
+ .Produces()
+ .Produces(StatusCodes.Status400BadRequest);
+ }
+
+ internal async Task UpdateAccountName(
+ [FromServices] IUpdateAccountNameHandler handler,
+ [AsParameters] UpdateAccountNameParameters parameters,
+ CancellationToken cancellationToken)
+ => UpdateAccountNameResult.ToIResult(
+ await handler.ExecuteAsync(
+ parameters,
+ cancellationToken));
+
+ internal async Task SetAccountName(
+ [FromServices] ISetAccountNameHandler handler,
+ [AsParameters] SetAccountNameParameters parameters,
+ CancellationToken cancellationToken)
+ => SetAccountNameResult.ToIResult(
+ await handler.ExecuteAsync(
+ parameters,
+ cancellationToken));
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyEndpoints/AddressesEndpointDefinition.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyEndpoints/AddressesEndpointDefinition.verified.cs
new file mode 100644
index 000000000..9c0e31f5c
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyEndpoints/AddressesEndpointDefinition.verified.cs
@@ -0,0 +1,43 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.MyEndpoints;
+
+///
+/// Endpoint definitions.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public sealed class AddressesEndpointDefinition : IEndpointDefinition
+{
+ internal const string ApiRouteBase = "/api/v1/addresses";
+
+ public void DefineEndpoints(
+ WebApplication app)
+ {
+ var addresses = app
+ .NewVersionedApi("Addresses")
+ .MapGroup(ApiRouteBase);
+
+ addresses
+ .MapGet("{postalCode}", GetAddressesByPostalCodes)
+ .WithName("GetAddressesByPostalCodes")
+ .WithSummary("Get addresses by postal code.")
+ .WithDescription("Get addresses by postal code.")
+ .AddEndpointFilter>()
+ .Produces>()
+ .Produces(StatusCodes.Status400BadRequest)
+ .Produces(StatusCodes.Status404NotFound);
+ }
+
+ internal async Task GetAddressesByPostalCodes(
+ [FromServices] IGetAddressesByPostalCodesHandler handler,
+ [AsParameters] GetAddressesByPostalCodesParameters parameters,
+ CancellationToken cancellationToken)
+ => GetAddressesByPostalCodesResult.ToIResult(
+ await handler.ExecuteAsync(
+ parameters,
+ cancellationToken));
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyEndpoints/EventArgsEndpointDefinition.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyEndpoints/EventArgsEndpointDefinition.verified.cs
new file mode 100644
index 000000000..06ab7175d
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyEndpoints/EventArgsEndpointDefinition.verified.cs
@@ -0,0 +1,57 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.MyEndpoints;
+
+///
+/// Endpoint definitions.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public sealed class EventArgsEndpointDefinition : IEndpointDefinition
+{
+ internal const string ApiRouteBase = "/api/v1/eventArgs";
+
+ public void DefineEndpoints(
+ WebApplication app)
+ {
+ var eventArgs = app
+ .NewVersionedApi("EventArgs")
+ .MapGroup(ApiRouteBase);
+
+ eventArgs
+ .MapGet("/", GetEventArgs)
+ .WithName("GetEventArgs")
+ .WithSummary("Get EventArgs List.")
+ .WithDescription("Get EventArgs List.")
+ .Produces>();
+
+ eventArgs
+ .MapGet("{id}", GetEventArgById)
+ .WithName("GetEventArgById")
+ .WithSummary("Get EventArgs By Id.")
+ .WithDescription("Get EventArgs By Id.")
+ .AddEndpointFilter>()
+ .Produces()
+ .Produces(StatusCodes.Status400BadRequest)
+ .Produces(StatusCodes.Status404NotFound);
+ }
+
+ internal async Task GetEventArgs(
+ [FromServices] IGetEventArgsHandler handler,
+ CancellationToken cancellationToken)
+ => GetEventArgsResult.ToIResult(
+ await handler.ExecuteAsync(
+ cancellationToken));
+
+ internal async Task GetEventArgById(
+ [FromServices] IGetEventArgByIdHandler handler,
+ [AsParameters] GetEventArgByIdParameters parameters,
+ CancellationToken cancellationToken)
+ => GetEventArgByIdResult.ToIResult(
+ await handler.ExecuteAsync(
+ parameters,
+ cancellationToken));
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyEndpoints/FilesEndpointDefinition.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyEndpoints/FilesEndpointDefinition.verified.cs
new file mode 100644
index 000000000..8a17daecd
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyEndpoints/FilesEndpointDefinition.verified.cs
@@ -0,0 +1,115 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.MyEndpoints;
+
+///
+/// Endpoint definitions.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public sealed class FilesEndpointDefinition : IEndpointDefinition
+{
+ internal const string ApiRouteBase = "/api/v1/files";
+
+ public void DefineEndpoints(
+ WebApplication app)
+ {
+ var files = app
+ .NewVersionedApi("Files")
+ .MapGroup(ApiRouteBase);
+
+ files
+ .MapPost("form-data/multiFile", UploadMultiFilesAsFormData)
+ .WithName("UploadMultiFilesAsFormData")
+ .WithSummary("Upload multi files as form data.")
+ .WithDescription("Upload multi files as form data.")
+ .AddEndpointFilter>()
+ .Produces()
+ .Produces(StatusCodes.Status400BadRequest);
+
+ files
+ .MapPost("form-data/singleFile", UploadSingleFileAsFormData)
+ .WithName("UploadSingleFileAsFormData")
+ .WithSummary("Upload a file as OctetStream.")
+ .WithDescription("Upload a file as OctetStream.")
+ .AddEndpointFilter>()
+ .Produces()
+ .Produces(StatusCodes.Status400BadRequest);
+
+ files
+ .MapPost("form-data/singleObject", UploadSingleObjectWithFileAsFormData)
+ .WithName("UploadSingleObjectWithFileAsFormData")
+ .WithSummary("Upload a file as FormData.")
+ .WithDescription("Upload a file as FormData.")
+ .AddEndpointFilter>()
+ .Produces()
+ .Produces(StatusCodes.Status400BadRequest);
+
+ files
+ .MapPost("form-data/singleObjectMultiFile", UploadSingleObjectWithFilesAsFormData)
+ .WithName("UploadSingleObjectWithFilesAsFormData")
+ .WithSummary("Upload files as FormData.")
+ .WithDescription("Upload files as FormData.")
+ .AddEndpointFilter>()
+ .Produces()
+ .Produces(StatusCodes.Status400BadRequest);
+
+ files
+ .MapGet("{id}", GetFileById)
+ .WithName("GetFileById")
+ .WithSummary("Get File By Id.")
+ .WithDescription("Get File By Id.")
+ .AddEndpointFilter>()
+ .Produces()
+ .Produces(StatusCodes.Status400BadRequest)
+ .Produces(StatusCodes.Status404NotFound);
+ }
+
+ internal async Task UploadMultiFilesAsFormData(
+ [FromServices] IUploadMultiFilesAsFormDataHandler handler,
+ [AsParameters] UploadMultiFilesAsFormDataParameters parameters,
+ CancellationToken cancellationToken)
+ => UploadMultiFilesAsFormDataResult.ToIResult(
+ await handler.ExecuteAsync(
+ parameters,
+ cancellationToken));
+
+ internal async Task UploadSingleFileAsFormData(
+ [FromServices] IUploadSingleFileAsFormDataHandler handler,
+ [AsParameters] UploadSingleFileAsFormDataParameters parameters,
+ CancellationToken cancellationToken)
+ => UploadSingleFileAsFormDataResult.ToIResult(
+ await handler.ExecuteAsync(
+ parameters,
+ cancellationToken));
+
+ internal async Task UploadSingleObjectWithFileAsFormData(
+ [FromServices] IUploadSingleObjectWithFileAsFormDataHandler handler,
+ [AsParameters] UploadSingleObjectWithFileAsFormDataParameters parameters,
+ CancellationToken cancellationToken)
+ => UploadSingleObjectWithFileAsFormDataResult.ToIResult(
+ await handler.ExecuteAsync(
+ parameters,
+ cancellationToken));
+
+ internal async Task UploadSingleObjectWithFilesAsFormData(
+ [FromServices] IUploadSingleObjectWithFilesAsFormDataHandler handler,
+ [AsParameters] UploadSingleObjectWithFilesAsFormDataParameters parameters,
+ CancellationToken cancellationToken)
+ => UploadSingleObjectWithFilesAsFormDataResult.ToIResult(
+ await handler.ExecuteAsync(
+ parameters,
+ cancellationToken));
+
+ internal async Task GetFileById(
+ [FromServices] IGetFileByIdHandler handler,
+ [AsParameters] GetFileByIdParameters parameters,
+ CancellationToken cancellationToken)
+ => GetFileByIdResult.ToIResult(
+ await handler.ExecuteAsync(
+ parameters,
+ cancellationToken));
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyEndpoints/ItemsEndpointDefinition.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyEndpoints/ItemsEndpointDefinition.verified.cs
new file mode 100644
index 000000000..92b0a8ba5
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyEndpoints/ItemsEndpointDefinition.verified.cs
@@ -0,0 +1,60 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.MyEndpoints;
+
+///
+/// Endpoint definitions.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public sealed class ItemsEndpointDefinition : IEndpointDefinition
+{
+ internal const string ApiRouteBase = "/api/v1/items";
+
+ public void DefineEndpoints(
+ WebApplication app)
+ {
+ var items = app
+ .NewVersionedApi("Items")
+ .MapGroup(ApiRouteBase);
+
+ items
+ .MapPost("/", CreateItem)
+ .WithName("CreateItem")
+ .WithSummary("Create a new item.")
+ .WithDescription("Create a new item.")
+ .AddEndpointFilter>()
+ .Produces()
+ .Produces(StatusCodes.Status400BadRequest);
+
+ items
+ .MapPut("{id}", UpdateItem)
+ .WithName("UpdateItem")
+ .WithSummary("Updates an item.")
+ .WithDescription("Updates an item.")
+ .AddEndpointFilter>()
+ .Produces()
+ .Produces(StatusCodes.Status400BadRequest);
+ }
+
+ internal async Task CreateItem(
+ [FromServices] ICreateItemHandler handler,
+ [AsParameters] CreateItemParameters parameters,
+ CancellationToken cancellationToken)
+ => CreateItemResult.ToIResult(
+ await handler.ExecuteAsync(
+ parameters,
+ cancellationToken));
+
+ internal async Task UpdateItem(
+ [FromServices] IUpdateItemHandler handler,
+ [AsParameters] UpdateItemParameters parameters,
+ CancellationToken cancellationToken)
+ => UpdateItemResult.ToIResult(
+ await handler.ExecuteAsync(
+ parameters,
+ cancellationToken));
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyEndpoints/OrdersEndpointDefinition.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyEndpoints/OrdersEndpointDefinition.verified.cs
new file mode 100644
index 000000000..c94ba53ab
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyEndpoints/OrdersEndpointDefinition.verified.cs
@@ -0,0 +1,88 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.MyEndpoints;
+
+///
+/// Endpoint definitions.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public sealed class OrdersEndpointDefinition : IEndpointDefinition
+{
+ internal const string ApiRouteBase = "/api/v1/orders";
+
+ public void DefineEndpoints(
+ WebApplication app)
+ {
+ var orders = app
+ .NewVersionedApi("Orders")
+ .MapGroup(ApiRouteBase);
+
+ orders
+ .MapGet("/", GetOrders)
+ .WithName("GetOrders")
+ .WithSummary("Get orders.")
+ .WithDescription("Get orders.")
+ .AddEndpointFilter>()
+ .Produces>()
+ .Produces(StatusCodes.Status400BadRequest)
+ .Produces(StatusCodes.Status401Unauthorized)
+ .Produces(StatusCodes.Status404NotFound);
+
+ orders
+ .MapGet("{id}", GetOrderById)
+ .WithName("GetOrderById")
+ .WithSummary("Get order by id.")
+ .WithDescription("Get order by id.")
+ .AddEndpointFilter>()
+ .Produces()
+ .Produces(StatusCodes.Status400BadRequest)
+ .Produces(StatusCodes.Status404NotFound);
+
+ orders
+ .MapPatch("{id}", PatchOrdersId)
+ .WithName("PatchOrdersId")
+ .WithSummary("Update part of order by id.")
+ .WithDescription("Update part of order by id.")
+ .AddEndpointFilter>()
+ .Produces()
+ .Produces(StatusCodes.Status400BadRequest)
+ .Produces(StatusCodes.Status401Unauthorized)
+ .Produces(StatusCodes.Status403Forbidden)
+ .Produces(StatusCodes.Status404NotFound)
+ .Produces(StatusCodes.Status409Conflict)
+ .Produces(StatusCodes.Status502BadGateway);
+ }
+
+ internal async Task GetOrders(
+ [FromServices] IGetOrdersHandler handler,
+ [AsParameters] GetOrdersParameters parameters,
+ CancellationToken cancellationToken)
+ => GetOrdersResult.ToIResult(
+ await handler.ExecuteAsync(
+ parameters,
+ cancellationToken));
+
+ [AllowAnonymous]
+ internal async Task GetOrderById(
+ [FromServices] IGetOrderByIdHandler handler,
+ [AsParameters] GetOrderByIdParameters parameters,
+ CancellationToken cancellationToken)
+ => GetOrderByIdResult.ToIResult(
+ await handler.ExecuteAsync(
+ parameters,
+ cancellationToken));
+
+ [Authorize(Roles = "admin,operator")]
+ internal async Task PatchOrdersId(
+ [FromServices] IPatchOrdersIdHandler handler,
+ [AsParameters] PatchOrdersIdParameters parameters,
+ CancellationToken cancellationToken)
+ => PatchOrdersIdResult.ToIResult(
+ await handler.ExecuteAsync(
+ parameters,
+ cancellationToken));
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyEndpoints/RouteWithDashEndpointDefinition.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyEndpoints/RouteWithDashEndpointDefinition.verified.cs
new file mode 100644
index 000000000..085fe67bd
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyEndpoints/RouteWithDashEndpointDefinition.verified.cs
@@ -0,0 +1,38 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.MyEndpoints;
+
+///
+/// Endpoint definitions.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public sealed class RouteWithDashEndpointDefinition : IEndpointDefinition
+{
+ internal const string ApiRouteBase = "/api/v1/route-with-dash";
+
+ public void DefineEndpoints(
+ WebApplication app)
+ {
+ var routeWithDash = app
+ .NewVersionedApi("RouteWithDash")
+ .MapGroup(ApiRouteBase);
+
+ routeWithDash
+ .MapGet("/", GetRouteWithDash)
+ .WithName("GetRouteWithDash")
+ .WithSummary("Your GET endpoint.")
+ .WithDescription("Your GET endpoint.")
+ .Produces();
+ }
+
+ internal async Task GetRouteWithDash(
+ [FromServices] IGetRouteWithDashHandler handler,
+ CancellationToken cancellationToken)
+ => GetRouteWithDashResult.ToIResult(
+ await handler.ExecuteAsync(
+ cancellationToken));
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyEndpoints/TasksEndpointDefinition.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyEndpoints/TasksEndpointDefinition.verified.cs
new file mode 100644
index 000000000..ec754252e
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyEndpoints/TasksEndpointDefinition.verified.cs
@@ -0,0 +1,38 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.MyEndpoints;
+
+///
+/// Endpoint definitions.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public sealed class TasksEndpointDefinition : IEndpointDefinition
+{
+ internal const string ApiRouteBase = "/api/v1/tasks";
+
+ public void DefineEndpoints(
+ WebApplication app)
+ {
+ var tasks = app
+ .NewVersionedApi("Tasks")
+ .MapGroup(ApiRouteBase);
+
+ tasks
+ .MapGet("/", GetTasks)
+ .WithName("GetTasks")
+ .WithSummary("Returns tasks.")
+ .WithDescription("Returns tasks.")
+ .Produces>();
+ }
+
+ internal async Task GetTasks(
+ [FromServices] IGetTasksHandler handler,
+ CancellationToken cancellationToken)
+ => GetTasksResult.ToIResult(
+ await handler.ExecuteAsync(
+ cancellationToken));
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyEndpoints/UsersEndpointDefinition.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyEndpoints/UsersEndpointDefinition.verified.cs
new file mode 100644
index 000000000..dc9b0f954
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/MyEndpoints/UsersEndpointDefinition.verified.cs
@@ -0,0 +1,158 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.MyEndpoints;
+
+///
+/// Endpoint definitions.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public sealed class UsersEndpointDefinition : IEndpointDefinition
+{
+ internal const string ApiRouteBase = "/api/v1/users";
+
+ public void DefineEndpoints(
+ WebApplication app)
+ {
+ var users = app
+ .NewVersionedApi("Users")
+ .MapGroup(ApiRouteBase);
+
+ users
+ .MapGet("/", GetUsers)
+ .WithName("GetUsers")
+ .WithSummary("Get all users.")
+ .WithDescription("Get all users.")
+ .Produces>()
+ .Produces(StatusCodes.Status409Conflict);
+
+ users
+ .MapPost("/", PostUser)
+ .WithName("PostUser")
+ .WithSummary("Create a new user.")
+ .WithDescription("Create a new user.")
+ .AddEndpointFilter>()
+ .Produces(StatusCodes.Status201Created)
+ .Produces(StatusCodes.Status400BadRequest)
+ .Produces(StatusCodes.Status409Conflict);
+
+ users
+ .MapGet("email", GetUserByEmail)
+ .WithName("GetUserByEmail")
+ .WithSummary("Get user by email.")
+ .WithDescription("Get user by email.")
+ .AddEndpointFilter>()
+ .Produces()
+ .Produces(StatusCodes.Status400BadRequest)
+ .Produces(StatusCodes.Status404NotFound)
+ .Produces(StatusCodes.Status409Conflict);
+
+ users
+ .MapGet("{id}", GetUserById)
+ .WithName("GetUserById")
+ .WithSummary("Get user by id.")
+ .WithDescription("Get user by id.")
+ .AddEndpointFilter>()
+ .Produces()
+ .Produces(StatusCodes.Status400BadRequest)
+ .Produces(StatusCodes.Status404NotFound)
+ .Produces(StatusCodes.Status409Conflict);
+
+ users
+ .MapPut("{id}", UpdateUserById)
+ .WithName("UpdateUserById")
+ .WithSummary("Update user by id.")
+ .WithDescription("Update user by id.")
+ .AddEndpointFilter>()
+ .Produces()
+ .Produces(StatusCodes.Status400BadRequest)
+ .Produces(StatusCodes.Status404NotFound)
+ .Produces(StatusCodes.Status409Conflict);
+
+ users
+ .MapDelete("{id}", DeleteUserById)
+ .WithName("DeleteUserById")
+ .WithSummary("Delete user by id.")
+ .WithDescription("Delete user by id.")
+ .AddEndpointFilter>()
+ .Produces()
+ .Produces(StatusCodes.Status400BadRequest)
+ .Produces(StatusCodes.Status404NotFound)
+ .Produces(StatusCodes.Status409Conflict);
+
+ users
+ .MapPut("{id}/gender", UpdateMyTestGender)
+ .WithName("UpdateMyTestGender")
+ .WithSummary("Update gender on a user.")
+ .WithDescription("Update gender on a user.")
+ .AddEndpointFilter>()
+ .Produces()
+ .Produces(StatusCodes.Status400BadRequest)
+ .Produces(StatusCodes.Status404NotFound)
+ .Produces(StatusCodes.Status409Conflict);
+ }
+
+ internal async Task GetUsers(
+ [FromServices] IGetUsersHandler handler,
+ CancellationToken cancellationToken)
+ => GetUsersResult.ToIResult(
+ await handler.ExecuteAsync(
+ cancellationToken));
+
+ internal async Task PostUser(
+ [FromServices] IPostUserHandler handler,
+ [AsParameters] PostUserParameters parameters,
+ CancellationToken cancellationToken)
+ => PostUserResult.ToIResult(
+ await handler.ExecuteAsync(
+ parameters,
+ cancellationToken));
+
+ internal async Task GetUserByEmail(
+ [FromServices] IGetUserByEmailHandler handler,
+ [AsParameters] GetUserByEmailParameters parameters,
+ CancellationToken cancellationToken)
+ => GetUserByEmailResult.ToIResult(
+ await handler.ExecuteAsync(
+ parameters,
+ cancellationToken));
+
+ internal async Task GetUserById(
+ [FromServices] IGetUserByIdHandler handler,
+ [AsParameters] GetUserByIdParameters parameters,
+ CancellationToken cancellationToken)
+ => GetUserByIdResult.ToIResult(
+ await handler.ExecuteAsync(
+ parameters,
+ cancellationToken));
+
+ internal async Task UpdateUserById(
+ [FromServices] IUpdateUserByIdHandler handler,
+ [AsParameters] UpdateUserByIdParameters parameters,
+ CancellationToken cancellationToken)
+ => UpdateUserByIdResult.ToIResult(
+ await handler.ExecuteAsync(
+ parameters,
+ cancellationToken));
+
+ internal async Task DeleteUserById(
+ [FromServices] IDeleteUserByIdHandler handler,
+ [AsParameters] DeleteUserByIdParameters parameters,
+ CancellationToken cancellationToken)
+ => DeleteUserByIdResult.ToIResult(
+ await handler.ExecuteAsync(
+ parameters,
+ cancellationToken));
+
+ internal async Task UpdateMyTestGender(
+ [FromServices] IUpdateMyTestGenderHandler handler,
+ [AsParameters] UpdateMyTestGenderParameters parameters,
+ CancellationToken cancellationToken)
+ => UpdateMyTestGenderResult.ToIResult(
+ await handler.ExecuteAsync(
+ parameters,
+ cancellationToken));
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Orders/MyContracts/Interfaces/IGetOrderByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Orders/MyContracts/Interfaces/IGetOrderByIdHandler.verified.cs
new file mode 100644
index 000000000..3757a6f71
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Orders/MyContracts/Interfaces/IGetOrderByIdHandler.verified.cs
@@ -0,0 +1,25 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Orders.MyContracts;
+
+///
+/// Domain Interface for RequestHandler.
+/// Description: Get order by id.
+/// Operation: GetOrderById.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface IGetOrderByIdHandler
+{
+ ///
+ /// Execute method.
+ ///
+ /// The parameters.
+ /// The cancellation token.
+ Task ExecuteAsync(
+ GetOrderByIdParameters parameters,
+ CancellationToken cancellationToken = default);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Orders/MyContracts/Interfaces/IGetOrdersHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Orders/MyContracts/Interfaces/IGetOrdersHandler.verified.cs
new file mode 100644
index 000000000..2c1d391d2
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Orders/MyContracts/Interfaces/IGetOrdersHandler.verified.cs
@@ -0,0 +1,25 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Orders.MyContracts;
+
+///
+/// Domain Interface for RequestHandler.
+/// Description: Get orders.
+/// Operation: GetOrders.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface IGetOrdersHandler
+{
+ ///
+ /// Execute method.
+ ///
+ /// The parameters.
+ /// The cancellation token.
+ Task ExecuteAsync(
+ GetOrdersParameters parameters,
+ CancellationToken cancellationToken = default);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Orders/MyContracts/Interfaces/IPatchOrdersIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Orders/MyContracts/Interfaces/IPatchOrdersIdHandler.verified.cs
new file mode 100644
index 000000000..4e2849e04
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Orders/MyContracts/Interfaces/IPatchOrdersIdHandler.verified.cs
@@ -0,0 +1,25 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Orders.MyContracts;
+
+///
+/// Domain Interface for RequestHandler.
+/// Description: Update part of order by id.
+/// Operation: PatchOrdersId.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface IPatchOrdersIdHandler
+{
+ ///
+ /// Execute method.
+ ///
+ /// The parameters.
+ /// The cancellation token.
+ Task ExecuteAsync(
+ PatchOrdersIdParameters parameters,
+ CancellationToken cancellationToken = default);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Orders/MyContracts/Models/Order.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Orders/MyContracts/Models/Order.verified.cs
new file mode 100644
index 000000000..3472fdcf3
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Orders/MyContracts/Models/Order.verified.cs
@@ -0,0 +1,28 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Orders.MyContracts;
+
+///
+/// A single order.
+/// Hallo description with multiline and no ending dot.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record Order(
+ Guid Id,
+ string Description,
+ DateTimeOffset MyTime,
+ DateTimeOffset? MyNullableDateTime,
+ DateTimeOffset MyDateTime,
+ [property: Range(1.1, 20.2)] double MyNumber,
+ bool MyBool,
+ [property: Uri] Uri MyUri,
+ string MyByte,
+ List MyStringList,
+ [property: Range(10, int.MaxValue)] long MyLong,
+ Address DeliveryAddress,
+ [property: EmailAddress] string MyEmail = "a@a.com",
+ [property: Range(int.MinValue, 50)] int MyInteger = 15);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Orders/MyContracts/Models/UpdateOrderRequest.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Orders/MyContracts/Models/UpdateOrderRequest.verified.cs
new file mode 100644
index 000000000..d38c9e970
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Orders/MyContracts/Models/UpdateOrderRequest.verified.cs
@@ -0,0 +1,14 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Orders.MyContracts;
+
+///
+/// Request to update an order.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record UpdateOrderRequest(
+ [property: Required, EmailAddress] string MyEmail);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Orders/MyContracts/Parameters/GetOrderByIdParameters.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Orders/MyContracts/Parameters/GetOrderByIdParameters.verified.cs
new file mode 100644
index 000000000..8b18a09f7
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Orders/MyContracts/Parameters/GetOrderByIdParameters.verified.cs
@@ -0,0 +1,17 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Orders.MyContracts;
+
+///
+/// Parameters for operation request.
+/// Description: Get order by id.
+/// Operation: GetOrderById.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record GetOrderByIdParameters(
+ [property: FromRoute, Required] Guid Id,
+ [property: FromQuery, EmailAddress] string? MyEmail);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Orders/MyContracts/Parameters/GetOrdersParameters.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Orders/MyContracts/Parameters/GetOrdersParameters.verified.cs
new file mode 100644
index 000000000..be3a08878
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Orders/MyContracts/Parameters/GetOrdersParameters.verified.cs
@@ -0,0 +1,20 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Orders.MyContracts;
+
+///
+/// Parameters for operation request.
+/// Description: Get orders.
+/// Operation: GetOrders.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record GetOrdersParameters(
+ [property: FromQuery] string? QueryString,
+ [property: FromQuery] string? QueryStringArray,
+ [property: FromQuery] string? ContinuationToken,
+ [property: FromQuery, Required, Range(1, 100)] int PageSize = 10,
+ [property: FromQuery, Range(0, int.MaxValue)] int PageIndex = 0);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Orders/MyContracts/Parameters/PatchOrdersIdParameters.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Orders/MyContracts/Parameters/PatchOrdersIdParameters.verified.cs
new file mode 100644
index 000000000..2e064fdec
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Orders/MyContracts/Parameters/PatchOrdersIdParameters.verified.cs
@@ -0,0 +1,21 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Orders.MyContracts;
+
+///
+/// Parameters for operation request.
+/// Description: Update part of order by id.
+/// Operation: PatchOrdersId.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record PatchOrdersIdParameters(
+ [property: FromRoute, Required] Guid Id,
+ [property: FromHeader, Required] string MyTestHeader,
+ [property: FromHeader, Required] bool MyTestHeaderBool,
+ [property: FromHeader, Required] int MyTestHeaderInt,
+ [property: FromHeader(Name = "x-correlation-id"), Required] string CorrelationId,
+ [property: FromBody, Required] UpdateOrderRequest Request);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Orders/MyContracts/Results/GetOrderByIdResult.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Orders/MyContracts/Results/GetOrderByIdResult.verified.cs
new file mode 100644
index 000000000..ae5dc1497
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Orders/MyContracts/Results/GetOrderByIdResult.verified.cs
@@ -0,0 +1,41 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Orders.MyContracts;
+
+///
+/// Results for operation request.
+/// Description: Get order by id.
+/// Operation: GetOrderById.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class GetOrderByIdResult
+{
+ private GetOrderByIdResult(IResult result)
+ {
+ Result = result;
+ }
+
+ public IResult Result { get; }
+
+ ///
+ /// 200 - Ok response.
+ ///
+ public static GetOrderByIdResult Ok(Order result)
+ => new(TypedResults.Ok(result));
+
+ ///
+ /// 404 - NotFound response.
+ ///
+ public static GetOrderByIdResult NotFound(string? message = null)
+ => new(TypedResults.NotFound(message));
+
+ ///
+ /// Performs an implicit conversion from GetOrderByIdResult to IResult.
+ ///
+ public static IResult ToIResult(GetOrderByIdResult result)
+ => result.Result;
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Orders/MyContracts/Results/GetOrdersResult.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Orders/MyContracts/Results/GetOrdersResult.verified.cs
new file mode 100644
index 000000000..e3f6df773
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Orders/MyContracts/Results/GetOrdersResult.verified.cs
@@ -0,0 +1,41 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Orders.MyContracts;
+
+///
+/// Results for operation request.
+/// Description: Get orders.
+/// Operation: GetOrders.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class GetOrdersResult
+{
+ private GetOrdersResult(IResult result)
+ {
+ Result = result;
+ }
+
+ public IResult Result { get; }
+
+ ///
+ /// 200 - Ok response.
+ ///
+ public static GetOrdersResult Ok(Pagination result)
+ => new(TypedResults.Ok(result));
+
+ ///
+ /// 404 - NotFound response.
+ ///
+ public static GetOrdersResult NotFound(string? message = null)
+ => new(TypedResults.NotFound(message));
+
+ ///
+ /// Performs an implicit conversion from GetOrdersResult to IResult.
+ ///
+ public static IResult ToIResult(GetOrdersResult result)
+ => result.Result;
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Orders/MyContracts/Results/PatchOrdersIdResult.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Orders/MyContracts/Results/PatchOrdersIdResult.verified.cs
new file mode 100644
index 000000000..401a8fd4f
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Orders/MyContracts/Results/PatchOrdersIdResult.verified.cs
@@ -0,0 +1,53 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Orders.MyContracts;
+
+///
+/// Results for operation request.
+/// Description: Update part of order by id.
+/// Operation: PatchOrdersId.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class PatchOrdersIdResult
+{
+ private PatchOrdersIdResult(IResult result)
+ {
+ Result = result;
+ }
+
+ public IResult Result { get; }
+
+ ///
+ /// 200 - Ok response.
+ ///
+ public static PatchOrdersIdResult Ok(string? message = null)
+ => new(TypedResults.Ok(message));
+
+ ///
+ /// 404 - NotFound response.
+ ///
+ public static PatchOrdersIdResult NotFound(string? message = null)
+ => new(TypedResults.NotFound(message));
+
+ ///
+ /// 409 - Conflict response.
+ ///
+ public static PatchOrdersIdResult Conflict(string? message = null)
+ => new(TypedResults.Conflict(message));
+
+ ///
+ /// 502 - BadGateway response.
+ ///
+ public static PatchOrdersIdResult BadGateway()
+ => new(Results.StatusCode(StatusCodes.Status502BadGateway));
+
+ ///
+ /// Performs an implicit conversion from PatchOrdersIdResult to IResult.
+ ///
+ public static IResult ToIResult(PatchOrdersIdResult result)
+ => result.Result;
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Resources/ApiSpecification.yaml b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Resources/ApiSpecification.yaml
new file mode 100644
index 000000000..cf543aff2
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Resources/ApiSpecification.yaml
@@ -0,0 +1,969 @@
+openapi: 3.0.1
+info:
+ title: Demo Sample Api
+ description: Demo Sample Api - SingleFileVersion
+ version: '1.0'
+ contact:
+ name: atc-net A/S
+servers:
+ - url: /api/v1
+ description: Api version 1.0
+x-authorize-roles:
+ - admin
+ - operator
+paths:
+ /orders:
+ x-authentication-required: true
+ get:
+ tags:
+ - Orders
+ summary: Get orders
+ description: Get orders
+ operationId: getOrders
+ parameters:
+ - $ref: '#/components/parameters/pagingPageSize'
+ - $ref: '#/components/parameters/pagingPageIndex'
+ - $ref: '#/components/parameters/queryString'
+ - $ref: '#/components/parameters/queryStringArray'
+ - $ref: '#/components/parameters/continuationToken'
+ responses:
+ '200':
+ description: Expected response to a valid request
+ content:
+ application/json:
+ schema:
+ allOf:
+ - $ref: '#/components/schemas/Pagination'
+ - $ref: '#/components/schemas/Orders'
+ '404':
+ description: Not Found
+ '/orders/{id}':
+ x-authentication-required: true
+ x-authorize-roles:
+ - operator
+ get:
+ tags:
+ - Orders
+ summary: Get order by id
+ description: Get order by id
+ operationId: getOrderById
+ x-authentication-required: false
+ parameters:
+ - name: myEmail
+ in: query
+ description: The email for filter orders to retrieve
+ schema:
+ type: string
+ format: email
+ nullable: true
+ responses:
+ '200':
+ description: Expected response to a valid request
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Order'
+ '404':
+ description: Not Found
+ patch:
+ summary: Update part of order by id
+ description: Update part of order by id
+ operationId: patchOrdersId
+ x-authorize-roles:
+ - admin
+ - operator
+ parameters:
+ - name: myTestHeader
+ in: header
+ required: true
+ description: The myTestHeader special key
+ schema:
+ type: string
+ - name: myTestHeaderBool
+ in: header
+ required: true
+ description: The myTestHeaderBool special key
+ schema:
+ type: boolean
+ - name: myTestHeaderInt
+ in: header
+ required: true
+ description: The myTestHeaderInt special key
+ schema:
+ type: integer
+ - name: x-correlation-id
+ in: header
+ required: true
+ description: The correlationId
+ schema:
+ type: string
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/UpdateOrderRequest'
+ responses:
+ '200':
+ description: OK
+ '404':
+ description: Not Found
+ '409':
+ description: Conflict
+ '502':
+ description: Bad Gateway
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ parameters:
+ - name: id
+ in: path
+ description: The id of the order
+ required: true
+ schema:
+ type: string
+ format: uuid
+ /users/email:
+ get:
+ tags:
+ - Users
+ summary: Get user by email
+ description: Get user by email
+ operationId: getUserByEmail
+ parameters:
+ - name: email
+ in: query
+ description: The email of the user to retrieve
+ required: true
+ schema:
+ type: string
+ format: email
+ responses:
+ '200':
+ description: Expected response to a valid request
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/User'
+ '400':
+ description: Bad Request
+ '404':
+ description: Not Found
+ '409':
+ description: Conflict
+ '/users/{id}':
+ get:
+ summary: Get user by id
+ description: Get user by id
+ operationId: getUserById
+ responses:
+ '200':
+ description: OK
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/User'
+ '404':
+ description: Not Found
+ '409':
+ description: Conflict
+ put:
+ summary: Update user by id
+ description: Update user by id
+ operationId: updateUserById
+ responses:
+ '200':
+ description: OK
+ '400':
+ description: Bad Request
+ '404':
+ description: Not Found
+ '409':
+ description: Conflict
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/UpdateUserRequest'
+ delete:
+ summary: Delete user by id
+ description: Delete user by id
+ operationId: deleteUserById
+ responses:
+ '200':
+ description: OK
+ '404':
+ description: Not Found
+ '409':
+ description: Conflict
+ parameters:
+ - name: id
+ in: path
+ description: Id of the user
+ required: true
+ schema:
+ type: string
+ format: uuid
+ /users:
+ get:
+ summary: Get all users
+ description: Get all users
+ operationId: getUsers
+ tags: []
+ responses:
+ '200':
+ description: OK
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Users'
+ '409':
+ description: Conflict
+ post:
+ summary: Create a new user
+ description: Create a new user
+ operationId: postUser
+ responses:
+ '201':
+ description: Created
+ '400':
+ description: Bad Request
+ '409':
+ description: Conflict
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/CreateUserRequest'
+ '/users/{id}/gender':
+ put:
+ summary: Update gender on a user
+ description: Update gender on a user
+ operationId: updateMyTestGender
+ parameters:
+ - name: genderParam
+ in: query
+ description: The gender to set on the user
+ schema:
+ $ref: '#/components/schemas/GenderType'
+ responses:
+ '200':
+ description: OK
+ '400':
+ description: Bad Request
+ '404':
+ description: Not Found
+ '409':
+ description: Conflict
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/UpdateTestGenderRequest'
+ parameters:
+ - name: id
+ description: Id of the user
+ in: path
+ required: true
+ schema:
+ type: string
+ format: uuid
+ '/accounts/{accountId}/name':
+ put:
+ summary: Update name of account
+ description: Update name of account
+ operationId: updateAccountName
+ responses:
+ '200':
+ description: OK
+ parameters:
+ - name: name
+ in: header
+ description: The account name
+ schema:
+ type: string
+ post:
+ summary: Set name of account
+ description: Set name of account
+ operationId: setAccountName
+ responses:
+ '200':
+ description: OK
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/UpdateAccountRequest'
+ parameters:
+ - name: accountId
+ in: path
+ required: true
+ description: The accountId
+ schema:
+ type: string
+ format: uuid
+ '/addresses/{postalCode}':
+ get:
+ summary: Get addresses by postal code
+ description: Get addresses by postal code
+ operationId: getAddressesByPostalCodes
+ tags: []
+ responses:
+ '200':
+ description: OK
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/Address'
+ '404':
+ description: Not Found
+ parameters:
+ - name: postalCode
+ in: path
+ required: true
+ description: The postalCode to limit addresses on
+ schema:
+ type: string
+ /route-with-dash:
+ get:
+ summary: Your GET endpoint
+ description: Your GET endpoint
+ tags: []
+ responses:
+ '200':
+ description: OK
+ operationId: getRouteWithDash
+ /items:
+ post:
+ summary: Create a new item
+ description: Create a new item
+ operationId: createItem
+ responses:
+ '200':
+ description: OK
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/CreateItemRequest'
+ '/items/{id}':
+ put:
+ summary: Updates an item
+ description: Updates an item
+ operationId: updateItem
+ responses:
+ '200':
+ description: OK
+ content:
+ application/json:
+ schema:
+ type: string
+ format: uuid
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/UpdateItemRequest'
+ parameters:
+ - name: id
+ in: path
+ description: The id of the order
+ required: true
+ schema:
+ type: string
+ format: uuid
+ /tasks:
+ get:
+ operationId: getTasks
+ summary: Returns tasks
+ description: Returns tasks
+ tags: []
+ responses:
+ '200':
+ description: OK
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Tasks'
+ '/eventArgs/{id}':
+ parameters:
+ - name: id
+ in: path
+ description: The id of the eventArgs
+ required: true
+ schema:
+ type: string
+ get:
+ summary: Get EventArgs By Id
+ description: Get EventArgs By Id
+ tags: []
+ responses:
+ '200':
+ description: OK
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/EventArgs'
+ '404':
+ description: Not Found
+ operationId: getEventArgById
+ /eventArgs:
+ get:
+ operationId: getEventArgs
+ summary: Get EventArgs List
+ description: Get EventArgs List
+ tags: []
+ responses:
+ '200':
+ description: OK
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/EventArgs'
+ '/files/{id}':
+ parameters:
+ - name: id
+ in: path
+ description: The file id
+ required: true
+ schema:
+ type: string
+ get:
+ operationId: getFileById
+ summary: Get File By Id
+ description: Get File By Id
+ tags: []
+ responses:
+ '200':
+ description: OK
+ content:
+ application/octet-stream:
+ schema:
+ type: string
+ format: binary
+ headers: {}
+ '404':
+ description: Not Found
+ /files/form-data/singleObject:
+ post:
+ operationId: uploadSingleObjectWithFileAsFormData
+ summary: Upload a file as FormData
+ description: Upload a file as FormData
+ responses:
+ '200':
+ description: OK
+ '400':
+ description: Bad Request
+ requestBody:
+ content:
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/FileAsFormDataRequest'
+ parameters: []
+ /files/form-data/singleObjectMultiFile:
+ post:
+ operationId: uploadSingleObjectWithFilesAsFormData
+ summary: Upload files as FormData
+ description: Upload files as FormData
+ responses:
+ '200':
+ description: OK
+ '400':
+ description: Bad Request
+ requestBody:
+ content:
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/FilesAsFormDataRequest'
+ parameters: []
+ /files/form-data/singleFile:
+ post:
+ operationId: uploadSingleFileAsFormData
+ summary: Upload a file as OctetStream
+ description: Upload a file as OctetStream
+ responses:
+ '200':
+ description: OK
+ requestBody:
+ content:
+ application/octet-stream:
+ schema:
+ type: string
+ format: binary
+ parameters: []
+ /files/form-data/multiFile:
+ post:
+ summary: Upload multi files as form data
+ description: Upload multi files as form data
+ operationId: uploadMultiFilesAsFormData
+ responses:
+ '200':
+ description: OK
+ requestBody:
+ content:
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ type: string
+ format: binary
+components:
+ parameters:
+ pagingPageSize:
+ name: pageSize
+ in: query
+ required: true
+ schema:
+ type: integer
+ minimum: 1
+ maximum: 100
+ default: 10
+ description: The numbers of items to return.
+ pagingPageIndex:
+ name: pageIndex
+ in: query
+ required: false
+ schema:
+ type: integer
+ minimum: 0
+ default: 0
+ description: The number of items to skip before starting to collect the result set.
+ queryString:
+ name: queryString
+ in: query
+ required: false
+ schema:
+ type: string
+ nullable: true
+ description: The query string.
+ queryStringArray:
+ name: queryStringArray
+ in: query
+ required: false
+ schema:
+ type: array
+ items:
+ type: string
+ nullable: true
+ description: The query array of string.
+ continuationToken:
+ name: continuationToken
+ in: query
+ required: false
+ schema:
+ type: string
+ nullable: true
+ description: The continuation token.
+ schemas:
+ Pagination:
+ type: object
+ title: Pagination
+ description: A item result subset of a data query.
+ properties:
+ pageSize:
+ type: number
+ description: The number of items to request.
+ pageIndex:
+ type: number
+ nullable: true
+ description: The given page index starting with 0.
+ queryString:
+ type: string
+ nullable: true
+ description: The query to filter items by.
+ continuationToken:
+ type: string
+ nullable: true
+ description: Token to indicate next result set.
+ count:
+ type: number
+ description: Items count in result set.
+ totalCount:
+ type: number
+ nullable: true
+ description: Total items count.
+ totalPages:
+ type: number
+ nullable: true
+ description: Total pages.
+ required:
+ - pageSize
+ - count
+ ProblemDetails:
+ type: object
+ title: ProblemDetails
+ description: 'A machine-readable format for specifying errors in HTTP API responses based on https://tools.ietf.org/html/rfc7807.'
+ properties:
+ type:
+ type: string
+ description: 'A URI reference [RFC3986] that identifies the problem type. This specification encourages that, when dereferenced, it provide human-readable documentation for the problem type (e.g., using HTML [W3C.REC-html5-20141028]).'
+ title:
+ type: string
+ description: 'A short, human-readable summary of the problem type.It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization(e.g., using proactive content negotiation; see[RFC7231], Section 3.4).'
+ status:
+ type: integer
+ format: int32
+ description: 'The HTTP status code([RFC7231], Section 6) generated by the origin server for this occurrence of the problem.'
+ detail:
+ type: string
+ description: A human-readable explanation specific to this occurrence of the problem.
+ instance:
+ type: string
+ description: A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
+ Order:
+ title: Order
+ description: |-
+ A single order.
+ Hallo description with multiline and no ending dot
+ type: object
+ x-examples:
+ MyExample:
+ id: 123
+ name: Hallo world
+ MyExample2: {}
+ properties:
+ id:
+ type: string
+ format: uuid
+ description:
+ type: string
+ myTime:
+ type: string
+ format: time
+ myEmail:
+ type: string
+ format: email
+ default: a@a.com
+ myNullableDateTime:
+ type: string
+ format: date-time
+ nullable: true
+ myDateTime:
+ type: string
+ format: date-time
+ myNumber:
+ type: number
+ minimum: 1.1
+ maximum: 20.2
+ myInteger:
+ type: integer
+ maximum: 50
+ default: 15
+ myBool:
+ type: boolean
+ description: MyBool is great
+ myUri:
+ type: string
+ format: uri
+ description: 'This is the good uri :-)'
+ myByte:
+ type: string
+ format: byte
+ myStringList:
+ type: array
+ description: 'Hallo myStringList desc :-)'
+ items:
+ type: string
+ myLong:
+ type: integer
+ format: int64
+ minimum: 10
+ exclusiveMinimum: false
+ deliveryAddress:
+ $ref: '#/components/schemas/Address'
+ Orders:
+ description: A list of orders.
+ type: array
+ x-tags:
+ - Orders
+ title: Orders
+ items:
+ $ref: '#/components/schemas/Order'
+ GenderType:
+ title: GenderType
+ description: ''
+ type: object
+ properties:
+ gender:
+ type: string
+ description: The users gender type
+ enum:
+ - None
+ - NonBinary
+ - Male
+ - Female
+ required:
+ - gender
+ ColorType:
+ title: ColorType
+ description: ''
+ type: object
+ properties:
+ color:
+ type: string
+ description: The users color type
+ enum:
+ - None = 0
+ - Black = 1
+ - White = 2
+ - Yellow = 4
+ - Red = 8
+ required:
+ - color
+ User:
+ title: User
+ description: A single user.
+ type: object
+ properties:
+ id:
+ type: string
+ format: uuid
+ example: 00000000-0000-0000-0000-000000000000
+ gender:
+ $ref: '#/components/schemas/GenderType'
+ firstName:
+ type: string
+ lastName:
+ type: string
+ email:
+ type: string
+ format: email
+ example: email@email.dk
+ homepage:
+ type: string
+ format: uri
+ color:
+ $ref: '#/components/schemas/ColorType'
+ homeAddress:
+ $ref: '#/components/schemas/Address'
+ companyAddress:
+ $ref: '#/components/schemas/Address'
+ Users:
+ description: A list of users.
+ type: array
+ items:
+ $ref: '#/components/schemas/User'
+ x-tags:
+ - Users
+ title: Users
+ CreateUserRequest:
+ title: CreateUserRequest
+ description: Request to create a user
+ type: object
+ properties:
+ firstName:
+ type: string
+ lastName:
+ type: string
+ myNullableDateTime:
+ type: string
+ format: date-time
+ nullable: true
+ myDateTime:
+ type: string
+ format: date-time
+ email:
+ type: string
+ format: email
+ example: email@email.dk
+ homepage:
+ type: string
+ format: uri
+ gender:
+ $ref: '#/components/schemas/GenderType'
+ myNullableAddress:
+ nullable: true
+ oneOf:
+ - $ref: '#/components/schemas/Address'
+ tags:
+ type: object
+ additionalProperties:
+ type: string
+ desiredProperties1:
+ type: object
+ additionalProperties:
+ type: string
+ desiredProperties2:
+ type: object
+ nullable: true
+ additionalProperties:
+ type: string
+ desiredProperties3:
+ type: object
+ nullable: true
+ additionalProperties:
+ type: integer
+ required:
+ - firstName
+ - lastName
+ - myDateTime
+ - email
+ - gender
+ - tags
+ CreateUsersRequest:
+ description: A list of users.
+ type: array
+ x-tags:
+ - CreateUsersRequest
+ title: CreateUsersRequest
+ items:
+ $ref: '#/components/schemas/CreateUserRequest'
+ UpdateUserRequest:
+ title: UpdateUserRequest
+ description: Request to update a user
+ type: object
+ properties:
+ firstName:
+ type: string
+ lastName:
+ type: string
+ email:
+ type: string
+ format: email
+ example: email@email.dk
+ gender:
+ $ref: '#/components/schemas/GenderType'
+ UpdateTestGenderRequest:
+ title: Update test-gender Request
+ description: ''
+ type: object
+ properties:
+ gender:
+ $ref: '#/components/schemas/GenderType'
+ Address:
+ title: Address
+ type: object
+ properties:
+ streetName:
+ type: string
+ maxLength: 255
+ streetNumber:
+ type: string
+ postalCode:
+ type: string
+ cityName:
+ type: string
+ myCountry:
+ $ref: '#/components/schemas/Country'
+ Country:
+ title: Country
+ type: object
+ properties:
+ name:
+ type: string
+ alpha2Code:
+ type: string
+ minLength: 2
+ maxLength: 2
+ pattern: '^[A-Za-z]{2}$'
+ alpha3Code:
+ type: string
+ minLength: 3
+ maxLength: 3
+ pattern: '^[A-Za-z]{3}$'
+ required:
+ - name
+ - alpha2Code
+ - alpha3Code
+ UpdateOrderRequest:
+ title: UpdateOrderRequest
+ description: Request to update an order
+ type: object
+ properties:
+ myEmail:
+ type: string
+ format: email
+ required:
+ - myEmail
+ Item:
+ title: Item
+ type: object
+ properties:
+ name:
+ type: string
+ required:
+ - name
+ CreateItemRequest:
+ title: CreateItemRequest
+ type: object
+ properties:
+ item:
+ $ref: '#/components/schemas/Item'
+ myItems:
+ type: array
+ items:
+ $ref: '#/components/schemas/Item'
+ required:
+ - item
+ - myItems
+ UpdateItemRequest:
+ title: UpdateItemRequest
+ type: object
+ properties:
+ item:
+ $ref: '#/components/schemas/Item'
+ required:
+ - item
+ Task:
+ title: Task
+ type: object
+ properties:
+ id:
+ type: string
+ format: uuid
+ name:
+ type: string
+ description: Describes a single task.
+ Tasks:
+ title: Tasks
+ type: array
+ items:
+ $ref: '#/components/schemas/Task'
+ description: Contains a list of Tasks
+ EventArgs:
+ title: EventArgs
+ type: object
+ properties:
+ id:
+ type: string
+ format: uuid
+ eventName:
+ type: string
+ FileAsFormDataRequest:
+ title: FileAsFormDataRequest
+ type: object
+ properties:
+ itemName:
+ type: string
+ file:
+ type: string
+ format: binary
+ nullable: true
+ items:
+ type: array
+ items:
+ type: string
+ required:
+ - itemName
+ - items
+ FilesAsFormDataRequest:
+ title: FilesAsFormDataRequest
+ type: object
+ properties:
+ files:
+ type: array
+ items:
+ type: string
+ format: binary
+ required:
+ - files
+ UpdateAccountRequest:
+ title: UpdateAccountRequest
+ type: object
+ properties:
+ name:
+ type: string
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/RouteWithDash/MyContracts/Interfaces/IGetRouteWithDashHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/RouteWithDash/MyContracts/Interfaces/IGetRouteWithDashHandler.verified.cs
new file mode 100644
index 000000000..eabe2ac64
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/RouteWithDash/MyContracts/Interfaces/IGetRouteWithDashHandler.verified.cs
@@ -0,0 +1,23 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.RouteWithDash.MyContracts;
+
+///
+/// Domain Interface for RequestHandler.
+/// Description: Your GET endpoint.
+/// Operation: GetRouteWithDash.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface IGetRouteWithDashHandler
+{
+ ///
+ /// Execute method.
+ ///
+ /// The cancellation token.
+ Task ExecuteAsync(
+ CancellationToken cancellationToken = default);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/RouteWithDash/MyContracts/Results/GetRouteWithDashResult.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/RouteWithDash/MyContracts/Results/GetRouteWithDashResult.verified.cs
new file mode 100644
index 000000000..058218bc7
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/RouteWithDash/MyContracts/Results/GetRouteWithDashResult.verified.cs
@@ -0,0 +1,35 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.RouteWithDash.MyContracts;
+
+///
+/// Results for operation request.
+/// Description: Your GET endpoint.
+/// Operation: GetRouteWithDash.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class GetRouteWithDashResult
+{
+ private GetRouteWithDashResult(IResult result)
+ {
+ Result = result;
+ }
+
+ public IResult Result { get; }
+
+ ///
+ /// 200 - Ok response.
+ ///
+ public static GetRouteWithDashResult Ok(string? message = null)
+ => new(TypedResults.Ok(message));
+
+ ///
+ /// Performs an implicit conversion from GetRouteWithDashResult to IResult.
+ ///
+ public static IResult ToIResult(GetRouteWithDashResult result)
+ => result.Result;
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Tasks/MyContracts/Interfaces/IGetTasksHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Tasks/MyContracts/Interfaces/IGetTasksHandler.verified.cs
new file mode 100644
index 000000000..49a98e04e
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Tasks/MyContracts/Interfaces/IGetTasksHandler.verified.cs
@@ -0,0 +1,23 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Tasks.MyContracts;
+
+///
+/// Domain Interface for RequestHandler.
+/// Description: Returns tasks.
+/// Operation: GetTasks.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface IGetTasksHandler
+{
+ ///
+ /// Execute method.
+ ///
+ /// The cancellation token.
+ Task ExecuteAsync(
+ CancellationToken cancellationToken = default);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Tasks/MyContracts/Models/Task.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Tasks/MyContracts/Models/Task.verified.cs
new file mode 100644
index 000000000..c14a79575
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Tasks/MyContracts/Models/Task.verified.cs
@@ -0,0 +1,15 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Tasks.MyContracts;
+
+///
+/// Describes a single task.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record Task(
+ Guid Id,
+ string Name);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Tasks/MyContracts/Models/Tasks.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Tasks/MyContracts/Models/Tasks.verified.cs
new file mode 100644
index 000000000..f209e30aa
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Tasks/MyContracts/Models/Tasks.verified.cs
@@ -0,0 +1,14 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Tasks.MyContracts;
+
+///
+/// Contains a list of Tasks.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record Tasks(
+ List TaskList);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Tasks/MyContracts/Results/GetTasksResult.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Tasks/MyContracts/Results/GetTasksResult.verified.cs
new file mode 100644
index 000000000..28966b69c
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Tasks/MyContracts/Results/GetTasksResult.verified.cs
@@ -0,0 +1,35 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Tasks.MyContracts;
+
+///
+/// Results for operation request.
+/// Description: Returns tasks.
+/// Operation: GetTasks.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class GetTasksResult
+{
+ private GetTasksResult(IResult result)
+ {
+ Result = result;
+ }
+
+ public IResult Result { get; }
+
+ ///
+ /// 200 - Ok response.
+ ///
+ public static GetTasksResult Ok(List result)
+ => new(TypedResults.Ok(result));
+
+ ///
+ /// Performs an implicit conversion from GetTasksResult to IResult.
+ ///
+ public static IResult ToIResult(GetTasksResult result)
+ => result.Result;
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Interfaces/IDeleteUserByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Interfaces/IDeleteUserByIdHandler.verified.cs
new file mode 100644
index 000000000..0e75b7d69
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Interfaces/IDeleteUserByIdHandler.verified.cs
@@ -0,0 +1,25 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Users.MyContracts;
+
+///
+/// Domain Interface for RequestHandler.
+/// Description: Delete user by id.
+/// Operation: DeleteUserById.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface IDeleteUserByIdHandler
+{
+ ///
+ /// Execute method.
+ ///
+ /// The parameters.
+ /// The cancellation token.
+ Task ExecuteAsync(
+ DeleteUserByIdParameters parameters,
+ CancellationToken cancellationToken = default);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Interfaces/IGetUserByEmailHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Interfaces/IGetUserByEmailHandler.verified.cs
new file mode 100644
index 000000000..2f5d266b2
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Interfaces/IGetUserByEmailHandler.verified.cs
@@ -0,0 +1,25 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Users.MyContracts;
+
+///
+/// Domain Interface for RequestHandler.
+/// Description: Get user by email.
+/// Operation: GetUserByEmail.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface IGetUserByEmailHandler
+{
+ ///
+ /// Execute method.
+ ///
+ /// The parameters.
+ /// The cancellation token.
+ Task ExecuteAsync(
+ GetUserByEmailParameters parameters,
+ CancellationToken cancellationToken = default);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Interfaces/IGetUserByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Interfaces/IGetUserByIdHandler.verified.cs
new file mode 100644
index 000000000..1aac66f25
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Interfaces/IGetUserByIdHandler.verified.cs
@@ -0,0 +1,25 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Users.MyContracts;
+
+///
+/// Domain Interface for RequestHandler.
+/// Description: Get user by id.
+/// Operation: GetUserById.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface IGetUserByIdHandler
+{
+ ///
+ /// Execute method.
+ ///
+ /// The parameters.
+ /// The cancellation token.
+ Task ExecuteAsync(
+ GetUserByIdParameters parameters,
+ CancellationToken cancellationToken = default);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Interfaces/IGetUsersHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Interfaces/IGetUsersHandler.verified.cs
new file mode 100644
index 000000000..96d2abb0f
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Interfaces/IGetUsersHandler.verified.cs
@@ -0,0 +1,23 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Users.MyContracts;
+
+///
+/// Domain Interface for RequestHandler.
+/// Description: Get all users.
+/// Operation: GetUsers.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface IGetUsersHandler
+{
+ ///
+ /// Execute method.
+ ///
+ /// The cancellation token.
+ Task ExecuteAsync(
+ CancellationToken cancellationToken = default);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Interfaces/IPostUserHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Interfaces/IPostUserHandler.verified.cs
new file mode 100644
index 000000000..8ca92cf7b
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Interfaces/IPostUserHandler.verified.cs
@@ -0,0 +1,25 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Users.MyContracts;
+
+///
+/// Domain Interface for RequestHandler.
+/// Description: Create a new user.
+/// Operation: PostUser.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface IPostUserHandler
+{
+ ///
+ /// Execute method.
+ ///
+ /// The parameters.
+ /// The cancellation token.
+ Task ExecuteAsync(
+ PostUserParameters parameters,
+ CancellationToken cancellationToken = default);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Interfaces/IUpdateMyTestGenderHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Interfaces/IUpdateMyTestGenderHandler.verified.cs
new file mode 100644
index 000000000..7753fbd54
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Interfaces/IUpdateMyTestGenderHandler.verified.cs
@@ -0,0 +1,25 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Users.MyContracts;
+
+///
+/// Domain Interface for RequestHandler.
+/// Description: Update gender on a user.
+/// Operation: UpdateMyTestGender.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface IUpdateMyTestGenderHandler
+{
+ ///
+ /// Execute method.
+ ///
+ /// The parameters.
+ /// The cancellation token.
+ Task ExecuteAsync(
+ UpdateMyTestGenderParameters parameters,
+ CancellationToken cancellationToken = default);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Interfaces/IUpdateUserByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Interfaces/IUpdateUserByIdHandler.verified.cs
new file mode 100644
index 000000000..1e1980b23
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Interfaces/IUpdateUserByIdHandler.verified.cs
@@ -0,0 +1,25 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Users.MyContracts;
+
+///
+/// Domain Interface for RequestHandler.
+/// Description: Update user by id.
+/// Operation: UpdateUserById.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface IUpdateUserByIdHandler
+{
+ ///
+ /// Execute method.
+ ///
+ /// The parameters.
+ /// The cancellation token.
+ Task ExecuteAsync(
+ UpdateUserByIdParameters parameters,
+ CancellationToken cancellationToken = default);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Models/CreateUserRequest.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Models/CreateUserRequest.verified.cs
new file mode 100644
index 000000000..9e09a2294
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Models/CreateUserRequest.verified.cs
@@ -0,0 +1,25 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Users.MyContracts;
+
+///
+/// Request to create a user.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record CreateUserRequest(
+ [property: Required] string FirstName,
+ [property: Required] string LastName,
+ DateTimeOffset? MyNullableDateTime,
+ [property: Required] DateTimeOffset MyDateTime,
+ [property: Required, EmailAddress] string Email,
+ [property: Uri] Uri Homepage,
+ [property: Required] GenderType Gender,
+ Address? MyNullableAddress,
+ [property: Required] Object Tags,
+ Object DesiredProperties1,
+ Object? DesiredProperties2,
+ Object? DesiredProperties3);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Models/UpdateTestGenderRequest.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Models/UpdateTestGenderRequest.verified.cs
new file mode 100644
index 000000000..d793b4608
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Models/UpdateTestGenderRequest.verified.cs
@@ -0,0 +1,14 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Users.MyContracts;
+
+///
+/// Update test-gender Request.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record UpdateTestGenderRequest(
+ GenderType Gender);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Models/UpdateUserRequest.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Models/UpdateUserRequest.verified.cs
new file mode 100644
index 000000000..682b33a1d
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Models/UpdateUserRequest.verified.cs
@@ -0,0 +1,17 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Users.MyContracts;
+
+///
+/// Request to update a user.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record UpdateUserRequest(
+ string FirstName,
+ string LastName,
+ [property: EmailAddress] string Email,
+ GenderType Gender);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Models/User.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Models/User.verified.cs
new file mode 100644
index 000000000..f15797673
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Models/User.verified.cs
@@ -0,0 +1,22 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Users.MyContracts;
+
+///
+/// A single user.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record User(
+ Guid Id,
+ GenderType Gender,
+ string FirstName,
+ string LastName,
+ [property: EmailAddress] string Email,
+ [property: Uri] Uri Homepage,
+ ColorType Color,
+ Address HomeAddress,
+ Address CompanyAddress);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Models/Users.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Models/Users.verified.cs
new file mode 100644
index 000000000..2e66970f3
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Models/Users.verified.cs
@@ -0,0 +1,14 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Users.MyContracts;
+
+///
+/// A list of users.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record Users(
+ List UserList);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Parameters/DeleteUserByIdParameters.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Parameters/DeleteUserByIdParameters.verified.cs
new file mode 100644
index 000000000..0401f1a19
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Parameters/DeleteUserByIdParameters.verified.cs
@@ -0,0 +1,16 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Users.MyContracts;
+
+///
+/// Parameters for operation request.
+/// Description: Delete user by id.
+/// Operation: DeleteUserById.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record DeleteUserByIdParameters(
+ [property: FromRoute, Required] Guid Id);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Parameters/GetUserByEmailParameters.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Parameters/GetUserByEmailParameters.verified.cs
new file mode 100644
index 000000000..68103b369
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Parameters/GetUserByEmailParameters.verified.cs
@@ -0,0 +1,16 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Users.MyContracts;
+
+///
+/// Parameters for operation request.
+/// Description: Get user by email.
+/// Operation: GetUserByEmail.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record GetUserByEmailParameters(
+ [property: FromQuery, Required, EmailAddress] string Email);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Parameters/GetUserByIdParameters.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Parameters/GetUserByIdParameters.verified.cs
new file mode 100644
index 000000000..179f1b5dd
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Parameters/GetUserByIdParameters.verified.cs
@@ -0,0 +1,16 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Users.MyContracts;
+
+///
+/// Parameters for operation request.
+/// Description: Get user by id.
+/// Operation: GetUserById.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record GetUserByIdParameters(
+ [property: FromRoute, Required] Guid Id);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Parameters/PostUserParameters.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Parameters/PostUserParameters.verified.cs
new file mode 100644
index 000000000..d574b9446
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Parameters/PostUserParameters.verified.cs
@@ -0,0 +1,16 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Users.MyContracts;
+
+///
+/// Parameters for operation request.
+/// Description: Create a new user.
+/// Operation: PostUser.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record PostUserParameters(
+ [property: FromBody, Required] CreateUserRequest Request);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Parameters/UpdateMyTestGenderParameters.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Parameters/UpdateMyTestGenderParameters.verified.cs
new file mode 100644
index 000000000..f4e044f3d
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Parameters/UpdateMyTestGenderParameters.verified.cs
@@ -0,0 +1,18 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Users.MyContracts;
+
+///
+/// Parameters for operation request.
+/// Description: Update gender on a user.
+/// Operation: UpdateMyTestGender.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record UpdateMyTestGenderParameters(
+ [property: FromRoute, Required] Guid Id,
+ [property: FromQuery] GenderType? GenderParam,
+ [property: FromBody, Required] UpdateTestGenderRequest Request);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Parameters/UpdateUserByIdParameters.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Parameters/UpdateUserByIdParameters.verified.cs
new file mode 100644
index 000000000..b49776d99
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Parameters/UpdateUserByIdParameters.verified.cs
@@ -0,0 +1,17 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Users.MyContracts;
+
+///
+/// Parameters for operation request.
+/// Description: Update user by id.
+/// Operation: UpdateUserById.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record UpdateUserByIdParameters(
+ [property: FromRoute, Required] Guid Id,
+ [property: FromBody, Required] UpdateUserRequest Request);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Results/DeleteUserByIdResult.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Results/DeleteUserByIdResult.verified.cs
new file mode 100644
index 000000000..bd0d55a2c
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Results/DeleteUserByIdResult.verified.cs
@@ -0,0 +1,47 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Users.MyContracts;
+
+///
+/// Results for operation request.
+/// Description: Delete user by id.
+/// Operation: DeleteUserById.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class DeleteUserByIdResult
+{
+ private DeleteUserByIdResult(IResult result)
+ {
+ Result = result;
+ }
+
+ public IResult Result { get; }
+
+ ///
+ /// 200 - Ok response.
+ ///
+ public static DeleteUserByIdResult Ok(string? message = null)
+ => new(TypedResults.Ok(message));
+
+ ///
+ /// 404 - NotFound response.
+ ///
+ public static DeleteUserByIdResult NotFound(string? message = null)
+ => new(TypedResults.NotFound(message));
+
+ ///
+ /// 409 - Conflict response.
+ ///
+ public static DeleteUserByIdResult Conflict(string? message = null)
+ => new(TypedResults.Conflict(message));
+
+ ///
+ /// Performs an implicit conversion from DeleteUserByIdResult to IResult.
+ ///
+ public static IResult ToIResult(DeleteUserByIdResult result)
+ => result.Result;
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Results/GetUserByEmailResult.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Results/GetUserByEmailResult.verified.cs
new file mode 100644
index 000000000..712f90431
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Results/GetUserByEmailResult.verified.cs
@@ -0,0 +1,53 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Users.MyContracts;
+
+///
+/// Results for operation request.
+/// Description: Get user by email.
+/// Operation: GetUserByEmail.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class GetUserByEmailResult
+{
+ private GetUserByEmailResult(IResult result)
+ {
+ Result = result;
+ }
+
+ public IResult Result { get; }
+
+ ///
+ /// 200 - Ok response.
+ ///
+ public static GetUserByEmailResult Ok(User result)
+ => new(TypedResults.Ok(result));
+
+ ///
+ /// 400 - BadRequest response.
+ ///
+ public static GetUserByEmailResult BadRequest(string? message = null)
+ => new(TypedResults.BadRequest(message));
+
+ ///
+ /// 404 - NotFound response.
+ ///
+ public static GetUserByEmailResult NotFound(string? message = null)
+ => new(TypedResults.NotFound(message));
+
+ ///
+ /// 409 - Conflict response.
+ ///
+ public static GetUserByEmailResult Conflict(string? message = null)
+ => new(TypedResults.Conflict(message));
+
+ ///
+ /// Performs an implicit conversion from GetUserByEmailResult to IResult.
+ ///
+ public static IResult ToIResult(GetUserByEmailResult result)
+ => result.Result;
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Results/GetUserByIdResult.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Results/GetUserByIdResult.verified.cs
new file mode 100644
index 000000000..207c23b8e
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Results/GetUserByIdResult.verified.cs
@@ -0,0 +1,47 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Users.MyContracts;
+
+///
+/// Results for operation request.
+/// Description: Get user by id.
+/// Operation: GetUserById.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class GetUserByIdResult
+{
+ private GetUserByIdResult(IResult result)
+ {
+ Result = result;
+ }
+
+ public IResult Result { get; }
+
+ ///
+ /// 200 - Ok response.
+ ///
+ public static GetUserByIdResult Ok(User result)
+ => new(TypedResults.Ok(result));
+
+ ///
+ /// 404 - NotFound response.
+ ///
+ public static GetUserByIdResult NotFound(string? message = null)
+ => new(TypedResults.NotFound(message));
+
+ ///
+ /// 409 - Conflict response.
+ ///
+ public static GetUserByIdResult Conflict(string? message = null)
+ => new(TypedResults.Conflict(message));
+
+ ///
+ /// Performs an implicit conversion from GetUserByIdResult to IResult.
+ ///
+ public static IResult ToIResult(GetUserByIdResult result)
+ => result.Result;
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Results/GetUsersResult.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Results/GetUsersResult.verified.cs
new file mode 100644
index 000000000..614bf17bc
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Results/GetUsersResult.verified.cs
@@ -0,0 +1,41 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Users.MyContracts;
+
+///
+/// Results for operation request.
+/// Description: Get all users.
+/// Operation: GetUsers.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class GetUsersResult
+{
+ private GetUsersResult(IResult result)
+ {
+ Result = result;
+ }
+
+ public IResult Result { get; }
+
+ ///
+ /// 200 - Ok response.
+ ///
+ public static GetUsersResult Ok(List result)
+ => new(TypedResults.Ok(result));
+
+ ///
+ /// 409 - Conflict response.
+ ///
+ public static GetUsersResult Conflict(string? message = null)
+ => new(TypedResults.Conflict(message));
+
+ ///
+ /// Performs an implicit conversion from GetUsersResult to IResult.
+ ///
+ public static IResult ToIResult(GetUsersResult result)
+ => result.Result;
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Results/PostUserResult.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Results/PostUserResult.verified.cs
new file mode 100644
index 000000000..d33998f47
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Results/PostUserResult.verified.cs
@@ -0,0 +1,41 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Users.MyContracts;
+
+///
+/// Results for operation request.
+/// Description: Create a new user.
+/// Operation: PostUser.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class PostUserResult
+{
+ private PostUserResult(IResult result)
+ {
+ Result = result;
+ }
+
+ public IResult Result { get; }
+
+ ///
+ /// 201 - Created response.
+ ///
+ public static PostUserResult Created(string? uri = null)
+ => new(TypedResults.Created(uri));
+
+ ///
+ /// 400 - BadRequest response.
+ ///
+ public static PostUserResult BadRequest(string? message = null)
+ => new(TypedResults.BadRequest(message));
+
+ ///
+ /// 409 - Conflict response.
+ ///
+ public static PostUserResult Conflict(string? message = null)
+ => new(TypedResults.Conflict(message));
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Results/UpdateMyTestGenderResult.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Results/UpdateMyTestGenderResult.verified.cs
new file mode 100644
index 000000000..b4cd75570
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Results/UpdateMyTestGenderResult.verified.cs
@@ -0,0 +1,53 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Users.MyContracts;
+
+///
+/// Results for operation request.
+/// Description: Update gender on a user.
+/// Operation: UpdateMyTestGender.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class UpdateMyTestGenderResult
+{
+ private UpdateMyTestGenderResult(IResult result)
+ {
+ Result = result;
+ }
+
+ public IResult Result { get; }
+
+ ///
+ /// 200 - Ok response.
+ ///
+ public static UpdateMyTestGenderResult Ok(string? message = null)
+ => new(TypedResults.Ok(message));
+
+ ///
+ /// 400 - BadRequest response.
+ ///
+ public static UpdateMyTestGenderResult BadRequest(string? message = null)
+ => new(TypedResults.BadRequest(message));
+
+ ///
+ /// 404 - NotFound response.
+ ///
+ public static UpdateMyTestGenderResult NotFound(string? message = null)
+ => new(TypedResults.NotFound(message));
+
+ ///
+ /// 409 - Conflict response.
+ ///
+ public static UpdateMyTestGenderResult Conflict(string? message = null)
+ => new(TypedResults.Conflict(message));
+
+ ///
+ /// Performs an implicit conversion from UpdateMyTestGenderResult to IResult.
+ ///
+ public static IResult ToIResult(UpdateMyTestGenderResult result)
+ => result.Result;
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Results/UpdateUserByIdResult.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Results/UpdateUserByIdResult.verified.cs
new file mode 100644
index 000000000..ce7c69de8
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api.Generated/Users/MyContracts/Results/UpdateUserByIdResult.verified.cs
@@ -0,0 +1,53 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Users.MyContracts;
+
+///
+/// Results for operation request.
+/// Description: Update user by id.
+/// Operation: UpdateUserById.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class UpdateUserByIdResult
+{
+ private UpdateUserByIdResult(IResult result)
+ {
+ Result = result;
+ }
+
+ public IResult Result { get; }
+
+ ///
+ /// 200 - Ok response.
+ ///
+ public static UpdateUserByIdResult Ok(string? message = null)
+ => new(TypedResults.Ok(message));
+
+ ///
+ /// 400 - BadRequest response.
+ ///
+ public static UpdateUserByIdResult BadRequest(string? message = null)
+ => new(TypedResults.BadRequest(message));
+
+ ///
+ /// 404 - NotFound response.
+ ///
+ public static UpdateUserByIdResult NotFound(string? message = null)
+ => new(TypedResults.NotFound(message));
+
+ ///
+ /// 409 - Conflict response.
+ ///
+ public static UpdateUserByIdResult Conflict(string? message = null)
+ => new(TypedResults.Conflict(message));
+
+ ///
+ /// Performs an implicit conversion from UpdateUserByIdResult to IResult.
+ ///
+ public static IResult ToIResult(UpdateUserByIdResult result)
+ => result.Result;
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api/Extensions/JsonSerializerOptionsExtensions.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api/Extensions/JsonSerializerOptionsExtensions.verified.cs
new file mode 100644
index 000000000..e728f026b
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api/Extensions/JsonSerializerOptionsExtensions.verified.cs
@@ -0,0 +1,44 @@
+namespace Structure1.Api.Extensions;
+
+public static class JsonSerializerOptionsExtensions
+{
+ public static Microsoft.AspNetCore.Http.Json.JsonOptions Configure(
+ this System.Text.Json.JsonSerializerOptions jsonSerializerOptions,
+ Microsoft.AspNetCore.Http.Json.JsonOptions options)
+ {
+ ArgumentNullException.ThrowIfNull(jsonSerializerOptions);
+ ArgumentNullException.ThrowIfNull(options);
+
+ options.SerializerOptions.DefaultIgnoreCondition = jsonSerializerOptions.DefaultIgnoreCondition;
+ options.SerializerOptions.PropertyNameCaseInsensitive = jsonSerializerOptions.PropertyNameCaseInsensitive;
+ options.SerializerOptions.WriteIndented = jsonSerializerOptions.WriteIndented;
+ options.SerializerOptions.PropertyNamingPolicy = jsonSerializerOptions.PropertyNamingPolicy;
+
+ foreach (var jsonConverter in jsonSerializerOptions.Converters)
+ {
+ options.SerializerOptions.Converters.Add(jsonConverter);
+ }
+
+ return options;
+ }
+
+ public static Microsoft.AspNetCore.Mvc.JsonOptions Configure(
+ this System.Text.Json.JsonSerializerOptions jsonSerializerOptions,
+ Microsoft.AspNetCore.Mvc.JsonOptions options)
+ {
+ ArgumentNullException.ThrowIfNull(jsonSerializerOptions);
+ ArgumentNullException.ThrowIfNull(options);
+
+ options.JsonSerializerOptions.DefaultIgnoreCondition = jsonSerializerOptions.DefaultIgnoreCondition;
+ options.JsonSerializerOptions.PropertyNameCaseInsensitive = jsonSerializerOptions.PropertyNameCaseInsensitive;
+ options.JsonSerializerOptions.WriteIndented = jsonSerializerOptions.WriteIndented;
+ options.JsonSerializerOptions.PropertyNamingPolicy = jsonSerializerOptions.PropertyNamingPolicy;
+
+ foreach (var jsonConverter in jsonSerializerOptions.Converters)
+ {
+ options.JsonSerializerOptions.Converters.Add(jsonConverter);
+ }
+
+ return options;
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api/Extensions/ServiceCollectionExtensions.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api/Extensions/ServiceCollectionExtensions.verified.cs
new file mode 100644
index 000000000..29121c266
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api/Extensions/ServiceCollectionExtensions.verified.cs
@@ -0,0 +1,55 @@
+namespace Structure1.Api.Extensions;
+
+public static class ServiceCollectionExtensions
+{
+ public static void ConfigureApiVersioning(
+ this IServiceCollection services)
+ {
+ services.AddEndpointsApiExplorer();
+ services
+ .AddApiVersioning(options =>
+ {
+ // Specify the default API Version
+ options.DefaultApiVersion = new ApiVersion(1, 0);
+
+ // If the client hasn't specified the API version in the request, use the default API version number
+ options.AssumeDefaultVersionWhenUnspecified = true;
+
+ // reporting api versions will return the headers
+ // "api-supported-versions" and "api-deprecated-versions"
+ options.ReportApiVersions = true;
+
+ //// DEFAULT Version reader is QueryStringApiVersionReader();
+ //// clients request the specific version using the x-api-version header
+ //// Supporting multiple versioning scheme
+ options.ApiVersionReader = ApiVersionReader.Combine(
+ new HeaderApiVersionReader(ApiVersionConstants.ApiVersionHeaderParameter),
+ new MediaTypeApiVersionReader(ApiVersionConstants.ApiVersionMediaTypeParameter),
+ new QueryStringApiVersionReader(ApiVersionConstants.ApiVersionQueryParameter),
+ new QueryStringApiVersionReader(ApiVersionConstants.ApiVersionQueryParameterShort),
+ new UrlSegmentApiVersionReader());
+ })
+ .AddApiExplorer(options =>
+ {
+ // add the versioned api explorer, which also adds IApiVersionDescriptionProvider service
+ // note: the specified format code will format the version as 'v'major[.minor][-status]"
+ options.GroupNameFormat = "'v'VVV";
+
+ // note: this option is only necessary when versioning by url segment. The SubstitutionFormat
+ // can also be used to control the format of the API version in route templates
+ options.SubstituteApiVersionInUrl = true;
+ });
+ }
+
+ public static void ConfigureSwagger(
+ this IServiceCollection services)
+ {
+ services.ConfigureOptions();
+
+ services.AddSwaggerGen(options =>
+ {
+ options.OperationFilter();
+ options.DocumentFilter();
+ });
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api/Extensions/WebApplicationBuilderExtensions.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api/Extensions/WebApplicationBuilderExtensions.verified.cs
new file mode 100644
index 000000000..e21bde3ba
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api/Extensions/WebApplicationBuilderExtensions.verified.cs
@@ -0,0 +1,32 @@
+namespace Structure1.Api.Extensions;
+
+public static class WebApplicationBuilderExtensions
+{
+ public static void ConfigureLogging(
+ this WebApplicationBuilder builder)
+ {
+ ArgumentNullException.ThrowIfNull(builder);
+
+ builder.Services.AddLogging(logging =>
+ {
+ logging.SetMinimumLevel(LogLevel.Information);
+ logging.AddConsole();
+ logging.AddDebug();
+ });
+
+ builder.Services.AddHttpLogging(logging =>
+ {
+ logging.LoggingFields = HttpLoggingFields.All;
+ logging.RequestHeaders.Add("Authorization");
+ logging.RequestBodyLogLimit = 4096;
+ logging.ResponseBodyLogLimit = 4096;
+ logging.MediaTypeOptions.AddText("application/json");
+ });
+
+ builder.Services.AddApplicationInsightsTelemetry();
+
+ builder.Logging.AddFilter(
+ "Microsoft.AspNetCore.HttpLogging.HttpLoggingMiddleware",
+ LogLevel.Trace);
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api/Extensions/WebApplicationExtensions.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api/Extensions/WebApplicationExtensions.verified.cs
new file mode 100644
index 000000000..d8c6520fc
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api/Extensions/WebApplicationExtensions.verified.cs
@@ -0,0 +1,15 @@
+namespace Structure1.Api.Extensions;
+
+public static class WebApplicationExtensions
+{
+ private static readonly string[] PatchHttpMethods = ["patch"];
+
+ public static RouteHandlerBuilder MapPatch(
+ this WebApplication app,
+ string pattern,
+ Delegate handler)
+ => app.MapMethods(
+ pattern,
+ PatchHttpMethods,
+ handler);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api/GlobalUsings.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api/GlobalUsings.verified.cs
new file mode 100644
index 000000000..da2822831
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api/GlobalUsings.verified.cs
@@ -0,0 +1,27 @@
+global using System.CodeDom.Compiler;
+global using System.Diagnostics.CodeAnalysis;
+global using System.Text;
+
+global using Asp.Versioning;
+global using Asp.Versioning.ApiExplorer;
+
+global using Atc.Rest.MinimalApi.Extensions;
+global using Atc.Rest.MinimalApi.Filters.Endpoints;
+global using Atc.Rest.MinimalApi.Filters.Swagger;
+global using Atc.Rest.MinimalApi.Versioning;
+global using Atc.Serialization;
+
+global using FluentValidation;
+
+global using Microsoft.AspNetCore.HttpLogging;
+global using Microsoft.Extensions.Logging.ApplicationInsights;
+global using Microsoft.Extensions.Options;
+global using Microsoft.OpenApi.Models;
+
+global using Structure1.Api.Extensions;
+global using Structure1.Api.Generated;
+global using Structure1.Api.Options;
+global using Structure1.Domain;
+global using Structure1.Domain.Extensions;
+
+global using Swashbuckle.AspNetCore.SwaggerGen;
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api/Options/ConfigureSwaggerDocOptions.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api/Options/ConfigureSwaggerDocOptions.verified.cs
new file mode 100644
index 000000000..99ea13d7f
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api/Options/ConfigureSwaggerDocOptions.verified.cs
@@ -0,0 +1,94 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Options;
+
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class ConfigureSwaggerDocOptions : IConfigureOptions
+{
+ private readonly IApiVersionDescriptionProvider provider;
+ private readonly IWebHostEnvironment environment;
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The provider used to generate Swagger documents.
+ /// The environment.
+ public ConfigureSwaggerDocOptions(
+ IApiVersionDescriptionProvider provider,
+ IWebHostEnvironment environment)
+ {
+ this.provider = provider;
+ this.environment = environment;
+ }
+
+ public void Configure(
+ SwaggerGenOptions options)
+ {
+ foreach (var description in provider.ApiVersionDescriptions)
+ {
+ options.SwaggerDoc(description.GroupName, CreateInfoForApiVersion(description));
+ }
+
+ options.IncludeXmlComments(Path.ChangeExtension(GetType().Assembly.Location, "xml"));
+ }
+
+ private OpenApiInfo CreateInfoForApiVersion(
+ ApiVersionDescription description)
+ {
+ var text = new StringBuilder("Demo Sample Api - SingleFileVersion");
+ var info = new OpenApiInfo
+ {
+ Title = $"{environment.ApplicationName} {description.GroupName.ToUpperInvariant()}",
+ Version = description.ApiVersion.ToString(),
+ Contact = new OpenApiContact
+ {
+ Name = "atc-net A/S",
+ },
+ };
+
+ if (description.IsDeprecated)
+ {
+ text.Append(" This API version has been deprecated.");
+ }
+
+ if (description.SunsetPolicy is { } policy)
+ {
+ if (policy.Date is { } when)
+ {
+ text.Append(" The API will be sunset on ")
+ .Append(when.Date.ToShortDateString())
+ .Append('.');
+ }
+
+ if (policy.HasLinks)
+ {
+ text.AppendLine();
+
+ foreach (var link in policy.Links)
+ {
+ if (link.Type != "text/html")
+ {
+ continue;
+ }
+
+ text.AppendLine();
+
+ if (link.Title.HasValue)
+ {
+ text.Append(link.Title.Value).Append(": ");
+ }
+
+ text.Append(link.LinkTarget.OriginalString);
+ }
+ }
+ }
+
+ info.Description = text.ToString();
+
+ return info;
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api/Program.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api/Program.verified.cs
new file mode 100644
index 000000000..7fc793bb9
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Api/Program.verified.cs
@@ -0,0 +1,72 @@
+namespace Structure1.Api;
+
+public static class Program
+{
+ [SuppressMessage("Design", "MA0051:Method is too long", Justification = "OK.")]
+ public static void Main(string[] args)
+ {
+ var builder = WebApplication.CreateBuilder(args);
+
+ builder.ConfigureLogging();
+
+ var services = builder.Services;
+
+ services.AddMemoryCache();
+
+ services.ConfigureDomainHandlers(builder.Configuration);
+
+ services.AddValidatorsFromAssemblyContaining(ServiceLifetime.Singleton);
+
+ services.ConfigureApiVersioning();
+
+ services.AddEndpointDefinitions(typeof(IApiContractAssemblyMarker));
+
+ services.AddCors(corsOptions =>
+ {
+ corsOptions.AddPolicy("CorsPolicy", configurePolicy =>
+ {
+ configurePolicy
+ .AllowAnyOrigin()
+ .AllowAnyMethod()
+ .AllowAnyHeader();
+ });
+ });
+
+ // This enables proper enum as string in Swagger UI
+ services.AddControllers().AddJsonOptions(o => JsonSerializerOptionsFactory.Create().Configure(o));
+ services.Configure(o => JsonSerializerOptionsFactory.Create().Configure(o));
+
+ services.AddSingleton(_ => new ValidationFilterOptions
+ {
+ SkipFirstLevelOnValidationKeys = true,
+ });
+
+ var app = builder.Build();
+
+ app.UseEndpointDefinitions();
+
+ app.MapGet("/", () => TypedResults.Text("OK", "text/plain")).ExcludeFromDescription();
+
+ app.UseGlobalErrorHandler();
+
+ // Enabling the status code pages middleware, will allow Problem Details to be used in some extra non-exception related framework scenarios,
+ // such as a 404 occurring due to a non-existent route or a 405 occurring due to a caller using an invalid HTTP method on an existing endpoint.
+ app.UseStatusCodePages();
+
+ app.UseStaticFiles();
+
+
+ app.UseHttpsRedirection();
+ app.UseHsts();
+
+ app.UseCors("CorsPolicy");
+
+ if (!app.Environment.IsDevelopment())
+ {
+ app.UseAuthentication();
+ app.UseAuthorization();
+ }
+
+ app.Run();
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Accounts/MyHandlers/SetAccountNameHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Accounts/MyHandlers/SetAccountNameHandler.verified.cs
new file mode 100644
index 000000000..976aa4191
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Accounts/MyHandlers/SetAccountNameHandler.verified.cs
@@ -0,0 +1,18 @@
+namespace Structure1.Domain.Accounts.MyHandlers;
+
+///
+/// Handler for operation request.
+/// Description: Set name of account.
+/// Operation: SetAccountName.
+///
+public sealed class SetAccountNameHandler : ISetAccountNameHandler
+{
+ public Task ExecuteAsync(
+ SetAccountNameParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ ArgumentNullException.ThrowIfNull(parameters);
+
+ throw new NotImplementedException("Add logic here for SetAccountNameHandler");
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Accounts/MyHandlers/UpdateAccountNameHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Accounts/MyHandlers/UpdateAccountNameHandler.verified.cs
new file mode 100644
index 000000000..aa1622271
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Accounts/MyHandlers/UpdateAccountNameHandler.verified.cs
@@ -0,0 +1,18 @@
+namespace Structure1.Domain.Accounts.MyHandlers;
+
+///
+/// Handler for operation request.
+/// Description: Update name of account.
+/// Operation: UpdateAccountName.
+///
+public sealed class UpdateAccountNameHandler : IUpdateAccountNameHandler
+{
+ public Task ExecuteAsync(
+ UpdateAccountNameParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ ArgumentNullException.ThrowIfNull(parameters);
+
+ throw new NotImplementedException("Add logic here for UpdateAccountNameHandler");
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Addresses/MyHandlers/GetAddressesByPostalCodesHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Addresses/MyHandlers/GetAddressesByPostalCodesHandler.verified.cs
new file mode 100644
index 000000000..0617b6ec0
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Addresses/MyHandlers/GetAddressesByPostalCodesHandler.verified.cs
@@ -0,0 +1,18 @@
+namespace Structure1.Domain.Addresses.MyHandlers;
+
+///
+/// Handler for operation request.
+/// Description: Get addresses by postal code.
+/// Operation: GetAddressesByPostalCodes.
+///
+public sealed class GetAddressesByPostalCodesHandler : IGetAddressesByPostalCodesHandler
+{
+ public Task ExecuteAsync(
+ GetAddressesByPostalCodesParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ ArgumentNullException.ThrowIfNull(parameters);
+
+ throw new NotImplementedException("Add logic here for GetAddressesByPostalCodesHandler");
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/EventArgs/MyHandlers/GetEventArgByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/EventArgs/MyHandlers/GetEventArgByIdHandler.verified.cs
new file mode 100644
index 000000000..277d579db
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/EventArgs/MyHandlers/GetEventArgByIdHandler.verified.cs
@@ -0,0 +1,18 @@
+namespace Structure1.Domain.EventArgs.MyHandlers;
+
+///
+/// Handler for operation request.
+/// Description: Get EventArgs By Id.
+/// Operation: GetEventArgById.
+///
+public sealed class GetEventArgByIdHandler : IGetEventArgByIdHandler
+{
+ public Task ExecuteAsync(
+ GetEventArgByIdParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ ArgumentNullException.ThrowIfNull(parameters);
+
+ throw new NotImplementedException("Add logic here for GetEventArgByIdHandler");
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/EventArgs/MyHandlers/GetEventArgsHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/EventArgs/MyHandlers/GetEventArgsHandler.verified.cs
new file mode 100644
index 000000000..d10976a32
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/EventArgs/MyHandlers/GetEventArgsHandler.verified.cs
@@ -0,0 +1,15 @@
+namespace Structure1.Domain.EventArgs.MyHandlers;
+
+///
+/// Handler for operation request.
+/// Description: Get EventArgs List.
+/// Operation: GetEventArgs.
+///
+public sealed class GetEventArgsHandler : IGetEventArgsHandler
+{
+ public Task ExecuteAsync(
+ CancellationToken cancellationToken = default)
+ {
+ throw new NotImplementedException("Add logic here for GetEventArgsHandler");
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Extensions/ServiceCollectionEndpointHandlerExtensions.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Extensions/ServiceCollectionEndpointHandlerExtensions.verified.cs
new file mode 100644
index 000000000..8623ccc18
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Extensions/ServiceCollectionEndpointHandlerExtensions.verified.cs
@@ -0,0 +1,43 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Domain.Extensions;
+
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public static class ServiceCollectionEndpointHandlerExtensions
+{
+ public static IServiceCollection ConfigureDomainHandlers(
+ this IServiceCollection services,
+ IConfiguration configuration)
+ {
+ services.AddTransient();
+ services.AddTransient();
+ services.AddTransient();
+ services.AddTransient();
+ services.AddTransient();
+ services.AddTransient();
+ services.AddTransient();
+ services.AddTransient();
+ services.AddTransient();
+ services.AddTransient();
+ services.AddTransient();
+ services.AddTransient();
+ services.AddTransient();
+ services.AddTransient();
+ services.AddTransient();
+ services.AddTransient();
+ services.AddTransient();
+ services.AddTransient();
+ services.AddTransient();
+ services.AddTransient();
+ services.AddTransient();
+ services.AddTransient();
+ services.AddTransient();
+ services.AddTransient();
+
+ return services;
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Files/MyHandlers/GetFileByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Files/MyHandlers/GetFileByIdHandler.verified.cs
new file mode 100644
index 000000000..4ef41766b
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Files/MyHandlers/GetFileByIdHandler.verified.cs
@@ -0,0 +1,18 @@
+namespace Structure1.Domain.Files.MyHandlers;
+
+///
+/// Handler for operation request.
+/// Description: Get File By Id.
+/// Operation: GetFileById.
+///
+public sealed class GetFileByIdHandler : IGetFileByIdHandler
+{
+ public Task ExecuteAsync(
+ GetFileByIdParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ ArgumentNullException.ThrowIfNull(parameters);
+
+ throw new NotImplementedException("Add logic here for GetFileByIdHandler");
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Files/MyHandlers/UploadMultiFilesAsFormDataHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Files/MyHandlers/UploadMultiFilesAsFormDataHandler.verified.cs
new file mode 100644
index 000000000..f8212b2c4
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Files/MyHandlers/UploadMultiFilesAsFormDataHandler.verified.cs
@@ -0,0 +1,18 @@
+namespace Structure1.Domain.Files.MyHandlers;
+
+///
+/// Handler for operation request.
+/// Description: Upload multi files as form data.
+/// Operation: UploadMultiFilesAsFormData.
+///
+public sealed class UploadMultiFilesAsFormDataHandler : IUploadMultiFilesAsFormDataHandler
+{
+ public Task ExecuteAsync(
+ UploadMultiFilesAsFormDataParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ ArgumentNullException.ThrowIfNull(parameters);
+
+ throw new NotImplementedException("Add logic here for UploadMultiFilesAsFormDataHandler");
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Files/MyHandlers/UploadSingleFileAsFormDataHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Files/MyHandlers/UploadSingleFileAsFormDataHandler.verified.cs
new file mode 100644
index 000000000..ba1db77bd
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Files/MyHandlers/UploadSingleFileAsFormDataHandler.verified.cs
@@ -0,0 +1,18 @@
+namespace Structure1.Domain.Files.MyHandlers;
+
+///
+/// Handler for operation request.
+/// Description: Upload a file as OctetStream.
+/// Operation: UploadSingleFileAsFormData.
+///
+public sealed class UploadSingleFileAsFormDataHandler : IUploadSingleFileAsFormDataHandler
+{
+ public Task ExecuteAsync(
+ UploadSingleFileAsFormDataParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ ArgumentNullException.ThrowIfNull(parameters);
+
+ throw new NotImplementedException("Add logic here for UploadSingleFileAsFormDataHandler");
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Files/MyHandlers/UploadSingleObjectWithFileAsFormDataHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Files/MyHandlers/UploadSingleObjectWithFileAsFormDataHandler.verified.cs
new file mode 100644
index 000000000..9122dd024
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Files/MyHandlers/UploadSingleObjectWithFileAsFormDataHandler.verified.cs
@@ -0,0 +1,18 @@
+namespace Structure1.Domain.Files.MyHandlers;
+
+///
+/// Handler for operation request.
+/// Description: Upload a file as FormData.
+/// Operation: UploadSingleObjectWithFileAsFormData.
+///
+public sealed class UploadSingleObjectWithFileAsFormDataHandler : IUploadSingleObjectWithFileAsFormDataHandler
+{
+ public Task ExecuteAsync(
+ UploadSingleObjectWithFileAsFormDataParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ ArgumentNullException.ThrowIfNull(parameters);
+
+ throw new NotImplementedException("Add logic here for UploadSingleObjectWithFileAsFormDataHandler");
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Files/MyHandlers/UploadSingleObjectWithFilesAsFormDataHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Files/MyHandlers/UploadSingleObjectWithFilesAsFormDataHandler.verified.cs
new file mode 100644
index 000000000..835cfd2ec
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Files/MyHandlers/UploadSingleObjectWithFilesAsFormDataHandler.verified.cs
@@ -0,0 +1,18 @@
+namespace Structure1.Domain.Files.MyHandlers;
+
+///
+/// Handler for operation request.
+/// Description: Upload files as FormData.
+/// Operation: UploadSingleObjectWithFilesAsFormData.
+///
+public sealed class UploadSingleObjectWithFilesAsFormDataHandler : IUploadSingleObjectWithFilesAsFormDataHandler
+{
+ public Task ExecuteAsync(
+ UploadSingleObjectWithFilesAsFormDataParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ ArgumentNullException.ThrowIfNull(parameters);
+
+ throw new NotImplementedException("Add logic here for UploadSingleObjectWithFilesAsFormDataHandler");
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/GlobalUsings.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/GlobalUsings.verified.cs
new file mode 100644
index 000000000..23a5d0c9f
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/GlobalUsings.verified.cs
@@ -0,0 +1,15 @@
+global using System.CodeDom.Compiler;
+global using System.Diagnostics.CodeAnalysis;
+
+global using Microsoft.Extensions.Configuration;
+global using Microsoft.Extensions.DependencyInjection;
+
+global using Structure1.Api.Generated.Accounts.MyContracts;
+global using Structure1.Api.Generated.Addresses.MyContracts;
+global using Structure1.Api.Generated.EventArgs.MyContracts;
+global using Structure1.Api.Generated.Files.MyContracts;
+global using Structure1.Api.Generated.Items.MyContracts;
+global using Structure1.Api.Generated.Orders.MyContracts;
+global using Structure1.Api.Generated.RouteWithDash.MyContracts;
+global using Structure1.Api.Generated.Tasks.MyContracts;
+global using Structure1.Api.Generated.Users.MyContracts;
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/IDomainAssemblyMarker.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/IDomainAssemblyMarker.verified.cs
new file mode 100644
index 000000000..0a4a93b37
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/IDomainAssemblyMarker.verified.cs
@@ -0,0 +1,13 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Domain;
+
+[SuppressMessage("Design", "CA1040:Avoid empty interfaces", Justification = "OK.")]
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface IDomainAssemblyMarker
+{
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Items/MyHandlers/CreateItemHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Items/MyHandlers/CreateItemHandler.verified.cs
new file mode 100644
index 000000000..363741ecd
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Items/MyHandlers/CreateItemHandler.verified.cs
@@ -0,0 +1,18 @@
+namespace Structure1.Domain.Items.MyHandlers;
+
+///
+/// Handler for operation request.
+/// Description: Create a new item.
+/// Operation: CreateItem.
+///
+public sealed class CreateItemHandler : ICreateItemHandler
+{
+ public Task ExecuteAsync(
+ CreateItemParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ ArgumentNullException.ThrowIfNull(parameters);
+
+ throw new NotImplementedException("Add logic here for CreateItemHandler");
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Items/MyHandlers/UpdateItemHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Items/MyHandlers/UpdateItemHandler.verified.cs
new file mode 100644
index 000000000..008b542ee
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Items/MyHandlers/UpdateItemHandler.verified.cs
@@ -0,0 +1,18 @@
+namespace Structure1.Domain.Items.MyHandlers;
+
+///
+/// Handler for operation request.
+/// Description: Updates an item.
+/// Operation: UpdateItem.
+///
+public sealed class UpdateItemHandler : IUpdateItemHandler
+{
+ public Task ExecuteAsync(
+ UpdateItemParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ ArgumentNullException.ThrowIfNull(parameters);
+
+ throw new NotImplementedException("Add logic here for UpdateItemHandler");
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Orders/MyHandlers/GetOrderByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Orders/MyHandlers/GetOrderByIdHandler.verified.cs
new file mode 100644
index 000000000..fb0232810
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Orders/MyHandlers/GetOrderByIdHandler.verified.cs
@@ -0,0 +1,18 @@
+namespace Structure1.Domain.Orders.MyHandlers;
+
+///
+/// Handler for operation request.
+/// Description: Get order by id.
+/// Operation: GetOrderById.
+///
+public sealed class GetOrderByIdHandler : IGetOrderByIdHandler
+{
+ public Task ExecuteAsync(
+ GetOrderByIdParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ ArgumentNullException.ThrowIfNull(parameters);
+
+ throw new NotImplementedException("Add logic here for GetOrderByIdHandler");
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Orders/MyHandlers/GetOrdersHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Orders/MyHandlers/GetOrdersHandler.verified.cs
new file mode 100644
index 000000000..a35d74bf1
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Orders/MyHandlers/GetOrdersHandler.verified.cs
@@ -0,0 +1,18 @@
+namespace Structure1.Domain.Orders.MyHandlers;
+
+///
+/// Handler for operation request.
+/// Description: Get orders.
+/// Operation: GetOrders.
+///
+public sealed class GetOrdersHandler : IGetOrdersHandler
+{
+ public Task ExecuteAsync(
+ GetOrdersParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ ArgumentNullException.ThrowIfNull(parameters);
+
+ throw new NotImplementedException("Add logic here for GetOrdersHandler");
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Orders/MyHandlers/PatchOrdersIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Orders/MyHandlers/PatchOrdersIdHandler.verified.cs
new file mode 100644
index 000000000..6ade26cd5
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Orders/MyHandlers/PatchOrdersIdHandler.verified.cs
@@ -0,0 +1,18 @@
+namespace Structure1.Domain.Orders.MyHandlers;
+
+///
+/// Handler for operation request.
+/// Description: Update part of order by id.
+/// Operation: PatchOrdersId.
+///
+public sealed class PatchOrdersIdHandler : IPatchOrdersIdHandler
+{
+ public Task ExecuteAsync(
+ PatchOrdersIdParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ ArgumentNullException.ThrowIfNull(parameters);
+
+ throw new NotImplementedException("Add logic here for PatchOrdersIdHandler");
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/RouteWithDash/MyHandlers/GetRouteWithDashHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/RouteWithDash/MyHandlers/GetRouteWithDashHandler.verified.cs
new file mode 100644
index 000000000..418d9c3f4
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/RouteWithDash/MyHandlers/GetRouteWithDashHandler.verified.cs
@@ -0,0 +1,15 @@
+namespace Structure1.Domain.RouteWithDash.MyHandlers;
+
+///
+/// Handler for operation request.
+/// Description: Your GET endpoint.
+/// Operation: GetRouteWithDash.
+///
+public sealed class GetRouteWithDashHandler : IGetRouteWithDashHandler
+{
+ public Task ExecuteAsync(
+ CancellationToken cancellationToken = default)
+ {
+ throw new NotImplementedException("Add logic here for GetRouteWithDashHandler");
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Tasks/MyHandlers/GetTasksHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Tasks/MyHandlers/GetTasksHandler.verified.cs
new file mode 100644
index 000000000..850dc7812
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Tasks/MyHandlers/GetTasksHandler.verified.cs
@@ -0,0 +1,15 @@
+namespace Structure1.Domain.Tasks.MyHandlers;
+
+///
+/// Handler for operation request.
+/// Description: Returns tasks.
+/// Operation: GetTasks.
+///
+public sealed class GetTasksHandler : IGetTasksHandler
+{
+ public Task ExecuteAsync(
+ CancellationToken cancellationToken = default)
+ {
+ throw new NotImplementedException("Add logic here for GetTasksHandler");
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Users/MyHandlers/DeleteUserByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Users/MyHandlers/DeleteUserByIdHandler.verified.cs
new file mode 100644
index 000000000..267a22865
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Users/MyHandlers/DeleteUserByIdHandler.verified.cs
@@ -0,0 +1,18 @@
+namespace Structure1.Domain.Users.MyHandlers;
+
+///
+/// Handler for operation request.
+/// Description: Delete user by id.
+/// Operation: DeleteUserById.
+///
+public sealed class DeleteUserByIdHandler : IDeleteUserByIdHandler
+{
+ public Task ExecuteAsync(
+ DeleteUserByIdParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ ArgumentNullException.ThrowIfNull(parameters);
+
+ throw new NotImplementedException("Add logic here for DeleteUserByIdHandler");
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Users/MyHandlers/GetUserByEmailHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Users/MyHandlers/GetUserByEmailHandler.verified.cs
new file mode 100644
index 000000000..117cb294f
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Users/MyHandlers/GetUserByEmailHandler.verified.cs
@@ -0,0 +1,18 @@
+namespace Structure1.Domain.Users.MyHandlers;
+
+///
+/// Handler for operation request.
+/// Description: Get user by email.
+/// Operation: GetUserByEmail.
+///
+public sealed class GetUserByEmailHandler : IGetUserByEmailHandler
+{
+ public Task ExecuteAsync(
+ GetUserByEmailParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ ArgumentNullException.ThrowIfNull(parameters);
+
+ throw new NotImplementedException("Add logic here for GetUserByEmailHandler");
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Users/MyHandlers/GetUserByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Users/MyHandlers/GetUserByIdHandler.verified.cs
new file mode 100644
index 000000000..63b690554
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Users/MyHandlers/GetUserByIdHandler.verified.cs
@@ -0,0 +1,18 @@
+namespace Structure1.Domain.Users.MyHandlers;
+
+///
+/// Handler for operation request.
+/// Description: Get user by id.
+/// Operation: GetUserById.
+///
+public sealed class GetUserByIdHandler : IGetUserByIdHandler
+{
+ public Task ExecuteAsync(
+ GetUserByIdParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ ArgumentNullException.ThrowIfNull(parameters);
+
+ throw new NotImplementedException("Add logic here for GetUserByIdHandler");
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Users/MyHandlers/GetUsersHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Users/MyHandlers/GetUsersHandler.verified.cs
new file mode 100644
index 000000000..d8d8e7fab
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Users/MyHandlers/GetUsersHandler.verified.cs
@@ -0,0 +1,15 @@
+namespace Structure1.Domain.Users.MyHandlers;
+
+///
+/// Handler for operation request.
+/// Description: Get all users.
+/// Operation: GetUsers.
+///
+public sealed class GetUsersHandler : IGetUsersHandler
+{
+ public Task ExecuteAsync(
+ CancellationToken cancellationToken = default)
+ {
+ throw new NotImplementedException("Add logic here for GetUsersHandler");
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Users/MyHandlers/PostUserHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Users/MyHandlers/PostUserHandler.verified.cs
new file mode 100644
index 000000000..075338c5a
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Users/MyHandlers/PostUserHandler.verified.cs
@@ -0,0 +1,18 @@
+namespace Structure1.Domain.Users.MyHandlers;
+
+///
+/// Handler for operation request.
+/// Description: Create a new user.
+/// Operation: PostUser.
+///
+public sealed class PostUserHandler : IPostUserHandler
+{
+ public Task ExecuteAsync(
+ PostUserParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ ArgumentNullException.ThrowIfNull(parameters);
+
+ throw new NotImplementedException("Add logic here for PostUserHandler");
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Users/MyHandlers/UpdateMyTestGenderHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Users/MyHandlers/UpdateMyTestGenderHandler.verified.cs
new file mode 100644
index 000000000..300667242
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Users/MyHandlers/UpdateMyTestGenderHandler.verified.cs
@@ -0,0 +1,18 @@
+namespace Structure1.Domain.Users.MyHandlers;
+
+///
+/// Handler for operation request.
+/// Description: Update gender on a user.
+/// Operation: UpdateMyTestGender.
+///
+public sealed class UpdateMyTestGenderHandler : IUpdateMyTestGenderHandler
+{
+ public Task ExecuteAsync(
+ UpdateMyTestGenderParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ ArgumentNullException.ThrowIfNull(parameters);
+
+ throw new NotImplementedException("Add logic here for UpdateMyTestGenderHandler");
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Users/MyHandlers/UpdateUserByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Users/MyHandlers/UpdateUserByIdHandler.verified.cs
new file mode 100644
index 000000000..4db3de34d
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/src/Structure1.Domain/Users/MyHandlers/UpdateUserByIdHandler.verified.cs
@@ -0,0 +1,18 @@
+namespace Structure1.Domain.Users.MyHandlers;
+
+///
+/// Handler for operation request.
+/// Description: Update user by id.
+/// Operation: UpdateUserById.
+///
+public sealed class UpdateUserByIdHandler : IUpdateUserByIdHandler
+{
+ public Task ExecuteAsync(
+ UpdateUserByIdParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ ArgumentNullException.ThrowIfNull(parameters);
+
+ throw new NotImplementedException("Add logic here for UpdateUserByIdHandler");
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Accounts/MyEndpoints/SetAccountNameHandlerStub.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Accounts/MyEndpoints/SetAccountNameHandlerStub.verified.cs
new file mode 100644
index 000000000..198a26833
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Accounts/MyEndpoints/SetAccountNameHandlerStub.verified.cs
@@ -0,0 +1,18 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Tests.Accounts.MyEndpoints;
+
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class SetAccountNameHandlerStub : ISetAccountNameHandler
+{
+ public Task ExecuteAsync(
+ SetAccountNameParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ return Task.FromResult(SetAccountNameResult.Ok("Hallo world"));
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Accounts/MyEndpoints/UpdateAccountNameHandlerStub.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Accounts/MyEndpoints/UpdateAccountNameHandlerStub.verified.cs
new file mode 100644
index 000000000..4e0bf86ea
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Accounts/MyEndpoints/UpdateAccountNameHandlerStub.verified.cs
@@ -0,0 +1,18 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Tests.Accounts.MyEndpoints;
+
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class UpdateAccountNameHandlerStub : IUpdateAccountNameHandler
+{
+ public Task ExecuteAsync(
+ UpdateAccountNameParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ return Task.FromResult(UpdateAccountNameResult.Ok("Hallo world"));
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Addresses/MyEndpoints/GetAddressesByPostalCodesHandlerStub.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Addresses/MyEndpoints/GetAddressesByPostalCodesHandlerStub.verified.cs
new file mode 100644
index 000000000..054394ecd
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Addresses/MyEndpoints/GetAddressesByPostalCodesHandlerStub.verified.cs
@@ -0,0 +1,20 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Tests.Addresses.MyEndpoints;
+
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class GetAddressesByPostalCodesHandlerStub : IGetAddressesByPostalCodesHandler
+{
+ public Task ExecuteAsync(
+ GetAddressesByPostalCodesParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ var data = new Fixture().Create
>();
+
+ return Task.FromResult(GetAddressesByPostalCodesResult.Ok(data));
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/EventArgs/MyEndpoints/GetEventArgByIdHandlerStub.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/EventArgs/MyEndpoints/GetEventArgByIdHandlerStub.verified.cs
new file mode 100644
index 000000000..97aa2826a
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/EventArgs/MyEndpoints/GetEventArgByIdHandlerStub.verified.cs
@@ -0,0 +1,20 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Tests.EventArgs.MyEndpoints;
+
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class GetEventArgByIdHandlerStub : IGetEventArgByIdHandler
+{
+ public Task ExecuteAsync(
+ GetEventArgByIdParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ var data = new Fixture().Create();
+
+ return Task.FromResult(GetEventArgByIdResult.Ok(data));
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/EventArgs/MyEndpoints/GetEventArgsHandlerStub.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/EventArgs/MyEndpoints/GetEventArgsHandlerStub.verified.cs
new file mode 100644
index 000000000..449d26600
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/EventArgs/MyEndpoints/GetEventArgsHandlerStub.verified.cs
@@ -0,0 +1,19 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Tests.EventArgs.MyEndpoints;
+
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class GetEventArgsHandlerStub : IGetEventArgsHandler
+{
+ public Task ExecuteAsync(
+ CancellationToken cancellationToken = default)
+ {
+ var data = new Fixture().Create>();
+
+ return Task.FromResult(GetEventArgsResult.Ok(data));
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Files/MyEndpoints/GetFileByIdHandlerStub.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Files/MyEndpoints/GetFileByIdHandlerStub.verified.cs
new file mode 100644
index 000000000..0246fcdd9
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Files/MyEndpoints/GetFileByIdHandlerStub.verified.cs
@@ -0,0 +1,19 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Tests.Files.MyEndpoints;
+
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class GetFileByIdHandlerStub : IGetFileByIdHandler
+{
+ public Task ExecuteAsync(
+ GetFileByIdParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ var bytes = Encoding.UTF8.GetBytes("Hello World");
+ return Task.FromResult(GetFileByIdResult.Ok(bytes, "dummy.txt"));
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Files/MyEndpoints/UploadMultiFilesAsFormDataHandlerStub.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Files/MyEndpoints/UploadMultiFilesAsFormDataHandlerStub.verified.cs
new file mode 100644
index 000000000..9fd0d7544
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Files/MyEndpoints/UploadMultiFilesAsFormDataHandlerStub.verified.cs
@@ -0,0 +1,18 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Tests.Files.MyEndpoints;
+
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class UploadMultiFilesAsFormDataHandlerStub : IUploadMultiFilesAsFormDataHandler
+{
+ public Task ExecuteAsync(
+ UploadMultiFilesAsFormDataParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ return Task.FromResult(UploadMultiFilesAsFormDataResult.Ok("Hallo world"));
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Files/MyEndpoints/UploadSingleFileAsFormDataHandlerStub.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Files/MyEndpoints/UploadSingleFileAsFormDataHandlerStub.verified.cs
new file mode 100644
index 000000000..3210f03fd
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Files/MyEndpoints/UploadSingleFileAsFormDataHandlerStub.verified.cs
@@ -0,0 +1,18 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Tests.Files.MyEndpoints;
+
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class UploadSingleFileAsFormDataHandlerStub : IUploadSingleFileAsFormDataHandler
+{
+ public Task ExecuteAsync(
+ UploadSingleFileAsFormDataParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ return Task.FromResult(UploadSingleFileAsFormDataResult.Ok("Hallo world"));
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Files/MyEndpoints/UploadSingleObjectWithFileAsFormDataHandlerStub.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Files/MyEndpoints/UploadSingleObjectWithFileAsFormDataHandlerStub.verified.cs
new file mode 100644
index 000000000..55010a38f
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Files/MyEndpoints/UploadSingleObjectWithFileAsFormDataHandlerStub.verified.cs
@@ -0,0 +1,18 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Tests.Files.MyEndpoints;
+
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class UploadSingleObjectWithFileAsFormDataHandlerStub : IUploadSingleObjectWithFileAsFormDataHandler
+{
+ public Task ExecuteAsync(
+ UploadSingleObjectWithFileAsFormDataParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ return Task.FromResult(UploadSingleObjectWithFileAsFormDataResult.Ok("Hallo world"));
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Files/MyEndpoints/UploadSingleObjectWithFilesAsFormDataHandlerStub.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Files/MyEndpoints/UploadSingleObjectWithFilesAsFormDataHandlerStub.verified.cs
new file mode 100644
index 000000000..afde72194
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Files/MyEndpoints/UploadSingleObjectWithFilesAsFormDataHandlerStub.verified.cs
@@ -0,0 +1,18 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Tests.Files.MyEndpoints;
+
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class UploadSingleObjectWithFilesAsFormDataHandlerStub : IUploadSingleObjectWithFilesAsFormDataHandler
+{
+ public Task ExecuteAsync(
+ UploadSingleObjectWithFilesAsFormDataParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ return Task.FromResult(UploadSingleObjectWithFilesAsFormDataResult.Ok("Hallo world"));
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/GlobalUsings.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/GlobalUsings.verified.cs
new file mode 100644
index 000000000..d88aa660e
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/GlobalUsings.verified.cs
@@ -0,0 +1,29 @@
+global using System.CodeDom.Compiler;
+global using System.Reflection;
+global using System.Text;
+global using System.Text.Json;
+global using System.Text.Json.Serialization;
+
+global using Atc.Rest.Options;
+global using Atc.Rest.Results;
+global using Atc.XUnit;
+
+global using AutoFixture;
+
+global using Microsoft.AspNetCore.Hosting;
+global using Microsoft.AspNetCore.Http;
+global using Microsoft.Extensions.Configuration;
+global using Microsoft.Extensions.DependencyInjection;
+
+global using Structure1.Api.Generated;
+global using Structure1.Api.Generated.Accounts.MyContracts;
+global using Structure1.Api.Generated.Addresses.MyContracts;
+global using Structure1.Api.Generated.EventArgs.MyContracts;
+global using Structure1.Api.Generated.Files.MyContracts;
+global using Structure1.Api.Generated.Items.MyContracts;
+global using Structure1.Api.Generated.MyContracts;
+global using Structure1.Api.Generated.Orders.MyContracts;
+global using Structure1.Api.Generated.RouteWithDash.MyContracts;
+global using Structure1.Api.Generated.Users.MyContracts;
+
+global using Xunit;
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Items/MyEndpoints/CreateItemHandlerStub.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Items/MyEndpoints/CreateItemHandlerStub.verified.cs
new file mode 100644
index 000000000..6638162fe
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Items/MyEndpoints/CreateItemHandlerStub.verified.cs
@@ -0,0 +1,18 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Tests.Items.MyEndpoints;
+
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class CreateItemHandlerStub : ICreateItemHandler
+{
+ public Task ExecuteAsync(
+ CreateItemParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ return Task.FromResult(CreateItemResult.Ok("Hallo world"));
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Items/MyEndpoints/UpdateItemHandlerStub.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Items/MyEndpoints/UpdateItemHandlerStub.verified.cs
new file mode 100644
index 000000000..0c6bb8ca3
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Items/MyEndpoints/UpdateItemHandlerStub.verified.cs
@@ -0,0 +1,18 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Tests.Items.MyEndpoints;
+
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class UpdateItemHandlerStub : IUpdateItemHandler
+{
+ public Task ExecuteAsync(
+ UpdateItemParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ return Task.FromResult(UpdateItemResult.Ok(Guid.NewGuid()));
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Orders/MyEndpoints/GetOrderByIdHandlerStub.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Orders/MyEndpoints/GetOrderByIdHandlerStub.verified.cs
new file mode 100644
index 000000000..e87526e54
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Orders/MyEndpoints/GetOrderByIdHandlerStub.verified.cs
@@ -0,0 +1,20 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Tests.Orders.MyEndpoints;
+
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class GetOrderByIdHandlerStub : IGetOrderByIdHandler
+{
+ public Task ExecuteAsync(
+ GetOrderByIdParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ var data = new Fixture().Create();
+
+ return Task.FromResult(GetOrderByIdResult.Ok(data));
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Orders/MyEndpoints/GetOrdersHandlerStub.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Orders/MyEndpoints/GetOrdersHandlerStub.verified.cs
new file mode 100644
index 000000000..617d4e5aa
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Orders/MyEndpoints/GetOrdersHandlerStub.verified.cs
@@ -0,0 +1,26 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Tests.Orders.MyEndpoints;
+
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class GetOrdersHandlerStub : IGetOrdersHandler
+{
+ public Task ExecuteAsync(
+ GetOrdersParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ var data = new Fixture().Create>();
+
+ var paginationData = new Pagination(
+ data,
+ parameters.PageSize,
+ parameters.QueryString,
+ parameters.ContinuationToken);
+
+ return Task.FromResult(GetOrdersResult.Ok(paginationData));
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Orders/MyEndpoints/PatchOrdersIdHandlerStub.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Orders/MyEndpoints/PatchOrdersIdHandlerStub.verified.cs
new file mode 100644
index 000000000..c0e77579a
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Orders/MyEndpoints/PatchOrdersIdHandlerStub.verified.cs
@@ -0,0 +1,18 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Tests.Orders.MyEndpoints;
+
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class PatchOrdersIdHandlerStub : IPatchOrdersIdHandler
+{
+ public Task ExecuteAsync(
+ PatchOrdersIdParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ return Task.FromResult(PatchOrdersIdResult.Ok("Hallo world"));
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/RouteWithDash/MyEndpoints/GetRouteWithDashHandlerStub.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/RouteWithDash/MyEndpoints/GetRouteWithDashHandlerStub.verified.cs
new file mode 100644
index 000000000..f4695c917
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/RouteWithDash/MyEndpoints/GetRouteWithDashHandlerStub.verified.cs
@@ -0,0 +1,17 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Tests.RouteWithDash.MyEndpoints;
+
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class GetRouteWithDashHandlerStub : IGetRouteWithDashHandler
+{
+ public Task ExecuteAsync(
+ CancellationToken cancellationToken = default)
+ {
+ return Task.FromResult(GetRouteWithDashResult.Ok("Hallo world"));
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Tasks/MyEndpoints/GetTasksHandlerStub.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Tasks/MyEndpoints/GetTasksHandlerStub.verified.cs
new file mode 100644
index 000000000..b03679c27
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Tasks/MyEndpoints/GetTasksHandlerStub.verified.cs
@@ -0,0 +1,19 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Tests.Tasks.MyEndpoints;
+
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class GetTasksHandlerStub : Structure1.Api.Tests.Tasks.MyEndpoints.IGetTasksHandler
+{
+ public Task ExecuteAsync(
+ CancellationToken cancellationToken = default)
+ {
+ var data = new Fixture().Create>();
+
+ return Task.FromResult(Structure1.Api.Tests.Tasks.MyEndpoints.GetTasksResult.Ok(data));
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Users/MyEndpoints/DeleteUserByIdHandlerStub.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Users/MyEndpoints/DeleteUserByIdHandlerStub.verified.cs
new file mode 100644
index 000000000..510198942
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Users/MyEndpoints/DeleteUserByIdHandlerStub.verified.cs
@@ -0,0 +1,18 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Tests.Users.MyEndpoints;
+
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class DeleteUserByIdHandlerStub : IDeleteUserByIdHandler
+{
+ public Task ExecuteAsync(
+ DeleteUserByIdParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ return Task.FromResult(DeleteUserByIdResult.Ok("Hallo world"));
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Users/MyEndpoints/GetUserByEmailHandlerStub.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Users/MyEndpoints/GetUserByEmailHandlerStub.verified.cs
new file mode 100644
index 000000000..f3b76b3ce
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Users/MyEndpoints/GetUserByEmailHandlerStub.verified.cs
@@ -0,0 +1,20 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Tests.Users.MyEndpoints;
+
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class GetUserByEmailHandlerStub : IGetUserByEmailHandler
+{
+ public Task ExecuteAsync(
+ GetUserByEmailParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ var data = new Fixture().Create();
+
+ return Task.FromResult(GetUserByEmailResult.Ok(data));
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Users/MyEndpoints/GetUserByIdHandlerStub.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Users/MyEndpoints/GetUserByIdHandlerStub.verified.cs
new file mode 100644
index 000000000..3fac45f29
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Users/MyEndpoints/GetUserByIdHandlerStub.verified.cs
@@ -0,0 +1,20 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Tests.Users.MyEndpoints;
+
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class GetUserByIdHandlerStub : IGetUserByIdHandler
+{
+ public Task ExecuteAsync(
+ GetUserByIdParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ var data = new Fixture().Create();
+
+ return Task.FromResult(GetUserByIdResult.Ok(data));
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Users/MyEndpoints/GetUsersHandlerStub.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Users/MyEndpoints/GetUsersHandlerStub.verified.cs
new file mode 100644
index 000000000..f3ba032d4
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Users/MyEndpoints/GetUsersHandlerStub.verified.cs
@@ -0,0 +1,19 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Tests.Users.MyEndpoints;
+
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class GetUsersHandlerStub : IGetUsersHandler
+{
+ public Task ExecuteAsync(
+ CancellationToken cancellationToken = default)
+ {
+ var data = new Fixture().Create>();
+
+ return Task.FromResult(GetUsersResult.Ok(data));
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Users/MyEndpoints/PostUserHandlerStub.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Users/MyEndpoints/PostUserHandlerStub.verified.cs
new file mode 100644
index 000000000..22d448e22
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Users/MyEndpoints/PostUserHandlerStub.verified.cs
@@ -0,0 +1,18 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Tests.Users.MyEndpoints;
+
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class PostUserHandlerStub : IPostUserHandler
+{
+ public Task ExecuteAsync(
+ PostUserParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ return Task.FromResult(PostUserResult.Created());
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Users/MyEndpoints/UpdateMyTestGenderHandlerStub.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Users/MyEndpoints/UpdateMyTestGenderHandlerStub.verified.cs
new file mode 100644
index 000000000..82e7f0adf
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Users/MyEndpoints/UpdateMyTestGenderHandlerStub.verified.cs
@@ -0,0 +1,18 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Tests.Users.MyEndpoints;
+
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class UpdateMyTestGenderHandlerStub : IUpdateMyTestGenderHandler
+{
+ public Task ExecuteAsync(
+ UpdateMyTestGenderParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ return Task.FromResult(UpdateMyTestGenderResult.Ok("Hallo world"));
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Users/MyEndpoints/UpdateUserByIdHandlerStub.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Users/MyEndpoints/UpdateUserByIdHandlerStub.verified.cs
new file mode 100644
index 000000000..e454f18be
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Api.Tests/Users/MyEndpoints/UpdateUserByIdHandlerStub.verified.cs
@@ -0,0 +1,18 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Tests.Users.MyEndpoints;
+
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class UpdateUserByIdHandlerStub : IUpdateUserByIdHandler
+{
+ public Task ExecuteAsync(
+ UpdateUserByIdParameters parameters,
+ CancellationToken cancellationToken = default)
+ {
+ return Task.FromResult(UpdateUserByIdResult.Ok("Hallo world"));
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Accounts/MyHandlers/SetAccountNameHandlerTests.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Accounts/MyHandlers/SetAccountNameHandlerTests.verified.cs
new file mode 100644
index 000000000..4d76dc542
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Accounts/MyHandlers/SetAccountNameHandlerTests.verified.cs
@@ -0,0 +1,14 @@
+namespace Structure1.Domain.Tests.Accounts.MyHandlers;
+
+public class SetAccountNameHandlerTests
+{
+ [Fact(Skip = "Change this to a real test")]
+ public void Sample()
+ {
+ // Arrange
+
+ // Act
+
+ // Assert
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Accounts/MyHandlers/UpdateAccountNameHandlerTests.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Accounts/MyHandlers/UpdateAccountNameHandlerTests.verified.cs
new file mode 100644
index 000000000..f5c841eca
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Accounts/MyHandlers/UpdateAccountNameHandlerTests.verified.cs
@@ -0,0 +1,14 @@
+namespace Structure1.Domain.Tests.Accounts.MyHandlers;
+
+public class UpdateAccountNameHandlerTests
+{
+ [Fact(Skip = "Change this to a real test")]
+ public void Sample()
+ {
+ // Arrange
+
+ // Act
+
+ // Assert
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Addresses/MyHandlers/GetAddressesByPostalCodesHandlerTests.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Addresses/MyHandlers/GetAddressesByPostalCodesHandlerTests.verified.cs
new file mode 100644
index 000000000..6ab0c28d8
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Addresses/MyHandlers/GetAddressesByPostalCodesHandlerTests.verified.cs
@@ -0,0 +1,14 @@
+namespace Structure1.Domain.Tests.Addresses.MyHandlers;
+
+public class GetAddressesByPostalCodesHandlerTests
+{
+ [Fact(Skip = "Change this to a real test")]
+ public void Sample()
+ {
+ // Arrange
+
+ // Act
+
+ // Assert
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/EventArgs/MyHandlers/GetEventArgByIdHandlerTests.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/EventArgs/MyHandlers/GetEventArgByIdHandlerTests.verified.cs
new file mode 100644
index 000000000..765256080
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/EventArgs/MyHandlers/GetEventArgByIdHandlerTests.verified.cs
@@ -0,0 +1,14 @@
+namespace Structure1.Domain.Tests.EventArgs.MyHandlers;
+
+public class GetEventArgByIdHandlerTests
+{
+ [Fact(Skip = "Change this to a real test")]
+ public void Sample()
+ {
+ // Arrange
+
+ // Act
+
+ // Assert
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/EventArgs/MyHandlers/GetEventArgsHandlerTests.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/EventArgs/MyHandlers/GetEventArgsHandlerTests.verified.cs
new file mode 100644
index 000000000..0084c1603
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/EventArgs/MyHandlers/GetEventArgsHandlerTests.verified.cs
@@ -0,0 +1,14 @@
+namespace Structure1.Domain.Tests.EventArgs.MyHandlers;
+
+public class GetEventArgsHandlerTests
+{
+ [Fact(Skip = "Change this to a real test")]
+ public void Sample()
+ {
+ // Arrange
+
+ // Act
+
+ // Assert
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Files/MyHandlers/GetFileByIdHandlerTests.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Files/MyHandlers/GetFileByIdHandlerTests.verified.cs
new file mode 100644
index 000000000..0a2401436
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Files/MyHandlers/GetFileByIdHandlerTests.verified.cs
@@ -0,0 +1,14 @@
+namespace Structure1.Domain.Tests.Files.MyHandlers;
+
+public class GetFileByIdHandlerTests
+{
+ [Fact(Skip = "Change this to a real test")]
+ public void Sample()
+ {
+ // Arrange
+
+ // Act
+
+ // Assert
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Files/MyHandlers/UploadMultiFilesAsFormDataHandlerTests.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Files/MyHandlers/UploadMultiFilesAsFormDataHandlerTests.verified.cs
new file mode 100644
index 000000000..41d7bf7d8
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Files/MyHandlers/UploadMultiFilesAsFormDataHandlerTests.verified.cs
@@ -0,0 +1,14 @@
+namespace Structure1.Domain.Tests.Files.MyHandlers;
+
+public class UploadMultiFilesAsFormDataHandlerTests
+{
+ [Fact(Skip = "Change this to a real test")]
+ public void Sample()
+ {
+ // Arrange
+
+ // Act
+
+ // Assert
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Files/MyHandlers/UploadSingleFileAsFormDataHandlerTests.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Files/MyHandlers/UploadSingleFileAsFormDataHandlerTests.verified.cs
new file mode 100644
index 000000000..27ec01758
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Files/MyHandlers/UploadSingleFileAsFormDataHandlerTests.verified.cs
@@ -0,0 +1,14 @@
+namespace Structure1.Domain.Tests.Files.MyHandlers;
+
+public class UploadSingleFileAsFormDataHandlerTests
+{
+ [Fact(Skip = "Change this to a real test")]
+ public void Sample()
+ {
+ // Arrange
+
+ // Act
+
+ // Assert
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Files/MyHandlers/UploadSingleObjectWithFileAsFormDataHandlerTests.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Files/MyHandlers/UploadSingleObjectWithFileAsFormDataHandlerTests.verified.cs
new file mode 100644
index 000000000..f15b9bda1
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Files/MyHandlers/UploadSingleObjectWithFileAsFormDataHandlerTests.verified.cs
@@ -0,0 +1,14 @@
+namespace Structure1.Domain.Tests.Files.MyHandlers;
+
+public class UploadSingleObjectWithFileAsFormDataHandlerTests
+{
+ [Fact(Skip = "Change this to a real test")]
+ public void Sample()
+ {
+ // Arrange
+
+ // Act
+
+ // Assert
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Files/MyHandlers/UploadSingleObjectWithFilesAsFormDataHandlerTests.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Files/MyHandlers/UploadSingleObjectWithFilesAsFormDataHandlerTests.verified.cs
new file mode 100644
index 000000000..422d78547
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Files/MyHandlers/UploadSingleObjectWithFilesAsFormDataHandlerTests.verified.cs
@@ -0,0 +1,14 @@
+namespace Structure1.Domain.Tests.Files.MyHandlers;
+
+public class UploadSingleObjectWithFilesAsFormDataHandlerTests
+{
+ [Fact(Skip = "Change this to a real test")]
+ public void Sample()
+ {
+ // Arrange
+
+ // Act
+
+ // Assert
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/GlobalUsings.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/GlobalUsings.verified.cs
new file mode 100644
index 000000000..a611174c9
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/GlobalUsings.verified.cs
@@ -0,0 +1 @@
+global using Xunit;
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Items/MyHandlers/CreateItemHandlerTests.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Items/MyHandlers/CreateItemHandlerTests.verified.cs
new file mode 100644
index 000000000..147aa5fdd
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Items/MyHandlers/CreateItemHandlerTests.verified.cs
@@ -0,0 +1,14 @@
+namespace Structure1.Domain.Tests.Items.MyHandlers;
+
+public class CreateItemHandlerTests
+{
+ [Fact(Skip = "Change this to a real test")]
+ public void Sample()
+ {
+ // Arrange
+
+ // Act
+
+ // Assert
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Items/MyHandlers/UpdateItemHandlerTests.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Items/MyHandlers/UpdateItemHandlerTests.verified.cs
new file mode 100644
index 000000000..10b06df06
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Items/MyHandlers/UpdateItemHandlerTests.verified.cs
@@ -0,0 +1,14 @@
+namespace Structure1.Domain.Tests.Items.MyHandlers;
+
+public class UpdateItemHandlerTests
+{
+ [Fact(Skip = "Change this to a real test")]
+ public void Sample()
+ {
+ // Arrange
+
+ // Act
+
+ // Assert
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Orders/MyHandlers/GetOrderByIdHandlerTests.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Orders/MyHandlers/GetOrderByIdHandlerTests.verified.cs
new file mode 100644
index 000000000..7d1e1c202
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Orders/MyHandlers/GetOrderByIdHandlerTests.verified.cs
@@ -0,0 +1,14 @@
+namespace Structure1.Domain.Tests.Orders.MyHandlers;
+
+public class GetOrderByIdHandlerTests
+{
+ [Fact(Skip = "Change this to a real test")]
+ public void Sample()
+ {
+ // Arrange
+
+ // Act
+
+ // Assert
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Orders/MyHandlers/GetOrdersHandlerTests.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Orders/MyHandlers/GetOrdersHandlerTests.verified.cs
new file mode 100644
index 000000000..0a2a466be
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Orders/MyHandlers/GetOrdersHandlerTests.verified.cs
@@ -0,0 +1,14 @@
+namespace Structure1.Domain.Tests.Orders.MyHandlers;
+
+public class GetOrdersHandlerTests
+{
+ [Fact(Skip = "Change this to a real test")]
+ public void Sample()
+ {
+ // Arrange
+
+ // Act
+
+ // Assert
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Orders/MyHandlers/PatchOrdersIdHandlerTests.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Orders/MyHandlers/PatchOrdersIdHandlerTests.verified.cs
new file mode 100644
index 000000000..119e0887a
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Orders/MyHandlers/PatchOrdersIdHandlerTests.verified.cs
@@ -0,0 +1,14 @@
+namespace Structure1.Domain.Tests.Orders.MyHandlers;
+
+public class PatchOrdersIdHandlerTests
+{
+ [Fact(Skip = "Change this to a real test")]
+ public void Sample()
+ {
+ // Arrange
+
+ // Act
+
+ // Assert
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/RouteWithDash/MyHandlers/GetRouteWithDashHandlerTests.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/RouteWithDash/MyHandlers/GetRouteWithDashHandlerTests.verified.cs
new file mode 100644
index 000000000..5a860cfe0
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/RouteWithDash/MyHandlers/GetRouteWithDashHandlerTests.verified.cs
@@ -0,0 +1,14 @@
+namespace Structure1.Domain.Tests.RouteWithDash.MyHandlers;
+
+public class GetRouteWithDashHandlerTests
+{
+ [Fact(Skip = "Change this to a real test")]
+ public void Sample()
+ {
+ // Arrange
+
+ // Act
+
+ // Assert
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Tasks/MyHandlers/GetTasksHandlerTests.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Tasks/MyHandlers/GetTasksHandlerTests.verified.cs
new file mode 100644
index 000000000..373c9b225
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Tasks/MyHandlers/GetTasksHandlerTests.verified.cs
@@ -0,0 +1,14 @@
+namespace Structure1.Domain.Tests.Tasks.MyHandlers;
+
+public class GetTasksHandlerTests
+{
+ [Fact(Skip = "Change this to a real test")]
+ public void Sample()
+ {
+ // Arrange
+
+ // Act
+
+ // Assert
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Users/MyHandlers/DeleteUserByIdHandlerTests.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Users/MyHandlers/DeleteUserByIdHandlerTests.verified.cs
new file mode 100644
index 000000000..e15b29f06
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Users/MyHandlers/DeleteUserByIdHandlerTests.verified.cs
@@ -0,0 +1,14 @@
+namespace Structure1.Domain.Tests.Users.MyHandlers;
+
+public class DeleteUserByIdHandlerTests
+{
+ [Fact(Skip = "Change this to a real test")]
+ public void Sample()
+ {
+ // Arrange
+
+ // Act
+
+ // Assert
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Users/MyHandlers/GetUserByEmailHandlerTests.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Users/MyHandlers/GetUserByEmailHandlerTests.verified.cs
new file mode 100644
index 000000000..13b459c38
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Users/MyHandlers/GetUserByEmailHandlerTests.verified.cs
@@ -0,0 +1,14 @@
+namespace Structure1.Domain.Tests.Users.MyHandlers;
+
+public class GetUserByEmailHandlerTests
+{
+ [Fact(Skip = "Change this to a real test")]
+ public void Sample()
+ {
+ // Arrange
+
+ // Act
+
+ // Assert
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Users/MyHandlers/GetUserByIdHandlerTests.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Users/MyHandlers/GetUserByIdHandlerTests.verified.cs
new file mode 100644
index 000000000..0cc5461fe
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Users/MyHandlers/GetUserByIdHandlerTests.verified.cs
@@ -0,0 +1,14 @@
+namespace Structure1.Domain.Tests.Users.MyHandlers;
+
+public class GetUserByIdHandlerTests
+{
+ [Fact(Skip = "Change this to a real test")]
+ public void Sample()
+ {
+ // Arrange
+
+ // Act
+
+ // Assert
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Users/MyHandlers/GetUsersHandlerTests.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Users/MyHandlers/GetUsersHandlerTests.verified.cs
new file mode 100644
index 000000000..134d6b46c
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Users/MyHandlers/GetUsersHandlerTests.verified.cs
@@ -0,0 +1,14 @@
+namespace Structure1.Domain.Tests.Users.MyHandlers;
+
+public class GetUsersHandlerTests
+{
+ [Fact(Skip = "Change this to a real test")]
+ public void Sample()
+ {
+ // Arrange
+
+ // Act
+
+ // Assert
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Users/MyHandlers/PostUserHandlerTests.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Users/MyHandlers/PostUserHandlerTests.verified.cs
new file mode 100644
index 000000000..18dcae505
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Users/MyHandlers/PostUserHandlerTests.verified.cs
@@ -0,0 +1,14 @@
+namespace Structure1.Domain.Tests.Users.MyHandlers;
+
+public class PostUserHandlerTests
+{
+ [Fact(Skip = "Change this to a real test")]
+ public void Sample()
+ {
+ // Arrange
+
+ // Act
+
+ // Assert
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Users/MyHandlers/UpdateMyTestGenderHandlerTests.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Users/MyHandlers/UpdateMyTestGenderHandlerTests.verified.cs
new file mode 100644
index 000000000..88f693f7d
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Users/MyHandlers/UpdateMyTestGenderHandlerTests.verified.cs
@@ -0,0 +1,14 @@
+namespace Structure1.Domain.Tests.Users.MyHandlers;
+
+public class UpdateMyTestGenderHandlerTests
+{
+ [Fact(Skip = "Change this to a real test")]
+ public void Sample()
+ {
+ // Arrange
+
+ // Act
+
+ // Assert
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Users/MyHandlers/UpdateUserByIdHandlerTests.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Users/MyHandlers/UpdateUserByIdHandlerTests.verified.cs
new file mode 100644
index 000000000..536ab855a
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WOPD/test/Structure1.Domain.Tests/Users/MyHandlers/UpdateUserByIdHandlerTests.verified.cs
@@ -0,0 +1,14 @@
+namespace Structure1.Domain.Tests.Users.MyHandlers;
+
+public class UpdateUserByIdHandlerTests
+{
+ [Fact(Skip = "Change this to a real test")]
+ public void Sample()
+ {
+ // Arrange
+
+ // Act
+
+ // Assert
+ }
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Accounts/MyContracts/Interfaces/ISetAccountNameHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Accounts/MyContracts/Interfaces/ISetAccountNameHandler.verified.cs
new file mode 100644
index 000000000..80dbd1854
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Accounts/MyContracts/Interfaces/ISetAccountNameHandler.verified.cs
@@ -0,0 +1,25 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Accounts.MyContracts;
+
+///
+/// Domain Interface for RequestHandler.
+/// Description: Set name of account.
+/// Operation: SetAccountName.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface ISetAccountNameHandler
+{
+ ///
+ /// Execute method.
+ ///
+ /// The parameters.
+ /// The cancellation token.
+ Task ExecuteAsync(
+ SetAccountNameParameters parameters,
+ CancellationToken cancellationToken = default);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Accounts/MyContracts/Interfaces/IUpdateAccountNameHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Accounts/MyContracts/Interfaces/IUpdateAccountNameHandler.verified.cs
new file mode 100644
index 000000000..12be463b5
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Accounts/MyContracts/Interfaces/IUpdateAccountNameHandler.verified.cs
@@ -0,0 +1,25 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Accounts.MyContracts;
+
+///
+/// Domain Interface for RequestHandler.
+/// Description: Update name of account.
+/// Operation: UpdateAccountName.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface IUpdateAccountNameHandler
+{
+ ///
+ /// Execute method.
+ ///
+ /// The parameters.
+ /// The cancellation token.
+ Task ExecuteAsync(
+ UpdateAccountNameParameters parameters,
+ CancellationToken cancellationToken = default);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Accounts/MyContracts/Models/UpdateAccountRequest.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Accounts/MyContracts/Models/UpdateAccountRequest.verified.cs
new file mode 100644
index 000000000..0555135b9
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Accounts/MyContracts/Models/UpdateAccountRequest.verified.cs
@@ -0,0 +1,14 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Accounts.MyContracts;
+
+///
+/// UpdateAccountRequest.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record UpdateAccountRequest(
+ string Name);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Accounts/MyContracts/Parameters/SetAccountNameParameters.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Accounts/MyContracts/Parameters/SetAccountNameParameters.verified.cs
new file mode 100644
index 000000000..78a7fbe56
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Accounts/MyContracts/Parameters/SetAccountNameParameters.verified.cs
@@ -0,0 +1,17 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Accounts.MyContracts;
+
+///
+/// Parameters for operation request.
+/// Description: Set name of account.
+/// Operation: SetAccountName.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record SetAccountNameParameters(
+ [property: FromRoute, Required] Guid AccountId,
+ [property: FromBody, Required] UpdateAccountRequest Request);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Accounts/MyContracts/Parameters/UpdateAccountNameParameters.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Accounts/MyContracts/Parameters/UpdateAccountNameParameters.verified.cs
new file mode 100644
index 000000000..ce3fce97a
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Accounts/MyContracts/Parameters/UpdateAccountNameParameters.verified.cs
@@ -0,0 +1,17 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Accounts.MyContracts;
+
+///
+/// Parameters for operation request.
+/// Description: Update name of account.
+/// Operation: UpdateAccountName.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record UpdateAccountNameParameters(
+ [property: FromRoute, Required] Guid AccountId,
+ [property: FromHeader] string? Name);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Accounts/MyContracts/Results/SetAccountNameResult.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Accounts/MyContracts/Results/SetAccountNameResult.verified.cs
new file mode 100644
index 000000000..f807498f4
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Accounts/MyContracts/Results/SetAccountNameResult.verified.cs
@@ -0,0 +1,35 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Accounts.MyContracts;
+
+///
+/// Results for operation request.
+/// Description: Set name of account.
+/// Operation: SetAccountName.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class SetAccountNameResult
+{
+ private SetAccountNameResult(IResult result)
+ {
+ Result = result;
+ }
+
+ public IResult Result { get; }
+
+ ///
+ /// 200 - Ok response.
+ ///
+ public static SetAccountNameResult Ok(string? message = null)
+ => new(TypedResults.Ok(message));
+
+ ///
+ /// Performs an implicit conversion from SetAccountNameResult to IResult.
+ ///
+ public static IResult ToIResult(SetAccountNameResult result)
+ => result.Result;
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Accounts/MyContracts/Results/UpdateAccountNameResult.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Accounts/MyContracts/Results/UpdateAccountNameResult.verified.cs
new file mode 100644
index 000000000..29c710bb1
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Accounts/MyContracts/Results/UpdateAccountNameResult.verified.cs
@@ -0,0 +1,35 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Accounts.MyContracts;
+
+///
+/// Results for operation request.
+/// Description: Update name of account.
+/// Operation: UpdateAccountName.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class UpdateAccountNameResult
+{
+ private UpdateAccountNameResult(IResult result)
+ {
+ Result = result;
+ }
+
+ public IResult Result { get; }
+
+ ///
+ /// 200 - Ok response.
+ ///
+ public static UpdateAccountNameResult Ok(string? message = null)
+ => new(TypedResults.Ok(message));
+
+ ///
+ /// Performs an implicit conversion from UpdateAccountNameResult to IResult.
+ ///
+ public static IResult ToIResult(UpdateAccountNameResult result)
+ => result.Result;
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Addresses/MyContracts/Interfaces/IGetAddressesByPostalCodesHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Addresses/MyContracts/Interfaces/IGetAddressesByPostalCodesHandler.verified.cs
new file mode 100644
index 000000000..5e1b3ecb2
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Addresses/MyContracts/Interfaces/IGetAddressesByPostalCodesHandler.verified.cs
@@ -0,0 +1,25 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Addresses.MyContracts;
+
+///
+/// Domain Interface for RequestHandler.
+/// Description: Get addresses by postal code.
+/// Operation: GetAddressesByPostalCodes.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface IGetAddressesByPostalCodesHandler
+{
+ ///
+ /// Execute method.
+ ///
+ /// The parameters.
+ /// The cancellation token.
+ Task ExecuteAsync(
+ GetAddressesByPostalCodesParameters parameters,
+ CancellationToken cancellationToken = default);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Addresses/MyContracts/Parameters/GetAddressesByPostalCodesParameters.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Addresses/MyContracts/Parameters/GetAddressesByPostalCodesParameters.verified.cs
new file mode 100644
index 000000000..f3c4359c6
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Addresses/MyContracts/Parameters/GetAddressesByPostalCodesParameters.verified.cs
@@ -0,0 +1,16 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Addresses.MyContracts;
+
+///
+/// Parameters for operation request.
+/// Description: Get addresses by postal code.
+/// Operation: GetAddressesByPostalCodes.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record GetAddressesByPostalCodesParameters(
+ [property: FromRoute, Required] string PostalCode);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Addresses/MyContracts/Results/GetAddressesByPostalCodesResult.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Addresses/MyContracts/Results/GetAddressesByPostalCodesResult.verified.cs
new file mode 100644
index 000000000..89f5f0ccf
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Addresses/MyContracts/Results/GetAddressesByPostalCodesResult.verified.cs
@@ -0,0 +1,41 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Addresses.MyContracts;
+
+///
+/// Results for operation request.
+/// Description: Get addresses by postal code.
+/// Operation: GetAddressesByPostalCodes.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class GetAddressesByPostalCodesResult
+{
+ private GetAddressesByPostalCodesResult(IResult result)
+ {
+ Result = result;
+ }
+
+ public IResult Result { get; }
+
+ ///
+ /// 200 - Ok response.
+ ///
+ public static GetAddressesByPostalCodesResult Ok(List result)
+ => new(TypedResults.Ok(result));
+
+ ///
+ /// 404 - NotFound response.
+ ///
+ public static GetAddressesByPostalCodesResult NotFound(string? message = null)
+ => new(TypedResults.NotFound(message));
+
+ ///
+ /// Performs an implicit conversion from GetAddressesByPostalCodesResult to IResult.
+ ///
+ public static IResult ToIResult(GetAddressesByPostalCodesResult result)
+ => result.Result;
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/EventArgs/MyContracts/Interfaces/IGetEventArgByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/EventArgs/MyContracts/Interfaces/IGetEventArgByIdHandler.verified.cs
new file mode 100644
index 000000000..3a4df487b
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/EventArgs/MyContracts/Interfaces/IGetEventArgByIdHandler.verified.cs
@@ -0,0 +1,25 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.EventArgs.MyContracts;
+
+///
+/// Domain Interface for RequestHandler.
+/// Description: Get EventArgs By Id.
+/// Operation: GetEventArgById.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface IGetEventArgByIdHandler
+{
+ ///
+ /// Execute method.
+ ///
+ /// The parameters.
+ /// The cancellation token.
+ Task ExecuteAsync(
+ GetEventArgByIdParameters parameters,
+ CancellationToken cancellationToken = default);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/EventArgs/MyContracts/Interfaces/IGetEventArgsHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/EventArgs/MyContracts/Interfaces/IGetEventArgsHandler.verified.cs
new file mode 100644
index 000000000..95b0fb798
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/EventArgs/MyContracts/Interfaces/IGetEventArgsHandler.verified.cs
@@ -0,0 +1,23 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.EventArgs.MyContracts;
+
+///
+/// Domain Interface for RequestHandler.
+/// Description: Get EventArgs List.
+/// Operation: GetEventArgs.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface IGetEventArgsHandler
+{
+ ///
+ /// Execute method.
+ ///
+ /// The cancellation token.
+ Task ExecuteAsync(
+ CancellationToken cancellationToken = default);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/EventArgs/MyContracts/Models/EventArgs.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/EventArgs/MyContracts/Models/EventArgs.verified.cs
new file mode 100644
index 000000000..07248fbcf
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/EventArgs/MyContracts/Models/EventArgs.verified.cs
@@ -0,0 +1,15 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.EventArgs.MyContracts;
+
+///
+/// EventArgs.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record EventArgs(
+ Guid Id,
+ string EventName);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/EventArgs/MyContracts/Parameters/GetEventArgByIdParameters.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/EventArgs/MyContracts/Parameters/GetEventArgByIdParameters.verified.cs
new file mode 100644
index 000000000..f033abc2a
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/EventArgs/MyContracts/Parameters/GetEventArgByIdParameters.verified.cs
@@ -0,0 +1,16 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.EventArgs.MyContracts;
+
+///
+/// Parameters for operation request.
+/// Description: Get EventArgs By Id.
+/// Operation: GetEventArgById.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record GetEventArgByIdParameters(
+ [property: FromRoute, Required] string Id);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/EventArgs/MyContracts/Results/GetEventArgByIdResult.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/EventArgs/MyContracts/Results/GetEventArgByIdResult.verified.cs
new file mode 100644
index 000000000..b698dd88e
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/EventArgs/MyContracts/Results/GetEventArgByIdResult.verified.cs
@@ -0,0 +1,41 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.EventArgs.MyContracts;
+
+///
+/// Results for operation request.
+/// Description: Get EventArgs By Id.
+/// Operation: GetEventArgById.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class GetEventArgByIdResult
+{
+ private GetEventArgByIdResult(IResult result)
+ {
+ Result = result;
+ }
+
+ public IResult Result { get; }
+
+ ///
+ /// 200 - Ok response.
+ ///
+ public static GetEventArgByIdResult Ok(EventArgs result)
+ => new(TypedResults.Ok(result));
+
+ ///
+ /// 404 - NotFound response.
+ ///
+ public static GetEventArgByIdResult NotFound(string? message = null)
+ => new(TypedResults.NotFound(message));
+
+ ///
+ /// Performs an implicit conversion from GetEventArgByIdResult to IResult.
+ ///
+ public static IResult ToIResult(GetEventArgByIdResult result)
+ => result.Result;
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/EventArgs/MyContracts/Results/GetEventArgsResult.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/EventArgs/MyContracts/Results/GetEventArgsResult.verified.cs
new file mode 100644
index 000000000..6730ef585
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/EventArgs/MyContracts/Results/GetEventArgsResult.verified.cs
@@ -0,0 +1,35 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.EventArgs.MyContracts;
+
+///
+/// Results for operation request.
+/// Description: Get EventArgs List.
+/// Operation: GetEventArgs.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class GetEventArgsResult
+{
+ private GetEventArgsResult(IResult result)
+ {
+ Result = result;
+ }
+
+ public IResult Result { get; }
+
+ ///
+ /// 200 - Ok response.
+ ///
+ public static GetEventArgsResult Ok(List result)
+ => new(TypedResults.Ok(result));
+
+ ///
+ /// Performs an implicit conversion from GetEventArgsResult to IResult.
+ ///
+ public static IResult ToIResult(GetEventArgsResult result)
+ => result.Result;
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Interfaces/IGetFileByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Interfaces/IGetFileByIdHandler.verified.cs
new file mode 100644
index 000000000..a10a53e3e
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Interfaces/IGetFileByIdHandler.verified.cs
@@ -0,0 +1,25 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Files.MyContracts;
+
+///
+/// Domain Interface for RequestHandler.
+/// Description: Get File By Id.
+/// Operation: GetFileById.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface IGetFileByIdHandler
+{
+ ///
+ /// Execute method.
+ ///
+ /// The parameters.
+ /// The cancellation token.
+ Task ExecuteAsync(
+ GetFileByIdParameters parameters,
+ CancellationToken cancellationToken = default);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Interfaces/IUploadMultiFilesAsFormDataHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Interfaces/IUploadMultiFilesAsFormDataHandler.verified.cs
new file mode 100644
index 000000000..1ddda3760
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Interfaces/IUploadMultiFilesAsFormDataHandler.verified.cs
@@ -0,0 +1,25 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Files.MyContracts;
+
+///
+/// Domain Interface for RequestHandler.
+/// Description: Upload multi files as form data.
+/// Operation: UploadMultiFilesAsFormData.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface IUploadMultiFilesAsFormDataHandler
+{
+ ///
+ /// Execute method.
+ ///
+ /// The parameters.
+ /// The cancellation token.
+ Task ExecuteAsync(
+ UploadMultiFilesAsFormDataParameters parameters,
+ CancellationToken cancellationToken = default);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Interfaces/IUploadSingleFileAsFormDataHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Interfaces/IUploadSingleFileAsFormDataHandler.verified.cs
new file mode 100644
index 000000000..dcf66124e
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Interfaces/IUploadSingleFileAsFormDataHandler.verified.cs
@@ -0,0 +1,25 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Files.MyContracts;
+
+///
+/// Domain Interface for RequestHandler.
+/// Description: Upload a file as OctetStream.
+/// Operation: UploadSingleFileAsFormData.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface IUploadSingleFileAsFormDataHandler
+{
+ ///
+ /// Execute method.
+ ///
+ /// The parameters.
+ /// The cancellation token.
+ Task ExecuteAsync(
+ UploadSingleFileAsFormDataParameters parameters,
+ CancellationToken cancellationToken = default);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Interfaces/IUploadSingleObjectWithFileAsFormDataHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Interfaces/IUploadSingleObjectWithFileAsFormDataHandler.verified.cs
new file mode 100644
index 000000000..bdaeeac4c
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Interfaces/IUploadSingleObjectWithFileAsFormDataHandler.verified.cs
@@ -0,0 +1,25 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Files.MyContracts;
+
+///
+/// Domain Interface for RequestHandler.
+/// Description: Upload a file as FormData.
+/// Operation: UploadSingleObjectWithFileAsFormData.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface IUploadSingleObjectWithFileAsFormDataHandler
+{
+ ///
+ /// Execute method.
+ ///
+ /// The parameters.
+ /// The cancellation token.
+ Task ExecuteAsync(
+ UploadSingleObjectWithFileAsFormDataParameters parameters,
+ CancellationToken cancellationToken = default);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Interfaces/IUploadSingleObjectWithFilesAsFormDataHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Interfaces/IUploadSingleObjectWithFilesAsFormDataHandler.verified.cs
new file mode 100644
index 000000000..47e56e87e
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Interfaces/IUploadSingleObjectWithFilesAsFormDataHandler.verified.cs
@@ -0,0 +1,25 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Files.MyContracts;
+
+///
+/// Domain Interface for RequestHandler.
+/// Description: Upload files as FormData.
+/// Operation: UploadSingleObjectWithFilesAsFormData.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface IUploadSingleObjectWithFilesAsFormDataHandler
+{
+ ///
+ /// Execute method.
+ ///
+ /// The parameters.
+ /// The cancellation token.
+ Task ExecuteAsync(
+ UploadSingleObjectWithFilesAsFormDataParameters parameters,
+ CancellationToken cancellationToken = default);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Models/FileAsFormDataRequest.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Models/FileAsFormDataRequest.verified.cs
new file mode 100644
index 000000000..ccf6ffb2b
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Models/FileAsFormDataRequest.verified.cs
@@ -0,0 +1,16 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Files.MyContracts;
+
+///
+/// FileAsFormDataRequest.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record FileAsFormDataRequest(
+ [property: Required] string ItemName,
+ IFormFile? File,
+ [property: Required] List Items);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Models/FilesAsFormDataRequest.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Models/FilesAsFormDataRequest.verified.cs
new file mode 100644
index 000000000..95f831b87
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Models/FilesAsFormDataRequest.verified.cs
@@ -0,0 +1,14 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Files.MyContracts;
+
+///
+/// FilesAsFormDataRequest.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record FilesAsFormDataRequest(
+ List Files);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Parameters/GetFileByIdParameters.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Parameters/GetFileByIdParameters.verified.cs
new file mode 100644
index 000000000..584c4c7e1
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Parameters/GetFileByIdParameters.verified.cs
@@ -0,0 +1,16 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Files.MyContracts;
+
+///
+/// Parameters for operation request.
+/// Description: Get File By Id.
+/// Operation: GetFileById.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record GetFileByIdParameters(
+ [property: FromRoute, Required] string Id);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Parameters/UploadMultiFilesAsFormDataParameters.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Parameters/UploadMultiFilesAsFormDataParameters.verified.cs
new file mode 100644
index 000000000..cc24ae2a9
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Parameters/UploadMultiFilesAsFormDataParameters.verified.cs
@@ -0,0 +1,16 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Files.MyContracts;
+
+///
+/// Parameters for operation request.
+/// Description: Upload multi files as form data.
+/// Operation: UploadMultiFilesAsFormData.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record UploadMultiFilesAsFormDataParameters(
+ [property: FromForm, Required] IFormFile Request);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Parameters/UploadSingleFileAsFormDataParameters.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Parameters/UploadSingleFileAsFormDataParameters.verified.cs
new file mode 100644
index 000000000..39c947b12
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Parameters/UploadSingleFileAsFormDataParameters.verified.cs
@@ -0,0 +1,16 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Files.MyContracts;
+
+///
+/// Parameters for operation request.
+/// Description: Upload a file as OctetStream.
+/// Operation: UploadSingleFileAsFormData.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record UploadSingleFileAsFormDataParameters(
+ [property: FromBody, Required] IFormFile Request);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Parameters/UploadSingleObjectWithFileAsFormDataParameters.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Parameters/UploadSingleObjectWithFileAsFormDataParameters.verified.cs
new file mode 100644
index 000000000..0ef601909
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Parameters/UploadSingleObjectWithFileAsFormDataParameters.verified.cs
@@ -0,0 +1,16 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Files.MyContracts;
+
+///
+/// Parameters for operation request.
+/// Description: Upload a file as FormData.
+/// Operation: UploadSingleObjectWithFileAsFormData.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record UploadSingleObjectWithFileAsFormDataParameters(
+ [property: FromForm, Required] FileAsFormDataRequest Request);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Parameters/UploadSingleObjectWithFilesAsFormDataParameters.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Parameters/UploadSingleObjectWithFilesAsFormDataParameters.verified.cs
new file mode 100644
index 000000000..b72f054c2
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Parameters/UploadSingleObjectWithFilesAsFormDataParameters.verified.cs
@@ -0,0 +1,16 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Files.MyContracts;
+
+///
+/// Parameters for operation request.
+/// Description: Upload files as FormData.
+/// Operation: UploadSingleObjectWithFilesAsFormData.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record UploadSingleObjectWithFilesAsFormDataParameters(
+ [property: FromForm, Required] FilesAsFormDataRequest Request);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Results/GetFileByIdResult.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Results/GetFileByIdResult.verified.cs
new file mode 100644
index 000000000..3c6a7cc14
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Results/GetFileByIdResult.verified.cs
@@ -0,0 +1,35 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Files.MyContracts;
+
+///
+/// Results for operation request.
+/// Description: Get File By Id.
+/// Operation: GetFileById.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class GetFileByIdResult
+{
+ private GetFileByIdResult(IResult result)
+ {
+ Result = result;
+ }
+
+ public IResult Result { get; }
+
+ ///
+ /// 200 - Ok response.
+ ///
+ public static GetFileByIdResult Ok(string? message = null)
+ => new(TypedResults.Ok(message));
+
+ ///
+ /// 404 - NotFound response.
+ ///
+ public static GetFileByIdResult NotFound(string? message = null)
+ => new(TypedResults.NotFound(message));
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Results/UploadMultiFilesAsFormDataResult.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Results/UploadMultiFilesAsFormDataResult.verified.cs
new file mode 100644
index 000000000..4e920baf9
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Results/UploadMultiFilesAsFormDataResult.verified.cs
@@ -0,0 +1,35 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Files.MyContracts;
+
+///
+/// Results for operation request.
+/// Description: Upload multi files as form data.
+/// Operation: UploadMultiFilesAsFormData.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class UploadMultiFilesAsFormDataResult
+{
+ private UploadMultiFilesAsFormDataResult(IResult result)
+ {
+ Result = result;
+ }
+
+ public IResult Result { get; }
+
+ ///
+ /// 200 - Ok response.
+ ///
+ public static UploadMultiFilesAsFormDataResult Ok(string? message = null)
+ => new(TypedResults.Ok(message));
+
+ ///
+ /// Performs an implicit conversion from UploadMultiFilesAsFormDataResult to IResult.
+ ///
+ public static IResult ToIResult(UploadMultiFilesAsFormDataResult result)
+ => result.Result;
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Results/UploadSingleFileAsFormDataResult.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Results/UploadSingleFileAsFormDataResult.verified.cs
new file mode 100644
index 000000000..744a7ca11
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Results/UploadSingleFileAsFormDataResult.verified.cs
@@ -0,0 +1,35 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Files.MyContracts;
+
+///
+/// Results for operation request.
+/// Description: Upload a file as OctetStream.
+/// Operation: UploadSingleFileAsFormData.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class UploadSingleFileAsFormDataResult
+{
+ private UploadSingleFileAsFormDataResult(IResult result)
+ {
+ Result = result;
+ }
+
+ public IResult Result { get; }
+
+ ///
+ /// 200 - Ok response.
+ ///
+ public static UploadSingleFileAsFormDataResult Ok(string? message = null)
+ => new(TypedResults.Ok(message));
+
+ ///
+ /// Performs an implicit conversion from UploadSingleFileAsFormDataResult to IResult.
+ ///
+ public static IResult ToIResult(UploadSingleFileAsFormDataResult result)
+ => result.Result;
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Results/UploadSingleObjectWithFileAsFormDataResult.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Results/UploadSingleObjectWithFileAsFormDataResult.verified.cs
new file mode 100644
index 000000000..d7b6492b1
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Results/UploadSingleObjectWithFileAsFormDataResult.verified.cs
@@ -0,0 +1,41 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Files.MyContracts;
+
+///
+/// Results for operation request.
+/// Description: Upload a file as FormData.
+/// Operation: UploadSingleObjectWithFileAsFormData.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class UploadSingleObjectWithFileAsFormDataResult
+{
+ private UploadSingleObjectWithFileAsFormDataResult(IResult result)
+ {
+ Result = result;
+ }
+
+ public IResult Result { get; }
+
+ ///
+ /// 200 - Ok response.
+ ///
+ public static UploadSingleObjectWithFileAsFormDataResult Ok(string? message = null)
+ => new(TypedResults.Ok(message));
+
+ ///
+ /// 400 - BadRequest response.
+ ///
+ public static UploadSingleObjectWithFileAsFormDataResult BadRequest(string? message = null, IDictionary? errors = null)
+ => new(Results.ValidationProblem(errors ?? new Dictionary(), message, null, StatusCodes.Status400BadRequest));
+
+ ///
+ /// Performs an implicit conversion from UploadSingleObjectWithFileAsFormDataResult to IResult.
+ ///
+ public static IResult ToIResult(UploadSingleObjectWithFileAsFormDataResult result)
+ => result.Result;
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Results/UploadSingleObjectWithFilesAsFormDataResult.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Results/UploadSingleObjectWithFilesAsFormDataResult.verified.cs
new file mode 100644
index 000000000..9b32b13c2
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Files/MyContracts/Results/UploadSingleObjectWithFilesAsFormDataResult.verified.cs
@@ -0,0 +1,41 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Files.MyContracts;
+
+///
+/// Results for operation request.
+/// Description: Upload files as FormData.
+/// Operation: UploadSingleObjectWithFilesAsFormData.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class UploadSingleObjectWithFilesAsFormDataResult
+{
+ private UploadSingleObjectWithFilesAsFormDataResult(IResult result)
+ {
+ Result = result;
+ }
+
+ public IResult Result { get; }
+
+ ///
+ /// 200 - Ok response.
+ ///
+ public static UploadSingleObjectWithFilesAsFormDataResult Ok(string? message = null)
+ => new(TypedResults.Ok(message));
+
+ ///
+ /// 400 - BadRequest response.
+ ///
+ public static UploadSingleObjectWithFilesAsFormDataResult BadRequest(string? message = null, IDictionary? errors = null)
+ => new(Results.ValidationProblem(errors ?? new Dictionary(), message, null, StatusCodes.Status400BadRequest));
+
+ ///
+ /// Performs an implicit conversion from UploadSingleObjectWithFilesAsFormDataResult to IResult.
+ ///
+ public static IResult ToIResult(UploadSingleObjectWithFilesAsFormDataResult result)
+ => result.Result;
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/GlobalUsings.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/GlobalUsings.verified.cs
new file mode 100644
index 000000000..e1124768d
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/GlobalUsings.verified.cs
@@ -0,0 +1,23 @@
+global using System.CodeDom.Compiler;
+global using System.ComponentModel.DataAnnotations;
+global using System.Diagnostics.CodeAnalysis;
+
+global using Atc.Rest.MinimalApi.Abstractions;
+global using Atc.Rest.MinimalApi.Filters.Endpoints;
+global using Atc.Rest.Results;
+
+global using Microsoft.AspNetCore.Authorization;
+global using Microsoft.AspNetCore.Builder;
+global using Microsoft.AspNetCore.Http;
+global using Microsoft.AspNetCore.Mvc;
+
+global using Structure1.Api.Generated.Accounts.MyContracts;
+global using Structure1.Api.Generated.Addresses.MyContracts;
+global using Structure1.Api.Generated.EventArgs.MyContracts;
+global using Structure1.Api.Generated.Files.MyContracts;
+global using Structure1.Api.Generated.Items.MyContracts;
+global using Structure1.Api.Generated.MyContracts;
+global using Structure1.Api.Generated.Orders.MyContracts;
+global using Structure1.Api.Generated.RouteWithDash.MyContracts;
+global using Structure1.Api.Generated.Tasks.MyContracts;
+global using Structure1.Api.Generated.Users.MyContracts;
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/IApiContractAssemblyMarker.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/IApiContractAssemblyMarker.verified.cs
new file mode 100644
index 000000000..ce1be25cb
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/IApiContractAssemblyMarker.verified.cs
@@ -0,0 +1,13 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated;
+
+[SuppressMessage("Design", "CA1040:Avoid empty interfaces", Justification = "OK.")]
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface IApiContractAssemblyMarker
+{
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Items/MyContracts/Interfaces/ICreateItemHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Items/MyContracts/Interfaces/ICreateItemHandler.verified.cs
new file mode 100644
index 000000000..e6c623a37
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Items/MyContracts/Interfaces/ICreateItemHandler.verified.cs
@@ -0,0 +1,25 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Items.MyContracts;
+
+///
+/// Domain Interface for RequestHandler.
+/// Description: Create a new item.
+/// Operation: CreateItem.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface ICreateItemHandler
+{
+ ///
+ /// Execute method.
+ ///
+ /// The parameters.
+ /// The cancellation token.
+ Task ExecuteAsync(
+ CreateItemParameters parameters,
+ CancellationToken cancellationToken = default);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Items/MyContracts/Interfaces/IUpdateItemHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Items/MyContracts/Interfaces/IUpdateItemHandler.verified.cs
new file mode 100644
index 000000000..cb7998fd5
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Items/MyContracts/Interfaces/IUpdateItemHandler.verified.cs
@@ -0,0 +1,25 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Items.MyContracts;
+
+///
+/// Domain Interface for RequestHandler.
+/// Description: Updates an item.
+/// Operation: UpdateItem.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public interface IUpdateItemHandler
+{
+ ///
+ /// Execute method.
+ ///
+ /// The parameters.
+ /// The cancellation token.
+ Task ExecuteAsync(
+ UpdateItemParameters parameters,
+ CancellationToken cancellationToken = default);
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Items/MyContracts/Models/CreateItemRequest.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Items/MyContracts/Models/CreateItemRequest.verified.cs
new file mode 100644
index 000000000..660841249
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Items/MyContracts/Models/CreateItemRequest.verified.cs
@@ -0,0 +1,15 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Items.MyContracts;
+
+///
+/// CreateItemRequest.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record CreateItemRequest(
+ [property: Required] Item Item,
+ [property: Required] List- MyItems);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Items/MyContracts/Models/Item.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Items/MyContracts/Models/Item.verified.cs
new file mode 100644
index 000000000..a5e4b9a94
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Items/MyContracts/Models/Item.verified.cs
@@ -0,0 +1,14 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Items.MyContracts;
+
+///
+/// Item.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record Item(
+ [property: Required] string Name);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Items/MyContracts/Models/UpdateItemRequest.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Items/MyContracts/Models/UpdateItemRequest.verified.cs
new file mode 100644
index 000000000..6e87b9045
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Items/MyContracts/Models/UpdateItemRequest.verified.cs
@@ -0,0 +1,14 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Items.MyContracts;
+
+///
+/// UpdateItemRequest.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record UpdateItemRequest(
+ [property: Required] Item Item);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Items/MyContracts/Parameters/CreateItemParameters.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Items/MyContracts/Parameters/CreateItemParameters.verified.cs
new file mode 100644
index 000000000..26a9cb90d
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Items/MyContracts/Parameters/CreateItemParameters.verified.cs
@@ -0,0 +1,16 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Items.MyContracts;
+
+///
+/// Parameters for operation request.
+/// Description: Create a new item.
+/// Operation: CreateItem.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record CreateItemParameters(
+ [property: FromBody, Required] CreateItemRequest Request);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Items/MyContracts/Parameters/UpdateItemParameters.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Items/MyContracts/Parameters/UpdateItemParameters.verified.cs
new file mode 100644
index 000000000..7df0c820f
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Items/MyContracts/Parameters/UpdateItemParameters.verified.cs
@@ -0,0 +1,17 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Items.MyContracts;
+
+///
+/// Parameters for operation request.
+/// Description: Updates an item.
+/// Operation: UpdateItem.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record UpdateItemParameters(
+ [property: FromRoute, Required] Guid Id,
+ [property: FromBody, Required] UpdateItemRequest Request);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Items/MyContracts/Results/CreateItemResult.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Items/MyContracts/Results/CreateItemResult.verified.cs
new file mode 100644
index 000000000..55a004d88
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Items/MyContracts/Results/CreateItemResult.verified.cs
@@ -0,0 +1,35 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Items.MyContracts;
+
+///
+/// Results for operation request.
+/// Description: Create a new item.
+/// Operation: CreateItem.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class CreateItemResult
+{
+ private CreateItemResult(IResult result)
+ {
+ Result = result;
+ }
+
+ public IResult Result { get; }
+
+ ///
+ /// 200 - Ok response.
+ ///
+ public static CreateItemResult Ok(string? message = null)
+ => new(TypedResults.Ok(message));
+
+ ///
+ /// Performs an implicit conversion from CreateItemResult to IResult.
+ ///
+ public static IResult ToIResult(CreateItemResult result)
+ => result.Result;
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Items/MyContracts/Results/UpdateItemResult.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Items/MyContracts/Results/UpdateItemResult.verified.cs
new file mode 100644
index 000000000..db19534c8
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/Items/MyContracts/Results/UpdateItemResult.verified.cs
@@ -0,0 +1,35 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.Items.MyContracts;
+
+///
+/// Results for operation request.
+/// Description: Updates an item.
+/// Operation: UpdateItem.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public class UpdateItemResult
+{
+ private UpdateItemResult(IResult result)
+ {
+ Result = result;
+ }
+
+ public IResult Result { get; }
+
+ ///
+ /// 200 - Ok response.
+ ///
+ public static UpdateItemResult Ok(Guid result)
+ => new(TypedResults.Ok(result));
+
+ ///
+ /// Performs an implicit conversion from UpdateItemResult to IResult.
+ ///
+ public static IResult ToIResult(UpdateItemResult result)
+ => result.Result;
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/MyContracts/_EnumerationTypes/ColorType.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/MyContracts/_EnumerationTypes/ColorType.verified.cs
new file mode 100644
index 000000000..3df9ddd51
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/MyContracts/_EnumerationTypes/ColorType.verified.cs
@@ -0,0 +1,21 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.MyContracts;
+
+///
+/// Enumeration: ColorType.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+[Flags]
+public enum ColorType
+{
+ None = 0,
+ Black = 1,
+ White = 2,
+ Yellow = 4,
+ Red = 8,
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/MyContracts/_EnumerationTypes/GenderType.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/MyContracts/_EnumerationTypes/GenderType.verified.cs
new file mode 100644
index 000000000..fbdaffc77
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/MyContracts/_EnumerationTypes/GenderType.verified.cs
@@ -0,0 +1,19 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.MyContracts;
+
+///
+/// Enumeration: GenderType.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public enum GenderType
+{
+ None,
+ NonBinary,
+ Male,
+ Female,
+}
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/MyContracts/_Shared/Address.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/MyContracts/_Shared/Address.verified.cs
new file mode 100644
index 000000000..dd19143a4
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/MyContracts/_Shared/Address.verified.cs
@@ -0,0 +1,18 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.MyContracts;
+
+///
+/// Address.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record Address(
+ [property: StringLength(255)] string StreetName,
+ string StreetNumber,
+ string PostalCode,
+ string CityName,
+ Country MyCountry);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/MyContracts/_Shared/Country.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/MyContracts/_Shared/Country.verified.cs
new file mode 100644
index 000000000..7907d838e
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/MyContracts/_Shared/Country.verified.cs
@@ -0,0 +1,16 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.MyContracts;
+
+///
+/// Country.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public record Country(
+ [property: Required] string Name,
+ [property: Required, MinLength(2), MaxLength(2), RegularExpression("^[A-Za-z]{2}$")] string Alpha2code,
+ [property: Required, MinLength(3), MaxLength(3), RegularExpression("^[A-Za-z]{3}$")] string Alpha3code);
\ No newline at end of file
diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/MyEndpoints/AccountsEndpointDefinition.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/MyEndpoints/AccountsEndpointDefinition.verified.cs
new file mode 100644
index 000000000..13bc966e2
--- /dev/null
+++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Structure1/VerifyServerAll/MinimalApi_WPD/src/Structure1.Api.Generated/MyEndpoints/AccountsEndpointDefinition.verified.cs
@@ -0,0 +1,60 @@
+//------------------------------------------------------------------------------
+// This code was auto-generated by ApiGenerator x.x.x.x.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+namespace Structure1.Api.Generated.MyEndpoints;
+
+///
+/// Endpoint definitions.
+///
+[GeneratedCode("ApiGenerator", "x.x.x.x")]
+public sealed class AccountsEndpointDefinition : IEndpointDefinition
+{
+ internal const string ApiRouteBase = "/api/v1/accounts";
+
+ public void DefineEndpoints(
+ WebApplication app)
+ {
+ var accounts = app
+ .NewVersionedApi("Accounts")
+ .MapGroup(ApiRouteBase);
+
+ accounts
+ .MapPut("{accountId}/name", UpdateAccountName)
+ .WithName("UpdateAccountName")
+ .WithSummary("Update name of account.")
+ .WithDescription("Update name of account.")
+ .AddEndpointFilter>()
+ .Produces()
+ .ProducesValidationProblem();
+
+ accounts
+ .MapPost("{accountId}/name", SetAccountName)
+ .WithName("SetAccountName")
+ .WithSummary("Set name of account.")
+ .WithDescription("Set name of account.")
+ .AddEndpointFilter