Skip to content

Commit e98addb

Browse files
committed
Tests and examples updated
1 parent c163b55 commit e98addb

File tree

47 files changed

+143
-74
lines changed

Some content is hidden

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

47 files changed

+143
-74
lines changed

Examples/Angular/ModelFromAssembly/ModelFromAssembly.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
</PropertyGroup>
77

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

1313
</Project>

Examples/Angular/ModelFromAssembly/Output/another-type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 6.7.2.0
3+
// This code was generated with KY.Generator 6.7.3.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/ModelFromAssembly/Output/type-to-read.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 6.7.2.0
3+
// This code was generated with KY.Generator 6.7.3.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.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// ------------------------------------------------------------------------------
2+
// <auto-generated>
3+
// This code was generated with KY.Generator 6.7.3.0
4+
//
5+
// Manual changes to this file may cause unexpected behavior in your application.
6+
// Manual changes to this file will be overwritten if the code is regenerated.
7+
// </auto-generated>
8+
// ------------------------------------------------------------------------------
9+
/* eslint-disable */
10+
// tslint:disable
11+
12+
export class WeatherForecast {
13+
public date: Date;
14+
public temperatureC: number;
15+
public temperatureF: number;
16+
public summary: string;
17+
18+
public constructor(init: Partial<WeatherForecast> = undefined) {
19+
Object.assign(this, init);
20+
}
21+
}
22+
23+
// outputid:c2cd74cf-53e6-4c11-86de-4f23690f7cf8
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
// ------------------------------------------------------------------------------
2+
// <auto-generated>
3+
// This code was generated with KY.Generator 6.7.3.0
4+
//
5+
// Manual changes to this file may cause unexpected behavior in your application.
6+
// Manual changes to this file will be overwritten if the code is regenerated.
7+
// </auto-generated>
8+
// ------------------------------------------------------------------------------
9+
/* eslint-disable */
10+
// tslint:disable
11+
12+
import { WeatherForecast } from "../models/weather-forecast";
13+
import { HttpClient } from "@angular/common/http";
14+
import { Injectable } from "@angular/core";
15+
import { Observable } from "rxjs";
16+
import { Subject } from "rxjs";
17+
18+
@Injectable({
19+
providedIn: "root"
20+
})
21+
export class WeatherForecastService {
22+
private readonly http: HttpClient;
23+
public serviceUrl: string = "";
24+
25+
public constructor(http: HttpClient) {
26+
this.http = http;
27+
}
28+
29+
public get(httpOptions: {} = undefined): Observable<WeatherForecast[]> {
30+
let subject = new Subject<WeatherForecast[]>();
31+
this.http.get<WeatherForecast[]>(this.serviceUrl + "/weatherforecast", httpOptions).subscribe((result) => {
32+
if (result) {
33+
result.forEach((entry) => entry.date = this.convertToDate(entry.date));
34+
}
35+
subject.next(result);
36+
subject.complete();
37+
}, (error) => subject.error(error));
38+
return subject;
39+
}
40+
41+
public convertToDate(value: string | Date): Date {
42+
return typeof(value) === "string" ? new Date(value) : value;
43+
}
44+
}
45+
46+
// outputid:c2cd74cf-53e6-4c11-86de-4f23690f7cf8

Examples/Angular/ServiceFromAspNetCoreAnnotation/ServiceFromAspNetCoreAnnotation.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
</PropertyGroup>
1515

1616
<ItemGroup>
17-
<PackageReference Include="KY.Generator" Version="6.7.2" />
18-
<PackageReference Include="KY.Generator.Annotations" Version="6.7.2" />
17+
<PackageReference Include="KY.Generator" Version="6.7.3" />
18+
<PackageReference Include="KY.Generator.Annotations" Version="6.7.3" />
1919
<PackageReference Include="Microsoft.AspNetCore.SpaServices.Extensions" Version="3.1.7" />
2020
</ItemGroup>
2121

Examples/Angular/ServiceFromAspNetCoreSignalRHub/ClientApp/src/app/models/connection-status.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 6.7.2.0
3+
// This code was generated with KY.Generator 6.7.3.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/ServiceFromAspNetCoreSignalRHub/ClientApp/src/app/models/weather-forecast.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 6.7.2.0
3+
// This code was generated with KY.Generator 6.7.3.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/ServiceFromAspNetCoreSignalRHub/ClientApp/src/app/services/weather-hub.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 6.7.2.0
3+
// This code was generated with KY.Generator 6.7.3.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/ServiceFromAspNetCoreSignalRHub/ServiceFromAspNetCoreSignalRHub.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
</PropertyGroup>
1515

