Skip to content

Commit 6af09a7

Browse files
Merge pull request #213 from atc-net/feature/Scenarios-Structure1-for-MinimalApi
test: add scenario Structure1 test for MinimalApi
2 parents 1c7a781 + 2aa70ed commit 6af09a7

File tree

369 files changed

+11126
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

369 files changed

+11126
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
//------------------------------------------------------------------------------
2+
// This code was auto-generated by ApiGenerator x.x.x.x.
3+
//
4+
// Changes to this file may cause incorrect behavior and will be lost if
5+
// the code is regenerated.
6+
//------------------------------------------------------------------------------
7+
namespace Structure1.Api.Generated.Accounts.MyContracts;
8+
9+
/// <summary>
10+
/// Domain Interface for RequestHandler.
11+
/// Description: Set name of account.
12+
/// Operation: SetAccountName.
13+
/// </summary>
14+
[GeneratedCode("ApiGenerator", "x.x.x.x")]
15+
public interface ISetAccountNameHandler
16+
{
17+
/// <summary>
18+
/// Execute method.
19+
/// </summary>
20+
/// <param name="parameters">The parameters.</param>
21+
/// <param name="cancellationToken">The cancellation token.</param>
22+
Task<SetAccountNameResult> ExecuteAsync(
23+
SetAccountNameParameters parameters,
24+
CancellationToken cancellationToken = default);
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
//------------------------------------------------------------------------------
2+
// This code was auto-generated by ApiGenerator x.x.x.x.
3+
//
4+
// Changes to this file may cause incorrect behavior and will be lost if
5+
// the code is regenerated.
6+
//------------------------------------------------------------------------------
7+
namespace Structure1.Api.Generated.Accounts.MyContracts;
8+
9+
/// <summary>
10+
/// Domain Interface for RequestHandler.
11+
/// Description: Update name of account.
12+
/// Operation: UpdateAccountName.
13+
/// </summary>
14+
[GeneratedCode("ApiGenerator", "x.x.x.x")]
15+
public interface IUpdateAccountNameHandler
16+
{
17+
/// <summary>
18+
/// Execute method.
19+
/// </summary>
20+
/// <param name="parameters">The parameters.</param>
21+
/// <param name="cancellationToken">The cancellation token.</param>
22+
Task<UpdateAccountNameResult> ExecuteAsync(
23+
UpdateAccountNameParameters parameters,
24+
CancellationToken cancellationToken = default);
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//------------------------------------------------------------------------------
2+
// This code was auto-generated by ApiGenerator x.x.x.x.
3+
//
4+
// Changes to this file may cause incorrect behavior and will be lost if
5+
// the code is regenerated.
6+
//------------------------------------------------------------------------------
7+
namespace Structure1.Api.Generated.Accounts.MyContracts;
8+
9+
/// <summary>
10+
/// UpdateAccountRequest.
11+
/// </summary>
12+
[GeneratedCode("ApiGenerator", "x.x.x.x")]
13+
public record UpdateAccountRequest(
14+
string Name);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//------------------------------------------------------------------------------
2+
// This code was auto-generated by ApiGenerator x.x.x.x.
3+
//
4+
// Changes to this file may cause incorrect behavior and will be lost if
5+
// the code is regenerated.
6+
//------------------------------------------------------------------------------
7+
namespace Structure1.Api.Generated.Accounts.MyContracts;
8+
9+
/// <summary>
10+
/// Parameters for operation request.
11+
/// Description: Set name of account.
12+
/// Operation: SetAccountName.
13+
/// </summary>
14+
[GeneratedCode("ApiGenerator", "x.x.x.x")]
15+
public record SetAccountNameParameters(
16+
[property: FromRoute, Required] Guid AccountId,
17+
[property: FromBody, Required] UpdateAccountRequest Request);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//------------------------------------------------------------------------------
2+
// This code was auto-generated by ApiGenerator x.x.x.x.
3+
//
4+
// Changes to this file may cause incorrect behavior and will be lost if
5+
// the code is regenerated.
6+
//------------------------------------------------------------------------------
7+
namespace Structure1.Api.Generated.Accounts.MyContracts;
8+
9+
/// <summary>
10+
/// Parameters for operation request.
11+
/// Description: Update name of account.
12+
/// Operation: UpdateAccountName.
13+
/// </summary>
14+
[GeneratedCode("ApiGenerator", "x.x.x.x")]
15+
public record UpdateAccountNameParameters(
16+
[property: FromRoute, Required] Guid AccountId,
17+
[property: FromHeader] string? Name);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
//------------------------------------------------------------------------------
2+
// This code was auto-generated by ApiGenerator x.x.x.x.
3+
//
4+
// Changes to this file may cause incorrect behavior and will be lost if
5+
// the code is regenerated.
6+
//------------------------------------------------------------------------------
7+
namespace Structure1.Api.Generated.Accounts.MyContracts;
8+
9+
/// <summary>
10+
/// Results for operation request.
11+
/// Description: Set name of account.
12+
/// Operation: SetAccountName.
13+
/// </summary>
14+
[GeneratedCode("ApiGenerator", "x.x.x.x")]
15+
public class SetAccountNameResult
16+
{
17+
private SetAccountNameResult(IResult result)
18+
{
19+
Result = result;
20+
}
21+
22+
public IResult Result { get; }
23+
24+
/// <summary>
25+
/// 200 - Ok response.
26+
/// </summary>
27+
public static SetAccountNameResult Ok(string? message = null)
28+
=> new(TypedResults.Ok(message));
29+
30+
/// <summary>
31+
/// Performs an implicit conversion from SetAccountNameResult to IResult.
32+
/// </summary>
33+
public static IResult ToIResult(SetAccountNameResult result)
34+
=> result.Result;
35+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
//------------------------------------------------------------------------------
2+
// This code was auto-generated by ApiGenerator x.x.x.x.
3+
//
4+
// Changes to this file may cause incorrect behavior and will be lost if
5+
// the code is regenerated.
6+
//------------------------------------------------------------------------------
7+
namespace Structure1.Api.Generated.Accounts.MyContracts;
8+
9+
/// <summary>
10+
/// Results for operation request.
11+
/// Description: Update name of account.
12+
/// Operation: UpdateAccountName.
13+
/// </summary>
14+
[GeneratedCode("ApiGenerator", "x.x.x.x")]
15+
public class UpdateAccountNameResult
16+
{
17+
private UpdateAccountNameResult(IResult result)
18+
{
19+
Result = result;
20+
}
21+
22+
public IResult Result { get; }
23+
24+
/// <summary>
25+
/// 200 - Ok response.
26+
/// </summary>
27+
public static UpdateAccountNameResult Ok(string? message = null)
28+
=> new(TypedResults.Ok(message));
29+
30+
/// <summary>
31+
/// Performs an implicit conversion from UpdateAccountNameResult to IResult.
32+
/// </summary>
33+
public static IResult ToIResult(UpdateAccountNameResult result)
34+
=> result.Result;
35+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
//------------------------------------------------------------------------------
2+
// This code was auto-generated by ApiGenerator x.x.x.x.
3+
//
4+
// Changes to this file may cause incorrect behavior and will be lost if
5+
// the code is regenerated.
6+
//------------------------------------------------------------------------------
7+
namespace Structure1.Api.Generated.Addresses.MyContracts;
8+
9+
/// <summary>
10+
/// Domain Interface for RequestHandler.
11+
/// Description: Get addresses by postal code.
12+
/// Operation: GetAddressesByPostalCodes.
13+
/// </summary>
14+
[GeneratedCode("ApiGenerator", "x.x.x.x")]
15+
public interface IGetAddressesByPostalCodesHandler
16+
{
17+
/// <summary>
18+
/// Execute method.
19+
/// </summary>
20+
/// <param name="parameters">The parameters.</param>
21+
/// <param name="cancellationToken">The cancellation token.</param>
22+
Task<GetAddressesByPostalCodesResult> ExecuteAsync(
23+
GetAddressesByPostalCodesParameters parameters,
24+
CancellationToken cancellationToken = default);
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//------------------------------------------------------------------------------
2+
// This code was auto-generated by ApiGenerator x.x.x.x.
3+
//
4+
// Changes to this file may cause incorrect behavior and will be lost if
5+
// the code is regenerated.
6+
//------------------------------------------------------------------------------
7+
namespace Structure1.Api.Generated.Addresses.MyContracts;
8+
9+
/// <summary>
10+
/// Parameters for operation request.
11+
/// Description: Get addresses by postal code.
12+
/// Operation: GetAddressesByPostalCodes.
13+
/// </summary>
14+
[GeneratedCode("ApiGenerator", "x.x.x.x")]
15+
public record GetAddressesByPostalCodesParameters(
16+
[property: FromRoute, Required] string PostalCode);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
//------------------------------------------------------------------------------
2+
// This code was auto-generated by ApiGenerator x.x.x.x.
3+
//
4+
// Changes to this file may cause incorrect behavior and will be lost if
5+
// the code is regenerated.
6+
//------------------------------------------------------------------------------
7+
namespace Structure1.Api.Generated.Addresses.MyContracts;
8+
9+
/// <summary>
10+
/// Results for operation request.
11+
/// Description: Get addresses by postal code.
12+
/// Operation: GetAddressesByPostalCodes.
13+
/// </summary>
14+
[GeneratedCode("ApiGenerator", "x.x.x.x")]
15+
public class GetAddressesByPostalCodesResult
16+
{
17+
private GetAddressesByPostalCodesResult(IResult result)
18+
{
19+
Result = result;
20+
}
21+
22+
public IResult Result { get; }
23+
24+
/// <summary>
25+
/// 200 - Ok response.
26+
/// </summary>
27+
public static GetAddressesByPostalCodesResult Ok(List<Address> result)
28+
=> new(TypedResults.Ok(result));
29+
30+
/// <summary>
31+
/// 404 - NotFound response.
32+
/// </summary>
33+
public static GetAddressesByPostalCodesResult NotFound(string? message = null)
34+
=> new(TypedResults.NotFound(message));
35+
36+
/// <summary>
37+
/// Performs an implicit conversion from GetAddressesByPostalCodesResult to IResult.
38+
/// </summary>
39+
public static IResult ToIResult(GetAddressesByPostalCodesResult result)
40+
=> result.Result;
41+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
//------------------------------------------------------------------------------
2+
// This code was auto-generated by ApiGenerator x.x.x.x.
3+
//
4+
// Changes to this file may cause incorrect behavior and will be lost if
5+
// the code is regenerated.
6+
//------------------------------------------------------------------------------
7+
namespace Structure1.Api.Generated.EventArgs.MyContracts;
8+
9+
/// <summary>
10+
/// Domain Interface for RequestHandler.
11+
/// Description: Get EventArgs By Id.
12+
/// Operation: GetEventArgById.
13+
/// </summary>
14+
[GeneratedCode("ApiGenerator", "x.x.x.x")]
15+
public interface IGetEventArgByIdHandler
16+
{
17+
/// <summary>
18+
/// Execute method.
19+
/// </summary>
20+
/// <param name="parameters">The parameters.</param>
21+
/// <param name="cancellationToken">The cancellation token.</param>
22+
Task<GetEventArgByIdResult> ExecuteAsync(
23+
GetEventArgByIdParameters parameters,
24+
CancellationToken cancellationToken = default);
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
//------------------------------------------------------------------------------
2+
// This code was auto-generated by ApiGenerator x.x.x.x.
3+
//
4+
// Changes to this file may cause incorrect behavior and will be lost if
5+
// the code is regenerated.
6+
//------------------------------------------------------------------------------
7+
namespace Structure1.Api.Generated.EventArgs.MyContracts;
8+
9+
/// <summary>
10+
/// Domain Interface for RequestHandler.
11+
/// Description: Get EventArgs List.
12+
/// Operation: GetEventArgs.
13+
/// </summary>
14+
[GeneratedCode("ApiGenerator", "x.x.x.x")]
15+
public interface IGetEventArgsHandler
16+
{
17+
/// <summary>
18+
/// Execute method.
19+
/// </summary>
20+
/// <param name="cancellationToken">The cancellation token.</param>
21+
Task<GetEventArgsResult> ExecuteAsync(
22+
CancellationToken cancellationToken = default);
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//------------------------------------------------------------------------------
2+
// This code was auto-generated by ApiGenerator x.x.x.x.
3+
//
4+
// Changes to this file may cause incorrect behavior and will be lost if
5+
// the code is regenerated.
6+
//------------------------------------------------------------------------------
7+
namespace Structure1.Api.Generated.EventArgs.MyContracts;
8+
9+
/// <summary>
10+
/// EventArgs.
11+
/// </summary>
12+
[GeneratedCode("ApiGenerator", "x.x.x.x")]
13+
public record EventArgs(
14+
Guid Id,
15+
string EventName);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//------------------------------------------------------------------------------
2+
// This code was auto-generated by ApiGenerator x.x.x.x.
3+
//
4+
// Changes to this file may cause incorrect behavior and will be lost if
5+
// the code is regenerated.
6+
//------------------------------------------------------------------------------
7+
namespace Structure1.Api.Generated.EventArgs.MyContracts;
8+
9+
/// <summary>
10+
/// Parameters for operation request.
11+
/// Description: Get EventArgs By Id.
12+
/// Operation: GetEventArgById.
13+
/// </summary>
14+
[GeneratedCode("ApiGenerator", "x.x.x.x")]
15+
public record GetEventArgByIdParameters(
16+
[property: FromRoute, Required] string Id);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
//------------------------------------------------------------------------------
2+
// This code was auto-generated by ApiGenerator x.x.x.x.
3+
//
4+
// Changes to this file may cause incorrect behavior and will be lost if
5+
// the code is regenerated.
6+
//------------------------------------------------------------------------------
7+
namespace Structure1.Api.Generated.EventArgs.MyContracts;
8+
9+
/// <summary>
10+
/// Results for operation request.
11+
/// Description: Get EventArgs By Id.
12+
/// Operation: GetEventArgById.
13+
/// </summary>
14+
[GeneratedCode("ApiGenerator", "x.x.x.x")]
15+
public class GetEventArgByIdResult
16+
{
17+
private GetEventArgByIdResult(IResult result)
18+
{
19+
Result = result;
20+
}
21+
22+
public IResult Result { get; }
23+
24+
/// <summary>
25+
/// 200 - Ok response.
26+
/// </summary>
27+
public static GetEventArgByIdResult Ok(EventArgs result)
28+
=> new(TypedResults.Ok(result));
29+
30+
/// <summary>
31+
/// 404 - NotFound response.
32+
/// </summary>
33+
public static GetEventArgByIdResult NotFound(string? message = null)
34+
=> new(TypedResults.NotFound(message));
35+
36+
/// <summary>
37+
/// Performs an implicit conversion from GetEventArgByIdResult to IResult.
38+
/// </summary>
39+
public static IResult ToIResult(GetEventArgByIdResult result)
40+
=> result.Result;
41+
}

0 commit comments

Comments
 (0)