Skip to content

Commit dce6ce2

Browse files
committed
Tests and examples updated
1 parent 4a20f10 commit dce6ce2

File tree

74 files changed

+334
-103
lines changed

Some content is hidden

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

74 files changed

+334
-103
lines changed

Examples/Angular/Annotation/ChangeReturnType/ChangeReturnType.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
</PropertyGroup>
1313

1414
<ItemGroup>
15-
<PackageReference Include="KY.Generator" Version="8.5.0" />
16-
<PackageReference Include="KY.Generator.Annotations" Version="8.5.0" />
15+
<PackageReference Include="KY.Generator" Version="8.6.0" />
16+
<PackageReference Include="KY.Generator.Annotations" Version="8.6.0" />
1717
<PackageReference Include="Microsoft.AspNetCore.SpaProxy" Version="6.0.5" />
1818
</ItemGroup>
1919

Examples/Angular/Annotation/ChangeReturnType/ClientApp/src/app/models/weather-forecast.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 8.5.0.0
3+
// This code was generated with KY.Generator 8.6.0.0
44
//
55
// Manual changes to this file may cause unexpected behavior in your application.
66
// Manual changes to this file will be overwritten if the code is regenerated.

Examples/Angular/Annotation/ChangeReturnType/ClientApp/src/app/services/weather-forecast-api.service.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 8.5.0.0
3+
// This code was generated with KY.Generator 8.6.0.0
44
//
55
// Manual changes to this file may cause unexpected behavior in your application.
66
// Manual changes to this file will be overwritten if the code is regenerated.
@@ -22,6 +22,7 @@ import { Subject } from "rxjs";
2222
export class WeatherForecastApiService {
2323
private readonly http: HttpClient;
2424
private serviceUrlValue: string = "";
25+
public httpOptions: {} = {};
2526

2627
public get serviceUrl(): string {
2728
return this.serviceUrlValue;
@@ -36,6 +37,7 @@ export class WeatherForecastApiService {
3637

3738
public get(httpOptions?: {}): Observable<CustomWeatherForecast[]> {
3839
let subject = new Subject<CustomWeatherForecast[]>();
40+
httpOptions = { ...this.httpOptions, ...httpOptions};
3941
let url: string = this.serviceUrl + "/weatherforecast";
4042
this.http.get<CustomWeatherForecast[]>(url, httpOptions).subscribe((result) => {
4143
subject.next(result);
@@ -46,6 +48,7 @@ export class WeatherForecastApiService {
4648

4749
public specialGet(httpOptions?: {}): Observable<SpecialWeatherForecast[]> {
4850
let subject = new Subject<SpecialWeatherForecast[]>();
51+
httpOptions = { ...this.httpOptions, ...httpOptions};
4952
let url: string = this.serviceUrl + "/weatherforecast";
5053
this.http.get<SpecialWeatherForecast[]>(url, httpOptions).subscribe((result) => {
5154
subject.next(result);

Examples/Angular/Fluent/ServiceFromAspNetCore/Service/ClientApp/src/app/models/weather-forecast.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 8.4.0.0
3+
// This code was generated with KY.Generator 8.5.0.0
44
//
55
// Manual changes to this file may cause unexpected behavior in your application.
66
// Manual changes to this file will be overwritten if the code is regenerated.

Examples/Angular/Fluent/ServiceFromAspNetCore/Service/ClientApp/src/app/services/weather-forecast.service.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 8.4.0.0
3+
// This code was generated with KY.Generator 8.5.0.0
44
//
55
// Manual changes to this file may cause unexpected behavior in your application.
66
// Manual changes to this file will be overwritten if the code is regenerated.
@@ -21,6 +21,7 @@ import { Subject } from "rxjs";
2121
export class WeatherForecastService {
2222
private readonly http: HttpClient;
2323
private serviceUrlValue: string = "";
24+
public httpOptions: {} = {};
2425

2526
public get serviceUrl(): string {
2627
return this.serviceUrlValue;
@@ -35,6 +36,7 @@ export class WeatherForecastService {
3536

3637
public get(httpOptions?: {}): Observable<WeatherForecast[]> {
3738
let subject = new Subject<WeatherForecast[]>();
39+
httpOptions = { ...this.httpOptions, ...httpOptions};
3840
let url: string = this.serviceUrl + "/weatherforecast";
3941
this.http.get<WeatherForecast[]>(url, httpOptions).subscribe((result) => {
4042
if (result) {

Examples/Json/JsonWithReader/JsonWithReader.csproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="KY.Generator.Angular" Version="8.5.0" />
11-
<PackageReference Include="KY.Generator.Fluent" Version="8.5.0" />
12-
<PackageReference Include="KY.Generator.Json" Version="8.5.0" />
10+
<PackageReference Include="KY.Generator.Angular" Version="8.6.0" />
11+
<PackageReference Include="KY.Generator.Fluent" Version="8.6.0" />
12+
<PackageReference Include="KY.Generator.Json" Version="8.6.0" />
1313
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
1414
</ItemGroup>
1515

Examples/Reflection/ReflectionFromAttributes/Output/type-to-read.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 8.5.0.0
3+
// This code was generated with KY.Generator 8.6.0.0
44
//
55
// Manual changes to this file may cause unexpected behavior in your application.
66
// Manual changes to this file will be overwritten if the code is regenerated.

Examples/Reflection/ReflectionFromAttributes/ReflectionFromAttributes.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="KY.Generator" Version="8.5.0" />
10-
<PackageReference Include="KY.Generator.Annotations" Version="8.5.0" />
9+
<PackageReference Include="KY.Generator" Version="8.6.0" />
10+
<PackageReference Include="KY.Generator.Annotations" Version="8.6.0" />
1111
</ItemGroup>
1212

1313
</Project>

Examples/Reflection/ReflectionFromConstant/Output/class-1.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 8.5.0.0
3+
// This code was generated with KY.Generator 8.6.0.0
44
//
55
// Manual changes to this file may cause unexpected behavior in your application.
66
// Manual changes to this file will be overwritten if the code is regenerated.

Examples/Reflection/ReflectionFromConstant/ReflectionFromConstant.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="KY.Generator" Version="8.5.0" />
10-
<PackageReference Include="KY.Generator.Annotations" Version="8.5.0" />
9+
<PackageReference Include="KY.Generator" Version="8.6.0" />
10+
<PackageReference Include="KY.Generator.Annotations" Version="8.6.0" />
1111
</ItemGroup>
1212

1313
</Project>

Examples/Reflection/ReflectionFromCore/Output/type-to-read.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 8.5.0.0
3+
// This code was generated with KY.Generator 8.6.0.0
44
//
55
// Manual changes to this file may cause unexpected behavior in your application.
66
// Manual changes to this file will be overwritten if the code is regenerated.

Examples/Reflection/ReflectionFromCore/ReflectionFromCore.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="KY.Generator" Version="8.5.0" />
11-
<PackageReference Include="KY.Generator.Annotations" Version="8.5.0" />
10+
<PackageReference Include="KY.Generator" Version="8.6.0" />
11+
<PackageReference Include="KY.Generator.Annotations" Version="8.6.0" />
1212
</ItemGroup>
1313

1414
</Project>

Examples/Reflection/ReflectionFromIndex/Output/another-type.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 8.5.0.0
3+
// This code was generated with KY.Generator 8.6.0.0
44
//
55
// Manual changes to this file may cause unexpected behavior in your application.
66
// Manual changes to this file will be overwritten if the code is regenerated.

Examples/Reflection/ReflectionFromIndex/Output/type-to-read.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 8.5.0.0
3+
// This code was generated with KY.Generator 8.6.0.0
44
//
55
// Manual changes to this file may cause unexpected behavior in your application.
66
// Manual changes to this file will be overwritten if the code is regenerated.

Examples/Reflection/ReflectionFromIndex/ReflectionFromIndex.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="KY.Generator" Version="8.5.0" />
10-
<PackageReference Include="KY.Generator.Annotations" Version="8.5.0" />
9+
<PackageReference Include="KY.Generator" Version="8.6.0" />
10+
<PackageReference Include="KY.Generator.Annotations" Version="8.6.0" />
1111
</ItemGroup>
1212

1313
<ItemGroup>

Examples/Reflection/ReflectionFromMultipleAssemblies/MainAssembly/MainAssembly.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="KY.Generator" Version="8.5.0" />
10-
<PackageReference Include="KY.Generator.Annotations" Version="8.5.0" />
9+
<PackageReference Include="KY.Generator" Version="8.6.0" />
10+
<PackageReference Include="KY.Generator.Annotations" Version="8.6.0" />
1111
</ItemGroup>
1212

1313
<ItemGroup>

Examples/Reflection/ReflectionFromMultipleAssemblies/MainAssembly/Output/second-type.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 8.5.0.0
3+
// This code was generated with KY.Generator 8.6.0.0
44
//
55
// Manual changes to this file may cause unexpected behavior in your application.
66
// Manual changes to this file will be overwritten if the code is regenerated.

Examples/Reflection/ReflectionFromMultipleAssemblies/MainAssembly/Output/type-to-read.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 8.5.0.0
3+
// This code was generated with KY.Generator 8.6.0.0
44
//
55
// Manual changes to this file may cause unexpected behavior in your application.
66
// Manual changes to this file will be overwritten if the code is regenerated.

Examples/Reflection/ReflectionFromNet5/Output/type-to-read.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 8.5.0.0
3+
// This code was generated with KY.Generator 8.6.0.0
44
//
55
// Manual changes to this file may cause unexpected behavior in your application.
66
// Manual changes to this file will be overwritten if the code is regenerated.

Examples/Reflection/ReflectionFromNet5/ReflectionFromNet5.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="KY.Generator" Version="8.5.0" />
10-
<PackageReference Include="KY.Generator.Annotations" Version="8.5.0" />
9+
<PackageReference Include="KY.Generator" Version="8.6.0" />
10+
<PackageReference Include="KY.Generator.Annotations" Version="8.6.0" />
1111
</ItemGroup>
1212

1313
</Project>

Examples/Reflection/ReflectionFromStandard/Output/type-to-read.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 8.5.0.0
3+
// This code was generated with KY.Generator 8.6.0.0
44
//
55
// Manual changes to this file may cause unexpected behavior in your application.
66
// Manual changes to this file will be overwritten if the code is regenerated.

Examples/Reflection/ReflectionFromStandard/ReflectionFromStandard.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="KY.Generator" Version="8.5.0" />
10-
<PackageReference Include="KY.Generator.Annotations" Version="8.5.0" />
9+
<PackageReference Include="KY.Generator" Version="8.6.0" />
10+
<PackageReference Include="KY.Generator.Annotations" Version="8.6.0" />
1111
</ItemGroup>
1212

1313
</Project>

Examples/Reflection/ReflectionIgnoreAttribute/Output/generate-only-sub-types-sub-type.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 8.5.0.0
3+
// This code was generated with KY.Generator 8.6.0.0
44
//
55
// Manual changes to this file may cause unexpected behavior in your application.
66
// Manual changes to this file will be overwritten if the code is regenerated.

Examples/Reflection/ReflectionIgnoreAttribute/Output/type-to-read.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 8.5.0.0
3+
// This code was generated with KY.Generator 8.6.0.0
44
//
55
// Manual changes to this file may cause unexpected behavior in your application.
66
// Manual changes to this file will be overwritten if the code is regenerated.

Examples/Reflection/ReflectionIgnoreAttribute/ReflectionIgnoreAttribute.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="KY.Generator" Version="8.5.0" />
10-
<PackageReference Include="KY.Generator.Annotations" Version="8.5.0" />
9+
<PackageReference Include="KY.Generator" Version="8.6.0" />
10+
<PackageReference Include="KY.Generator.Annotations" Version="8.6.0" />
1111
</ItemGroup>
1212

1313
</Project>

Examples/Reflection/ReflectionX86/ReflectionX86.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="KY.Generator" Version="8.5.0" />
11-
<PackageReference Include="KY.Generator.Annotations" Version="8.5.0" />
10+
<PackageReference Include="KY.Generator" Version="8.6.0" />
11+
<PackageReference Include="KY.Generator.Annotations" Version="8.6.0" />
1212
</ItemGroup>
1313

1414
</Project>

Examples/Reflection/ReflectionX86/type-to-read.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 8.5.0.0
3+
// This code was generated with KY.Generator 8.6.0.0
44
//
55
// Manual changes to this file may cause unexpected behavior in your application.
66
// Manual changes to this file will be overwritten if the code is regenerated.

Examples/Sqlite/FromDatabase/FromDatabase.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="KY.Generator.Fluent" Version="8.5.0" />
11-
<PackageReference Include="KY.Generator.Sqlite" Version="8.5.0" />
10+
<PackageReference Include="KY.Generator.Fluent" Version="8.6.0" />
11+
<PackageReference Include="KY.Generator.Sqlite" Version="8.6.0" />
1212
<PackageReference Include="Microsoft.Data.Sqlite" Version="5.0.7" />
1313
</ItemGroup>
1414

Examples/Sqlite/FromDatabase/Output/Person.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 8.5.0.0
3+
// This code was generated with KY.Generator 8.6.0.0
44
//
55
// Manual changes to this file may cause unexpected behavior in your application.
66
// Manual changes to this file will be overwritten if the code is regenerated.
@@ -10,7 +10,7 @@
1010

1111
using System.CodeDom.Compiler;
1212

13-
[GeneratedCode("KY.Generator", "8.5.0.0")]
13+
[GeneratedCode("KY.Generator", "8.6.0.0")]
1414
public partial class Person
1515
{
1616
public int Id { get; set; }

Examples/Sqlite/ToDatabase/PersonRepository.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 8.5.0.0
3+
// This code was generated with KY.Generator 8.6.0.0
44
//
55
// Manual changes to this file may cause unexpected behavior in your application.
66
// Manual changes to this file will be overwritten if the code is regenerated.
@@ -15,7 +15,7 @@
1515

1616
namespace ToDatabase
1717
{
18-
[GeneratedCode("KY.Generator", "8.5.0.0")]
18+
[GeneratedCode("KY.Generator", "8.6.0.0")]
1919
public partial class PersonRepository
2020
{
2121
private SqliteConnection connection;

Examples/Sqlite/ToDatabase/ToDatabase.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<ItemGroup>
1010
<PackageReference Include="KY.Core.Common" Version="4.20.1" />
11-
<PackageReference Include="KY.Generator" Version="8.5.0" />
12-
<PackageReference Include="KY.Generator.Annotations" Version="8.5.0" />
11+
<PackageReference Include="KY.Generator" Version="8.6.0" />
12+
<PackageReference Include="KY.Generator.Annotations" Version="8.6.0" />
1313
<PackageReference Include="Microsoft.Data.Sqlite" Version="5.0.7" />
1414
</ItemGroup>
1515

Tests/AnnotationAsync/AnnotationAsync.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="KY.Generator" Version="8.5.0" />
11-
<PackageReference Include="KY.Generator.Annotations" Version="8.5.0" />
10+
<PackageReference Include="KY.Generator" Version="8.6.0" />
11+
<PackageReference Include="KY.Generator.Annotations" Version="8.6.0" />
1212
</ItemGroup>
1313

1414
<ItemGroup>

Tests/AnnotationAsyncAssembly/AnnotationAsyncAssembly.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="KY.Generator" Version="8.5.0" />
10-
<PackageReference Include="KY.Generator.Annotations" Version="8.5.0" />
9+
<PackageReference Include="KY.Generator" Version="8.6.0" />
10+
<PackageReference Include="KY.Generator.Annotations" Version="8.6.0" />
1111
</ItemGroup>
1212

1313
</Project>

Tests/AnnotationInNestedClass/AnnotationInNestedClass.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="KY.Generator" Version="8.5.0" />
10-
<PackageReference Include="KY.Generator.Annotations" Version="8.5.0" />
9+
<PackageReference Include="KY.Generator" Version="8.6.0" />
10+
<PackageReference Include="KY.Generator.Annotations" Version="8.6.0" />
1111
</ItemGroup>
1212

1313
</Project>

Tests/AnnotationsWithMultipleOutputs/AnnotationsWithMultipleOutputs.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="KY.Generator" Version="8.5.0" />
10-
<PackageReference Include="KY.Generator.Annotations" Version="8.5.0" />
9+
<PackageReference Include="KY.Generator" Version="8.6.0" />
10+
<PackageReference Include="KY.Generator.Annotations" Version="8.6.0" />
1111
</ItemGroup>
1212

1313
</Project>

0 commit comments

Comments
 (0)