v0.4

v0.4.3

Improvements

  • CommitAsync now accepts nullable parameters
  • Added generic overload for MockMe.ASetting()

v0.4.2

Improvements

  • Improved exception message when there is no valid json in the database.
  • Added GetRequiredValue<T> extension to IConfiguration with default value option
  • Mock IConfiguration return values for not defined settings can now be configured by overriding ServiceSpec.GetDefaultSettingsValue()

Bugfixes

  • ObjectUserType was causing its data to be corrupted when it contains special characters, fixed.

v0.4.1

Bugfixes

  • Automatic StyleCop.Analyzer reference conflicts with Directory.Packages.props usage, fixed

v0.4.0

.NET Upgrade

DO now supports .NET 7! Below you can find a task list to upgrade your projects.

- [ ] Upgrade .NET and C# versions
  - [ ] in projects
  - [ ] in docker files
  - [ ] in GitHub workflows
- [ ] Migrate to central package management
- [ ] Utilize regex source generator

Upgrade .NET and C# versions

in projects
  • Change the C# version to 11.0 in <LangVersion> tag in Directory.Build.props.
  • Change the .NET version to net7.0 in <TargetFramework> tag in Directory.Build.props.
in docker files

Update .NET version in Dockerfile

  • replace .../dotnet/aspnet:6.0-focal to .../dotnet/aspnet:7.0
  • replace .../dotnet/sdk:6.0-focal to .../dotnet/sdk:7.0
  • again docker compose up ✅
in GitHub workflows

Update dotnet-version to 7

- name: Setup .NET
  uses: actions/setup-dotnet@v3
  with:
    dotnet-version: 7

Migrate to central package management

  • Add Directory.Packages.props root
  • Set true to <ManagePackageVersionsCentrally>
  • Go through all .csproj and collect all packages into Directory.Packages.props and remove versions from all .csproj.

Visit Central Package Management for more details.

Utilize regex source generator

Use regex source generator where possible.

Visit Regular expressions for more details.

Library Upgrades

PackageOld VersionNew Version
FluentNHibernate3.2.13.3.0
Microsoft.AspNetCore.Mvc.NewtonsoftJson6.0.227.0.13
Microsoft.Extensions.Configuration.Abstractions6.0.07.0.0
Microsoft.Extensions.Configuration.Binder6.0.07.0.4
Moq4.18.44.20.69
MySql.Data8.1.08.2.0
NUnit3.13.33.14.0