Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v5.18.0 #268

Merged
merged 3 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ jobs:
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
9.0.x

# Tools

Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

Represents the **NuGet** versions.

## v5.18.0
- *Enhancement:* Added `net9.0` support.
- *Enhancement:* Deprecated `net7.0` support; no longer supported by [Microsoft](https://dotnet.microsoft.com/en-us/platform/support/policy).
- *Enhancement:* Updated dependencies to latest; including transitive where applicable.
- *Enhancement:* Integrated `UnitTestEx` version `5.0.0` to enable the latest capabilities and improvements.
- `CoreEx.UnitTesting.NUnit` given changes is no longer required and has been deprecated, the `UnitTestEx.NUnit` (or other) must be explicitly referenced as per testing framework being used.
- `CoreEx.UnitTesting` package updated to include only standard .NET core capabilities to follow new `UnitTestEx` pattern; new packages created to house specific as follows:
- `CoreEx.UnitTesting.Azure.Functions` created to house Azure Functions specific capabilities;
- `CoreEx.UnitTesting.Azure.ServiceBus` created to house Azure Service Bus specific capabilities.
- Existing usage will require references to the new packages as required. There should be limited need to update existing tests to use beyond the requirement for the root `UnitTestEx` namespace. The updated default within `UnitTestEx` is to expose the key capabilities from the root namespace. For example, `using UnitTestEx.NUnit`, should be replaced with `using UnitTestEx`.

## v5.17.1
- *Fixed:* The database console `Script` command execution has been updated to output to the correct directory path.
- *Fixed:* The `Agent` code-generation artefacts have been further simplified/improved.
Expand Down
2 changes: 1 addition & 1 deletion Common.targets
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Version>5.17.1</Version>
<Version>5.18.0</Version>
<LangVersion>preview</LangVersion>
<Authors>Avanade</Authors>
<Company>Avanade</Company>
Expand Down
4 changes: 2 additions & 2 deletions samples/Cdr.Banking/Cdr.Banking.Api/Cdr.Banking.Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<ImplicitUsings>true</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="CoreEx.AspNetCore" Version="3.27.3" />
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerGen" Version="6.9.0" />
<PackageReference Include="CoreEx.AspNetCore" Version="3.30.0" />
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerGen" Version="7.0.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Cdr.Banking.Business\Cdr.Banking.Business.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
<Folder Include="DataSvc\" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="CoreEx.AspNetCore" Version="3.27.3" />
<PackageReference Include="CoreEx.Cosmos" Version="3.27.3" />
<PackageReference Include="CoreEx.Validation" Version="3.27.3" />
<PackageReference Include="CoreEx.AspNetCore" Version="3.30.0" />
<PackageReference Include="CoreEx.Cosmos" Version="3.30.0" />
<PackageReference Include="CoreEx.Validation" Version="3.30.0" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
<Folder Include="Entities\" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="CoreEx" Version="3.27.3" />
<PackageReference Include="CoreEx" Version="3.30.0" />
</ItemGroup>
</Project>
1 change: 0 additions & 1 deletion samples/Cdr.Banking/Cdr.Banking.Test/AccountTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using System.Net;
using UnitTestEx;
using UnitTestEx.Expectations;
using UnitTestEx.NUnit;

namespace Cdr.Banking.Test
{
Expand Down
7 changes: 4 additions & 3 deletions samples/Cdr.Banking/Cdr.Banking.Test/Cdr.Banking.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,13 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="NUnit.Analyzers" Version="4.3.0">
<PackageReference Include="NUnit.Analyzers" Version="4.4.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="CoreEx.UnitTesting.NUnit" Version="3.27.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="CoreEx.UnitTesting" Version="3.30.0" />
<PackageReference Include="UnitTestEx.NUnit" Version="5.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
1 change: 0 additions & 1 deletion samples/Cdr.Banking/Cdr.Banking.Test/FixtureSetup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using NUnit.Framework;
using System.Threading.Tasks;
using UnitTestEx;
using UnitTestEx.NUnit;
using Cosmos = Microsoft.Azure.Cosmos;

namespace Cdr.Banking.Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using System.Threading.Tasks;
using UnitTestEx;
using UnitTestEx.Expectations;
using UnitTestEx.NUnit;

namespace Cdr.Banking.Test
{
Expand Down
1 change: 0 additions & 1 deletion samples/Cdr.Banking/Cdr.Banking.Test/TransactionTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using System.Net;
using UnitTestEx;
using UnitTestEx.Expectations;
using UnitTestEx.NUnit;

namespace Cdr.Banking.Test
{
Expand Down
6 changes: 3 additions & 3 deletions samples/Demo/Beef.Demo.Api/Beef.Demo.Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CoreEx.AspNetCore" Version="3.27.3" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.9.0" />
<PackageReference Include="Swashbuckle.AspNetCore.Newtonsoft" Version="6.9.0" />
<PackageReference Include="CoreEx.AspNetCore" Version="3.30.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="7.0.0" />
<PackageReference Include="Swashbuckle.AspNetCore.Newtonsoft" Version="7.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
16 changes: 8 additions & 8 deletions samples/Demo/Beef.Demo.Business/Beef.Demo.Business.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="CoreEx" Version="3.27.3" />
<PackageReference Include="CoreEx.AspNetCore" Version="3.27.3" />
<PackageReference Include="CoreEx.Cosmos" Version="3.27.3" />
<PackageReference Include="CoreEx.Database" Version="3.27.3" />
<PackageReference Include="CoreEx.Database.SqlServer" Version="3.27.3" />
<PackageReference Include="CoreEx.EntityFrameworkCore" Version="3.27.3" />
<PackageReference Include="CoreEx.Validation" Version="3.27.3" />
<PackageReference Include="CoreEx.FluentValidation" Version="3.27.3" />
<PackageReference Include="CoreEx" Version="3.30.0" />
<PackageReference Include="CoreEx.AspNetCore" Version="3.30.0" />
<PackageReference Include="CoreEx.Cosmos" Version="3.30.0" />
<PackageReference Include="CoreEx.Database" Version="3.30.0" />
<PackageReference Include="CoreEx.Database.SqlServer" Version="3.30.0" />
<PackageReference Include="CoreEx.EntityFrameworkCore" Version="3.30.0" />
<PackageReference Include="CoreEx.Validation" Version="3.30.0" />
<PackageReference Include="CoreEx.FluentValidation" Version="3.30.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.20" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion samples/Demo/Beef.Demo.Common/Beef.Demo.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<Folder Include="Agents\" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="CoreEx" Version="3.27.3" />
<PackageReference Include="CoreEx" Version="3.30.0" />
<PackageReference Include="Grpc.Tools" Version="2.67.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
7 changes: 4 additions & 3 deletions samples/Demo/Beef.Demo.Test/Beef.Demo.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,17 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="CoreEx.UnitTesting" Version="3.27.3" />
<PackageReference Include="NUnit.Analyzers" Version="4.3.0">
<PackageReference Include="CoreEx.UnitTesting" Version="3.30.0" />
<PackageReference Include="UnitTestEx.NUnit" Version="5.0.0" />
<PackageReference Include="NUnit.Analyzers" Version="4.4.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
</ItemGroup>

<ItemGroup>
Expand Down
1 change: 0 additions & 1 deletion samples/Demo/Beef.Demo.Test/ContactTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
using System.Net;
using UnitTestEx;
using UnitTestEx.Expectations;
using UnitTestEx.NUnit;

namespace Beef.Demo.Test
{
Expand Down
1 change: 0 additions & 1 deletion samples/Demo/Beef.Demo.Test/EventOutboxTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using System.Linq;
using System.Threading.Tasks;
using UnitTestEx;
using UnitTestEx.NUnit;

namespace Beef.Demo.Test
{
Expand Down
1 change: 0 additions & 1 deletion samples/Demo/Beef.Demo.Test/FixtureSetup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using Microsoft.Extensions.DependencyInjection;
using NUnit.Framework;
using UnitTestEx;
using UnitTestEx.NUnit;

namespace Beef.Demo.Test
{
Expand Down
1 change: 0 additions & 1 deletion samples/Demo/Beef.Demo.Test/GenderTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using System.Net;
using UnitTestEx;
using UnitTestEx.Expectations;
using UnitTestEx.NUnit;

namespace Beef.Demo.Test
{
Expand Down
2 changes: 1 addition & 1 deletion samples/Demo/Beef.Demo.Test/PostalInfoTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
using System.Net;
using System.Net.Http;
using UnitTestEx.Expectations;
using UnitTestEx.NUnit;
using UnitTestEx;

namespace Beef.Demo.Test
{
Expand Down
1 change: 0 additions & 1 deletion samples/Demo/Beef.Demo.Test/ReferenceDataTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
using System.Threading.Tasks;
using UnitTestEx;
using UnitTestEx.Expectations;
using UnitTestEx.NUnit;

namespace Beef.Demo.Test
{
Expand Down
1 change: 0 additions & 1 deletion samples/Demo/Beef.Demo.Test/RobotTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
using System.Threading.Tasks;
using UnitTestEx;
using UnitTestEx.Expectations;
using UnitTestEx.NUnit;
using Cosmos = Microsoft.Azure.Cosmos;

namespace Beef.Demo.Test
Expand Down
1 change: 0 additions & 1 deletion samples/Demo/Beef.Demo.Test/XParallelPersonTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using System.Net;
using UnitTestEx;
using UnitTestEx.Expectations;
using UnitTestEx.NUnit;

namespace Beef.Demo.Test
{
Expand Down
6 changes: 3 additions & 3 deletions samples/My.Hr/My.Hr.Api/My.Hr.Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<ImplicitUsings>true</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="CoreEx.AspNetCore" Version="3.27.3" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.9.0" />
<PackageReference Include="Swashbuckle.AspNetCore.Newtonsoft" Version="6.9.0" />
<PackageReference Include="CoreEx.AspNetCore" Version="3.30.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="7.0.0" />
<PackageReference Include="Swashbuckle.AspNetCore.Newtonsoft" Version="7.0.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\My.Hr.Business\My.Hr.Business.csproj" />
Expand Down
8 changes: 4 additions & 4 deletions samples/My.Hr/My.Hr.Business/My.Hr.Business.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<LangVersion>latest</LangVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="CoreEx" Version="3.27.3" />
<PackageReference Include="CoreEx.Database.SqlServer" Version="3.27.3" />
<PackageReference Include="CoreEx.EntityFrameworkCore" Version="3.27.3" />
<PackageReference Include="CoreEx.Validation" Version="3.27.3" />
<PackageReference Include="CoreEx" Version="3.30.0" />
<PackageReference Include="CoreEx.Database.SqlServer" Version="3.30.0" />
<PackageReference Include="CoreEx.EntityFrameworkCore" Version="3.30.0" />
<PackageReference Include="CoreEx.Validation" Version="3.30.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.31" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion samples/My.Hr/My.Hr.Common/My.Hr.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
<ImplicitUsings>true</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="CoreEx" Version="3.27.3" />
<PackageReference Include="CoreEx" Version="3.30.0" />
</ItemGroup>
</Project>
1 change: 0 additions & 1 deletion samples/My.Hr/My.Hr.Test/GlobalUsings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
global using System.Threading.Tasks;
global using UnitTestEx;
global using UnitTestEx.Expectations;
global using UnitTestEx.NUnit;
global using My.Hr.Api;
global using My.Hr.Business;
global using My.Hr.Business.Data;
Expand Down
9 changes: 5 additions & 4 deletions samples/My.Hr/My.Hr.Test/My.Hr.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,18 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="CoreEx" Version="3.27.3" />
<PackageReference Include="CoreEx" Version="3.30.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="NUnit.Analyzers" Version="4.3.0">
<PackageReference Include="NUnit.Analyzers" Version="4.4.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="CoreEx.UnitTesting.NUnit" Version="3.27.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="CoreEx.UnitTesting" Version="3.30.0" />
<PackageReference Include="UnitTestEx.NUnit" Version="5.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions samples/MyEf.Hr/MyEf.Hr.Api/MyEf.Hr.Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
<GenerateDocumentationFile>True</GenerateDocumentationFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="CoreEx.AspNetCore" Version="3.27.3" />
<PackageReference Include="CoreEx.Azure" Version="3.27.3" />
<PackageReference Include="CoreEx.AspNetCore" Version="3.30.0" />
<PackageReference Include="CoreEx.Azure" Version="3.30.0" />
<PackageReference Include="OpenTelemetry.Instrumentation.EntityFrameworkCore" Version="1.0.0-beta.11" />
<PackageReference Include="AspNetCore.HealthChecks.Azure.Storage.Blobs" Version="8.0.1" />
<PackageReference Include="Azure.Monitor.OpenTelemetry.AspNetCore" Version="1.2.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.9.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="7.0.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\MyEf.Hr.Business\MyEf.Hr.Business.csproj" />
Expand Down
8 changes: 4 additions & 4 deletions samples/MyEf.Hr/MyEf.Hr.Business/MyEf.Hr.Business.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<LangVersion>latest</LangVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="CoreEx" Version="3.27.3" />
<PackageReference Include="CoreEx.Database.SqlServer" Version="3.27.3" />
<PackageReference Include="CoreEx.EntityFrameworkCore" Version="3.27.3" />
<PackageReference Include="CoreEx.Validation" Version="3.27.3" />
<PackageReference Include="CoreEx" Version="3.30.0" />
<PackageReference Include="CoreEx.Database.SqlServer" Version="3.30.0" />
<PackageReference Include="CoreEx.EntityFrameworkCore" Version="3.30.0" />
<PackageReference Include="CoreEx.Validation" Version="3.30.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.10" />
</ItemGroup>
<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion samples/MyEf.Hr/MyEf.Hr.Common/MyEf.Hr.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
<ImplicitUsings>true</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="CoreEx" Version="3.27.3" />
<PackageReference Include="CoreEx" Version="3.30.0" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
</Content>
</ItemGroup>
<ItemGroup>
<PackageReference Include="CoreEx.Azure" Version="3.27.3" />
<PackageReference Include="CoreEx.Validation" Version="3.27.3" />
<PackageReference Include="CoreEx.Azure" Version="3.30.0" />
<PackageReference Include="CoreEx.Validation" Version="3.30.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="1.23.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.ServiceBus" Version="5.22.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="1.18.1" />
Expand Down
3 changes: 1 addition & 2 deletions samples/MyEf.Hr/MyEf.Hr.Security.Test/GlobalUsings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@
global using NUnit.Framework.Internal;
global using System.Net;
global using UnitTestEx;
global using UnitTestEx.Expectations;
global using UnitTestEx.NUnit;
global using UnitTestEx.Expectations;
Loading
Loading