Skip to content

Commit

Permalink
Updated packages. (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgernand authored Jun 2, 2024
1 parent e605051 commit 9d61ce3
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 62 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.30" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.31" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.19" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.20" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.5" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.6" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="6.0.*" />
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="6.0.31" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="7.0.*" />
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="7.0.20" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="8.0.*" />
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="8.0.6" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="Fluxera.Guards" Version="8.0.2" />
<PackageReference Include="JetBrains.Annotations" Version="2023.3.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="NUnit" Version="4.1.0" />
Expand Down
6 changes: 0 additions & 6 deletions tests/Fluxera.ValueObject.UnitTests/Model/Address.cs
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
namespace Fluxera.ValueObject.UnitTests.Model
{
using System;
using Fluxera.Guards;
using JetBrains.Annotations;

[PublicAPI]
public class Address : ValueObject<Address>, IComparable
{
public Address(string street, string houseNumber, string postCode, string city)
{
Guard.Against.NullOrWhiteSpace(street, nameof(street));
Guard.Against.NullOrWhiteSpace(houseNumber, nameof(houseNumber));
Guard.Against.NullOrWhiteSpace(postCode, nameof(postCode));
Guard.Against.NullOrWhiteSpace(city, nameof(city));

this.Street = street;
this.HouseNumber = houseNumber;
this.PostCode = postCode;
Expand Down
5 changes: 0 additions & 5 deletions tests/Fluxera.ValueObject.UnitTests/Model/BankAccount.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
namespace Fluxera.ValueObject.UnitTests.Model
{
using Guards;
using JetBrains.Annotations;

[PublicAPI]
public class BankAccount : ValueObject<BankAccount>
{
public BankAccount(string name, string iban, string bic)
{
Guard.Against.NullOrWhiteSpace(name, nameof(name));
Guard.Against.NullOrWhiteSpace(iban, nameof(iban));
Guard.Against.NullOrWhiteSpace(bic, nameof(bic));

this.Name = name;
this.Iban = iban;
this.Bic = bic;
Expand Down
4 changes: 0 additions & 4 deletions tests/Fluxera.ValueObject.UnitTests/Model/Confederation.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
namespace Fluxera.ValueObject.UnitTests.Model
{
using System.Collections.Generic;
using Guards;
using JetBrains.Annotations;

[PublicAPI]
public class Confederation : ValueObject<Confederation>
{
public Confederation(string name, IList<Country> memberCountries)
{
Guard.Against.NullOrWhiteSpace(name, nameof(name));
Guard.Against.NullOrEmpty(memberCountries, nameof(memberCountries));

this.Name = name;
this.MemberCountries = memberCountries.AsValueList();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
namespace Fluxera.ValueObject.UnitTests.Model
{
using System.Collections.Generic;
using Guards;
using JetBrains.Annotations;

[PublicAPI]
public class ConfederationIncorrectImplementation : ValueObject<Confederation>
{
public ConfederationIncorrectImplementation(string name, IList<Country> memberCountries)
{
Guard.Against.NullOrWhiteSpace(name, nameof(name));
Guard.Against.NullOrEmpty(memberCountries, nameof(memberCountries));

this.Name = name;
this.MemberCountries = memberCountries;
}
Expand Down
2 changes: 0 additions & 2 deletions tests/Fluxera.ValueObject.UnitTests/Model/Country.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Fluxera.ValueObject.UnitTests.Model
{
using Guards;
using JetBrains.Annotations;

[PublicAPI]
Expand All @@ -9,7 +8,6 @@ public class Country : ValueObject<Country>
public Country(string twoLetterCode)
{
this.TwoLetterCode = twoLetterCode;
Guard.Against.InvalidLength(twoLetterCode, nameof(twoLetterCode), 2);
}

public string TwoLetterCode { get; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Fluxera.ValueObject.UnitTests.Model
{
using Guards;
using JetBrains.Annotations;

[PublicAPI]
Expand All @@ -10,7 +9,6 @@ public class GermanBankAccount : BankAccount
public GermanBankAccount(string name, string iban, string bic)
: base(name, iban, bic)
{
Guard.Against.NonGermanIban(iban, nameof(iban));
}
}
}

This file was deleted.

0 comments on commit 9d61ce3

Please sign in to comment.