Skip to content

Commit f196ad0

Browse files
author
Jani Giannoudis
committed
updated nugets
updated to version 0.8.0-beta.2
1 parent 7cc7381 commit f196ad0

15 files changed

+36
-37
lines changed

Client.Test/Case/CaseBuildTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace PayrollEngine.Client.Test.Case;
44

5-
/// <summary>Case build function test
5+
/// <summary>Case build function test.
66
/// Test input: case change setup
77
/// Test output: case set
88
/// </summary>

Client.Test/Case/CaseTestResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace PayrollEngine.Client.Test.Case;
77
public class CaseTestResult
88
{
99
/// <summary>The test results</summary>
10-
public List<CaseScriptTestResult> Results { get; } = new();
10+
public List<CaseScriptTestResult> Results { get; } = [];
1111

1212
/// <summary>Test if case test is failed</summary>
1313
public bool IsFailed() =>

Client.Test/Case/CaseTestRunner.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ protected virtual void InitTest(CaseTest caseTest, CaseTestContext context)
249249
}
250250

251251
/// <summary>Setup initialization cases</summary>
252-
/// <param name="initCases">The cases to setup</param>
252+
/// <param name="initCases">The setup cases</param>
253253
/// <param name="testContext">The test context</param>
254254
protected virtual async Task SetupInitCases(List<CaseChangeSetup> initCases, CaseTestContext testContext)
255255
{
@@ -306,15 +306,15 @@ protected virtual CaseScriptTestResult RunCustomTest<T>(T test, CaseTestType cas
306306
try
307307
{
308308
// ctor signature: public MyTest(PayrollHttpClient httpClient, CaseTestContext context);
309-
var instance = Activator.CreateInstance(testType, args: new object[]
310-
{
309+
var instance = Activator.CreateInstance(testType, args:
310+
[
311311
HttpClient,
312312
context
313-
});
313+
]);
314314
// test method signature: public void MyTest(CaseAvailableTest test)
315315
// test method signature: public void MyTest(CaseBuildTest test)
316316
// test method signature: public void MyTest(CaseValidateTest test)
317-
testMethod.Invoke(instance, new object[] { test });
317+
testMethod.Invoke(instance, [test]);
318318
}
319319
catch (Exception exception)
320320
{

Client.Test/Case/CaseValidateTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace PayrollEngine.Client.Test.Case;
44

5-
/// <summary>Case validate function test
5+
/// <summary>Case validate function test.
66
/// Test input: case change setup
77
/// Test output: case change
88
/// </summary>

Client.Test/CustomTestParser.cs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,8 @@ private void EnsureAssembly()
122122

123123
/// <summary>Get the test default references</summary>
124124
/// <returns>Type reference list</returns>
125-
protected virtual List<Type> GetDefaultReferences() => new()
126-
{
127-
// any object
125+
protected virtual List<Type> GetDefaultReferences() =>
126+
[
128127
typeof(object),
129128
// used for object references
130129
typeof(AssemblyTargetedPatchBandAttribute),
@@ -135,13 +134,13 @@ private void EnsureAssembly()
135134
// payroll engine core
136135
typeof(SystemSpecification),
137136
// payroll engine client
138-
typeof(PayrollHttpClient),
139-
};
137+
typeof(PayrollHttpClient)
138+
];
140139

141140
/// <summary>Get the test default assembly names</summary>
142141
/// <returns>Assembly name list</returns>
143-
protected virtual List<string> GetDefaultAssemblies() => new()
144-
{
142+
protected virtual List<string> GetDefaultAssemblies() =>
143+
[
145144
"System",
146145
"System.Runtime",
147146
// dynamic objects
@@ -159,7 +158,7 @@ private void EnsureAssembly()
159158
"System.ComponentModel",
160159
"System.Xml.ReaderWriter",
161160
"System.Private.Xml"
162-
};
161+
];
163162

164163
private Assembly BuildAssembly()
165164
{

Client.Test/PayrollEngine.CaseTest.schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@
969969
},
970970
{
971971
"type": "object",
972-
"description": "Case build function test\n Test input: case change setup\n Test output: case set\n "
972+
"description": "Case build function test.\n Test input: case change setup\n Test output: case set\n "
973973
}
974974
]
975975
},
@@ -1935,7 +1935,7 @@
19351935
},
19361936
{
19371937
"type": "object",
1938-
"description": "Case validate function test\n Test input: case change setup\n Test output: case change\n "
1938+
"description": "Case validate function test.\n Test input: case change setup\n Test output: case change\n "
19391939
}
19401940
]
19411941
},

Client.Test/PayrollEngine.Client.Test.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
</PropertyGroup>
1717

1818
<ItemGroup>
19-
<PackageReference Include="Microsoft.CodeAnalysis.Compilers" Version="4.8.0" />
20-
<PackageReference Include="PayrollEngine.Client.Core" Version="0.8.0-beta.1" />
19+
<PackageReference Include="Microsoft.CodeAnalysis.Compilers" Version="4.10.0" />
20+
<PackageReference Include="PayrollEngine.Client.Core" Version="0.8.0-beta.2" />
2121
</ItemGroup>
2222

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

Client.Test/PayrollEngine.Client.Test.xml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Client.Test/PayrollEngine.ReportTest.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
},
8484
{
8585
"type": "object",
86-
"description": "Report build test\n Test input: report request\n Test output: list of report parameter\n "
86+
"description": "Report build test.\n Test input: report request\n Test output: list of report parameter\n "
8787
}
8888
]
8989
},

Client.Test/Payrun/PayrunEmployeeTestRunner.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ protected virtual async Task DuplicateTestEmployee(int tenantId, ExchangeTenant
145145
}
146146

147147
// duplicate test employee
148-
tenant.Employees ??= new();
148+
tenant.Employees ??= [];
149149
tenant.Employees.Add(new(employee));
150150

151151
// adjust case employee

0 commit comments

Comments
 (0)