Skip to content

Commit 31395c5

Browse files
davidkallesenperkops
authored andcommitted
test: update verified files
1 parent f1df7d3 commit 31395c5

File tree

96 files changed

+323
-231
lines changed

Some content is hidden

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

96 files changed

+323
-231
lines changed

test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Api.Generated/Contracts/Files/Results/GetFileByIdResult.verified.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//------------------------------------------------------------------------------
1+
//------------------------------------------------------------------------------
22
// This code was auto-generated by ApiGenerator x.x.x.x.
33
//
44
// Changes to this file may cause incorrect behavior and will be lost if
@@ -19,12 +19,12 @@ private GetFileByIdResult(ActionResult result) : base(result) { }
1919
/// <summary>
2020
/// 200 - Ok response.
2121
/// </summary>
22-
public static GetFileByIdResult Ok(byte[] bytes, string fileName)
23-
=> new GetFileByIdResult(ResultFactory.CreateFileContentResult(bytes, fileName));
22+
public static GetFileByIdResult Ok(byte[] bytes, string contentType, string fileName)
23+
=> new GetFileByIdResult(ResultFactory.CreateFileContentResult(bytes, fileName, contentType));
2424

2525
/// <summary>
2626
/// 404 - NotFound response.
2727
/// </summary>
2828
public static GetFileByIdResult NotFound(string? message = null)
2929
=> new GetFileByIdResult(new NotFoundObjectResult(message));
30-
}
30+
}

test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/test/DemoSample.Api.Tests/Endpoints/EventArgs/GetEventArgByIdHandlerStub.verified.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//------------------------------------------------------------------------------
1+
//------------------------------------------------------------------------------
22
// This code was auto-generated by ApiGenerator x.x.x.x.
33
//
44
// Changes to this file may cause incorrect behavior and will be lost if
@@ -13,8 +13,8 @@ public Task<GetEventArgByIdResult> ExecuteAsync(
1313
GetEventArgByIdParameters parameters,
1414
CancellationToken cancellationToken = default)
1515
{
16-
var data = new Fixture().Create<DemoSample.Api.Generated.Contracts.EventArgs.EventArgs>();
16+
var data = new Fixture().Create<Generated.Contracts.EventArgs.EventArgs>();
1717

1818
return Task.FromResult(GetEventArgByIdResult.Ok(data));
1919
}
20-
}
20+
}

test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/test/DemoSample.Api.Tests/Endpoints/EventArgs/GetEventArgsHandlerStub.verified.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//------------------------------------------------------------------------------
1+
//------------------------------------------------------------------------------
22
// This code was auto-generated by ApiGenerator x.x.x.x.
33
//
44
// Changes to this file may cause incorrect behavior and will be lost if
@@ -12,8 +12,8 @@ public class GetEventArgsHandlerStub : IGetEventArgsHandler
1212
public Task<GetEventArgsResult> ExecuteAsync(
1313
CancellationToken cancellationToken = default)
1414
{
15-
var data = new Fixture().Create<List<DemoSample.Api.Generated.Contracts.EventArgs.EventArgs>>();
15+
var data = new Fixture().Create<List<Generated.Contracts.EventArgs.EventArgs>>();
1616

1717
return Task.FromResult(GetEventArgsResult.Ok(data));
1818
}
19-
}
19+
}

test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/test/DemoSample.Api.Tests/Endpoints/Files/GetFileByIdHandlerStub.verified.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//------------------------------------------------------------------------------
1+
//------------------------------------------------------------------------------
22
// This code was auto-generated by ApiGenerator x.x.x.x.
33
//
44
// Changes to this file may cause incorrect behavior and will be lost if
@@ -14,6 +14,6 @@ public Task<GetFileByIdResult> ExecuteAsync(
1414
CancellationToken cancellationToken = default)
1515
{
1616
var bytes = Encoding.UTF8.GetBytes("Hello World");
17-
return Task.FromResult(GetFileByIdResult.Ok(bytes, "dummy.txt"));
17+
return Task.FromResult(GetFileByIdResult.Ok(bytes, "text/plain", "dummy.txt"));
1818
}
19-
}
19+
}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//------------------------------------------------------------------------------
1+
//------------------------------------------------------------------------------
22
// This code was auto-generated by ApiGenerator x.x.x.x.
33
//
44
// Changes to this file may cause incorrect behavior and will be lost if
@@ -7,13 +7,13 @@
77
namespace DemoSample.Api.Tests.Endpoints.Tasks;
88

99
[GeneratedCode("ApiGenerator", "x.x.x.x")]
10-
public class GetTasksHandlerStub : DemoSample.Api.Generated.Contracts.Tasks.IGetTasksHandler
10+
public class GetTasksHandlerStub : Generated.Contracts.Tasks.IGetTasksHandler
1111
{
12-
public Task<DemoSample.Api.Generated.Contracts.Tasks.GetTasksResult> ExecuteAsync(
12+
public Task<Generated.Contracts.Tasks.GetTasksResult> ExecuteAsync(
1313
CancellationToken cancellationToken = default)
1414
{
15-
var data = new Fixture().Create<List<DemoSample.Api.Generated.Contracts.Tasks.Task>>();
15+
var data = new Fixture().Create<List<Generated.Contracts.Tasks.Task>>();
1616

17-
return Task.FromResult(DemoSample.Api.Generated.Contracts.Tasks.GetTasksResult.Ok(data));
17+
return Task.FromResult(Generated.Contracts.Tasks.GetTasksResult.Ok(data));
1818
}
19-
}
19+
}