1616
<ItemGroup>
17-
<PackageReference Include="KY.Generator" Version="6.7.2" />
18-
<PackageReference Include="KY.Generator.Annotations" Version="6.7.2" />
17+
<PackageReference Include="KY.Generator" Version="6.7.3" />
18+
<PackageReference Include="KY.Generator.Annotations" Version="6.7.3" />
1919
<PackageReference Include="Microsoft.AspNetCore.SignalR" Version="1.1.0" />
2020
<PackageReference Include="Microsoft.AspNetCore.SpaServices.Extensions" Version="3.1.7" />
2121
</ItemGroup>

Examples/Angular/ServiceFromAspNetCoreViaFluentApi/Generator/Generator.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="KY.Generator" Version="6.7.2" />
9-
<PackageReference Include="KY.Generator.Angular" Version="6.7.2" />
10-
<PackageReference Include="KY.Generator.AspDotNet" Version="6.7.2" />
11-
<PackageReference Include="KY.Generator.Fluent" Version="6.7.2" />
12-
<PackageReference Include="KY.Generator.Reflection" Version="6.7.2" />
8+
<PackageReference Include="KY.Generator" Version="6.7.3" />
9+
<PackageReference Include="KY.Generator.Angular" Version="6.7.3" />
10+
<PackageReference Include="KY.Generator.AspDotNet" Version="6.7.3" />
11+
<PackageReference Include="KY.Generator.Fluent" Version="6.7.3" />
12+
<PackageReference Include="KY.Generator.Reflection" Version="6.7.3" />
1313
</ItemGroup>
1414

1515
<ItemGroup>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 6.7.2.0
3+
// This code was generated with KY.Generator 6.7.3.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/ServiceFromAspNetCoreViaFluentApi/Service/ClientApp/src/app/services/weather-forecast.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 6.7.2.0
3+
// This code was generated with KY.Generator 6.7.3.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/ServiceFromSignalRViaFluentApi/Generator/Generator.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="KY.Generator" Version="6.7.2" />
9-
<PackageReference Include="KY.Generator.Angular" Version="6.7.2" />
8+
<PackageReference Include="KY.Generator" Version="6.7.3" />
9+
<PackageReference Include="KY.Generator.Angular" Version="6.7.3" />
1010
<PackageReference Include="KY.Generator.AspDotNet" Version="6.7.1" />
11-
<PackageReference Include="KY.Generator.Fluent" Version="6.7.2" />
12-
<PackageReference Include="KY.Generator.Reflection" Version="6.7.2" />
11+
<PackageReference Include="KY.Generator.Fluent" Version="6.7.3" />
12+
<PackageReference Include="KY.Generator.Reflection" Version="6.7.3" />
1313
</ItemGroup>
1414

1515
<ItemGroup>

Examples/Angular/ServiceFromSignalRViaFluentApi/Service/ClientApp/src/app/models/connection-status.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 6.7.2.0
3+
// This code was generated with KY.Generator 6.7.3.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/ServiceFromSignalRViaFluentApi/Service/ClientApp/src/app/models/weather-forecast.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 6.7.2.0
3+
// This code was generated with KY.Generator 6.7.3.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/ServiceFromSignalRViaFluentApi/Service/ClientApp/src/app/services/weather-forecast-hub.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 6.7.2.0
3+
// This code was generated with KY.Generator 6.7.3.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/Output/type-to-read.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 6.7.2.0
3+
// This code was generated with KY.Generator 6.7.3.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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
</PropertyGroup>
77

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

1313
</Project>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 6.7.2.0
3+
// This code was generated with KY.Generator 6.7.3.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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
</PropertyGroup>
77

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

1313
</Project>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 6.7.2.0
3+
// This code was generated with KY.Generator 6.7.3.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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
</PropertyGroup>
88

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

1414
</Project>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 6.7.2.0
3+
// This code was generated with KY.Generator 6.7.3.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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 6.7.2.0
3+
// This code was generated with KY.Generator 6.7.3.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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
</PropertyGroup>
77

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

1313
<ItemGroup>

Examples/Reflection/ReflectionFromMultipleAssemblies/MainAssembly/MainAssembly.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
</PropertyGroup>
77

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

1313
<ItemGroup>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 6.7.2.0
3+
// This code was generated with KY.Generator 6.7.3.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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 6.7.2.0
3+
// This code was generated with KY.Generator 6.7.3.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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 6.7.2.0
3+
// This code was generated with KY.Generator 6.7.3.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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
</PropertyGroup>
77

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

1313
</Project>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 6.7.2.0
3+
// This code was generated with KY.Generator 6.7.3.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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
</PropertyGroup>
77

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

1313
</Project>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 6.7.2.0
3+
// This code was generated with KY.Generator 6.7.3.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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
</PropertyGroup>
77

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

1313
</Project>

Examples/Reflection/ReflectionX86/ReflectionX86.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
</PropertyGroup>
88

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

1414
</Project>

0 commit comments

Comments
 (0)