Skip to content

Commit 3cc54e9

Browse files
author
Jani Giannoudis
committed
updated third party nugets
udapted to .net 9 updated version to 0.9.0-beta.1
1 parent fdf796a commit 3cc54e9

35 files changed

+139
-136
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ jobs:
1212
- name: Checkout
1313
uses: actions/checkout@v2
1414
- name: Setup .NET SDK
15-
uses: actions/setup-dotnet@v1
15+
uses: actions/setup-dotnet@v4
16+
with:
17+
dotnet-version: 9.0.x
1618
- name: Build
1719
run: dotnet build -c Release
1820
- name: Test

Client.Services/PayrollEngine.Client.Services.csproj

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

1616
<ItemGroup>
17-
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
18-
<PackageReference Include="PayrollEngine.Client.Scripting" Version="0.8.0-beta.2" />
19-
<PackageReference Include="PayrollEngine.Client.Test" Version="0.8.0-beta.2" />
17+
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="9.0.2" />
18+
<PackageReference Include="PayrollEngine.Client.Scripting" Version="0.9.0-beta.1" />
19+
<PackageReference Include="PayrollEngine.Client.Test" Version="0.9.0-beta.1" />
2020
</ItemGroup>
2121

2222
<!-- include xml documention files and json schemas to the nuget package -->

Client.Services/PayrollPeriodExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ IPayrollPeriod ContinuePeriod(IPayrollPeriod source) =>
6262
if (periods.Count >= maxCount)
6363
{
6464
throw new PayrollException($"To many periods ({maxCount}) for " +
65-
$"the payrun period {datePeriod} with target date {targetMoment}");
65+
$"the payrun period {datePeriod} with target date {targetMoment}.");
6666
}
6767
}
6868

Client.Services/Scripting.Function.Api/CaseAvailableController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public CaseAvailableFunctionResult IsAvailable(string caseName)
2828
var @case = GetCase(caseName).Result;
2929
if (@case == null)
3030
{
31-
throw new PayrollException($"Missing payroll case {caseName}");
31+
throw new PayrollException($"Missing payroll case {caseName}.");
3232
}
3333
return IsAvailable(caseName, @case);
3434
}

Client.Services/Scripting.Function.Api/CaseBuildController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public CaseBuildFunctionResult Build(string caseName)
2828
var caseSet = GetCaseSet(caseName).Result;
2929
if (caseSet == null)
3030
{
31-
throw new PayrollException($"Missing payroll case {caseName}");
31+
throw new PayrollException($"Missing payroll case {caseName}.");
3232
}
3333
return Build(caseSet);
3434
}
@@ -44,7 +44,7 @@ public CaseBuildFunctionResult Build(CaseSet caseSet)
4444
}
4545
if (string.IsNullOrWhiteSpace(caseSet.Name))
4646
{
47-
throw new ArgumentException("Case set without name", nameof(caseSet));
47+
throw new ArgumentException("Case set without name.", nameof(caseSet));
4848
}
4949

5050
var method = GetScriptMethod(caseSet.Name);