test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Api.Generated/Contracts/Files/Results/GetFileByIdResult.verified.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ private GetFileByIdResult(ActionResult result) : base(result) { }
1919
/// <summary>
2020
/// 200 - Ok response.
2121
/// </summary>
22-
public static GetFileByIdResult Ok(byte[] bytes, string fileName)
23-
=> new GetFileByIdResult(ResultFactory.CreateFileContentResult(bytes, fileName));
22+
public static GetFileByIdResult Ok(byte[] bytes, string contentType, string fileName)
23+
=> new GetFileByIdResult(ResultFactory.CreateFileContentResult(bytes, fileName, contentType));
2424

2525
/// <summary>
2626
/// 404 - NotFound response.

test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/test/DemoSample.Api.Tests/Endpoints/EventArgs/GetEventArgByIdHandlerStub.verified.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//------------------------------------------------------------------------------
1+
//------------------------------------------------------------------------------
22
// This code was auto-generated by ApiGenerator x.x.x.x.
33
//
44
// Changes to this file may cause incorrect behavior and will be lost if
@@ -13,8 +13,8 @@ public Task<GetEventArgByIdResult> ExecuteAsync(
1313
GetEventArgByIdParameters parameters,
1414
CancellationToken cancellationToken = default)
1515
{
16-
var data = new Fixture().Create<DemoSample.Api.Generated.Contracts.EventArgs.EventArgs>();
16+
var data = new Fixture().Create<Generated.Contracts.EventArgs.EventArgs>();
1717

1818
return Task.FromResult(GetEventArgByIdResult.Ok(data));
1919
}
20-
}
20+
}

test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/test/DemoSample.Api.Tests/Endpoints/EventArgs/GetEventArgsHandlerStub.verified.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//------------------------------------------------------------------------------
1+
//------------------------------------------------------------------------------
22
// This code was auto-generated by ApiGenerator x.x.x.x.
33
//
44
// Changes to this file may cause incorrect behavior and will be lost if
@@ -12,8 +12,8 @@ public class GetEventArgsHandlerStub : IGetEventArgsHandler
1212
public Task<GetEventArgsResult> ExecuteAsync(
1313
CancellationToken cancellationToken = default)
1414
{
15-
var data = new Fixture().Create<List<DemoSample.Api.Generated.Contracts.EventArgs.EventArgs>>();
15+
var data = new Fixture().Create<List<Generated.Contracts.EventArgs.EventArgs>>();
1616

1717
return Task.FromResult(GetEventArgsResult.Ok(data));
1818
}
19-
}
19+
}

test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/test/DemoSample.Api.Tests/Endpoints/Files/GetFileByIdHandlerStub.verified.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//------------------------------------------------------------------------------
1+
//------------------------------------------------------------------------------
22
// This code was auto-generated by ApiGenerator x.x.x.x.
33
//
44
// Changes to this file may cause incorrect behavior and will be lost if
@@ -14,6 +14,6 @@ public Task<GetFileByIdResult> ExecuteAsync(
1414
CancellationToken cancellationToken = default)
1515
{
1616
var bytes = Encoding.UTF8.GetBytes("Hello World");
17-
return Task.FromResult(GetFileByIdResult.Ok(bytes, "dummy.txt"));
17+
return Task.FromResult(GetFileByIdResult.Ok(bytes, "text/plain", "dummy.txt"));
1818
}
19-
}
19+
}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//------------------------------------------------------------------------------
1+
//------------------------------------------------------------------------------
22
// This code was auto-generated by ApiGenerator x.x.x.x.
33
//
44
// Changes to this file may cause incorrect behavior and will be lost if
@@ -7,13 +7,13 @@
77
namespace DemoSample.Api.Tests.Endpoints.Tasks;
88

99
[GeneratedCode("ApiGenerator", "x.x.x.x")]
10-
public class GetTasksHandlerStub : DemoSample.Api.Generated.Contracts.Tasks.IGetTasksHandler
10+
public class GetTasksHandlerStub : Generated.Contracts.Tasks.IGetTasksHandler
1111
{
12-
public Task<DemoSample.Api.Generated.Contracts.Tasks.GetTasksResult> ExecuteAsync(
12+
public Task<Generated.Contracts.Tasks.GetTasksResult> ExecuteAsync(
1313
CancellationToken cancellationToken = default)
1414
{
15-
var data = new Fixture().Create<List<DemoSample.Api.Generated.Contracts.Tasks.Task>>();
15+
var data = new Fixture().Create<List<Generated.Contracts.Tasks.Task>>();
1616

17-
return Task.FromResult(DemoSample.Api.Generated.Contracts.Tasks.GetTasksResult.Ok(data));
17+
return Task.FromResult(Generated.Contracts.Tasks.GetTasksResult.Ok(data));
1818
}
19-
}
19+
}

0 commit comments

Comments
 (0)