Client.Services/Scripting.Function.Api/CaseRelationBuildController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ public CaseRelationBuildFunctionResult Build(string sourceCaseName, string targe
3535
var sourceCaseSet = GetCaseSet(sourceCaseName).Result;
3636
if (sourceCaseSet == null)
3737
{
38-
throw new PayrollException($"Missing build source case {sourceCaseName}");
38+
throw new PayrollException($"Missing build source case {sourceCaseName}.");
3939
}
4040

4141
// target
4242
var targetCaseSet = GetCaseSet(targetCaseName).Result;
4343
if (targetCaseSet == null)
4444
{
45-
throw new PayrollException($"Missing build target case {targetCaseName}");
45+
throw new PayrollException($"Missing build target case {targetCaseName}.");
4646
}
4747

4848
// build

Client.Services/Scripting.Function.Api/CaseRelationValidateController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ public CaseRelationValidateFunctionResult Validate(string sourceCaseName, string
3535
var sourceCaseSet = GetCaseSet(sourceCaseName).Result;
3636
if (sourceCaseSet == null)
3737
{
38-
throw new PayrollException($"Missing validate source case {sourceCaseName}");
38+
throw new PayrollException($"Missing validate source case {sourceCaseName}.");
3939
}
4040

4141
// target
4242
var targetCaseSet = GetCaseSet(targetCaseName).Result;
4343
if (targetCaseSet == null)
4444
{
45-
throw new PayrollException($"Missing validate target case {targetCaseName}");
45+
throw new PayrollException($"Missing validate target case {targetCaseName}.");
4646
}
4747

4848
// validate

Client.Services/Scripting.Function.Api/CaseValidateController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public CaseValidateFunctionResult Validate(string caseName)
2828
var caseSet = GetCaseSet(caseName).Result;
2929
if (caseSet == null)
3030
{
31-
throw new PayrollException($"Missing payroll case {caseName}");
31+
throw new PayrollException($"Missing payroll case {caseName}.");
3232
}
3333
return Validate(caseName, caseSet);
3434
}

Client.Services/Scripting.Function.Api/FunctionControllerBase.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ protected FunctionControllerBase(PayrollHttpClient httpClient)
3232
Function = functionType.GetCustomAttribute<TFuncAttribute>();
3333
if (Function == null)
3434
{
35-
throw new ArgumentException($"Type {functionType} without function attribute");
35+
throw new ArgumentException($"Type {functionType} without function attribute.");
3636
}
3737

3838
// methods
3939
Methods = GetAttributeMethods(functionType);
4040
if (!Methods.Any())
4141
{
42-
throw new ArgumentException($"Type {functionType} without scripting methods");
42+
throw new ArgumentException($"Type {functionType} without scripting methods.");
4343
}
4444

4545
HttpClient = httpClient ?? throw new ArgumentNullException(nameof(httpClient));
@@ -58,7 +58,7 @@ public MethodInfo GetScriptMethod(string scriptKey)
5858
var method = Methods.FirstOrDefault(x => string.Equals(x.Key.ScriptKey, scriptKey));
5959
if (method.Key == null)
6060
{
61-
throw new ArgumentException($"Scripting method with key {scriptKey} is not available");
61+
throw new ArgumentException($"Scripting method with key {scriptKey} is not available.");
6262
}
6363
return method.Value;
6464
}
@@ -76,7 +76,7 @@ public TScriptAttribute GetScriptAttribute(string scriptKey)
7676
var method = Methods.FirstOrDefault(x => string.Equals(x.Key.ScriptKey, scriptKey));
7777
if (method.Key == null)
7878
{
79-
throw new ArgumentException($"Scripting method with key {scriptKey} is not available");
79+
throw new ArgumentException($"Scripting method with key {scriptKey} is not available.");
8080
}
8181
return method.Key;
8282
}

Client.Services/Scripting.Function.Api/PayrollFunctionController.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ protected ITenant Tenant
3636
tenant = new TenantService(HttpClient).GetAsync<Tenant>(new(), Function.TenantIdentifier).Result;
3737
if (tenant == null)
3838
{
39-
throw new ScriptException($"Unknown tenant {Function.TenantIdentifier}");
39+
throw new ScriptException($"Unknown tenant {Function.TenantIdentifier}.");
4040
}
4141
}
4242
return tenant;
@@ -54,7 +54,7 @@ protected IUser User
5454
user = new UserService(HttpClient).GetAsync<User>(new(Tenant.Id), Function.UserIdentifier).Result;
5555
if (user == null)
5656
{
57-
throw new ScriptException($"Unknown user {Function.UserIdentifier}");
57+
throw new ScriptException($"Unknown user {Function.UserIdentifier}.");
5858
}
5959
}
6060
return user;
@@ -73,7 +73,7 @@ protected IPayroll Payroll
7373
new(Tenant.Id), Function.PayrollName).Result;
7474
if (payroll == null)
7575
{
76-
throw new ScriptException($"Unknown payroll {Function.PayrollName}");
76+
throw new ScriptException($"Unknown payroll {Function.PayrollName}.");
7777
}
7878
}
7979
return payroll;
@@ -96,7 +96,7 @@ protected IEmployee Employee
9696
new(Tenant.Id), Function.EmployeeIdentifier).Result;
9797
if (employee == null)
9898
{
99-
throw new ScriptException($"Unknown employee {Function.EmployeeIdentifier}");
99+
throw new ScriptException($"Unknown employee {Function.EmployeeIdentifier}.");
100100
}
101101
}
102102
return employee;

0 commit comments

Comments
 (0)