Skip to content

Commit

Permalink
boy scout.
Browse files Browse the repository at this point in the history
  • Loading branch information
Corniel committed Jan 24, 2024
1 parent a71212c commit a3fdaba
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
8 changes: 4 additions & 4 deletions specs/Qowaiv.Specs/Financial/Amount_specs.cs
Expand Up @@ -24,7 +24,7 @@ public void Min_of_collection_returns_minimum()
[TestCase(17, 17)]
[TestCase(17, 16)]
[TestCase(16, 17)]
public void Max_of_two_returns_minimum(Amount a1, Amount a2)
public void Max_of_two_returns_minimum(Amount a1, Amount a2)
=> Amount.Max(a1, a2).Should().Be(17.Amount());

[Test]
Expand Down Expand Up @@ -142,7 +142,7 @@ public class From
{
[Test]
public void Int32() => ((Amount)42).Should().Be(42.Amount());

[Test]
public void Int64() => ((Amount)42L).Should().Be(42.Amount());

Expand All @@ -167,8 +167,8 @@ public class To
[Test]
public void Double() => ((double)42.Amount()).Should().Be(42.0);
}

public class Has_operators
}
public class Has_operators
{
[Test]
public void to_divide_amount_by_amount_as_decimal()
Expand Down
9 changes: 9 additions & 0 deletions specs/Qowaiv.Specs/Local_date_time_specs.cs
@@ -1,5 +1,14 @@
namespace Local_date_time_specs;

public class Has_constant
{
[Test]
public void MinValue_is_0001Y_01M_01D() => LocalDateTime.MinValue.Should().Be(new(0001, 01, 01));

[Test]
public void MaxValue_equal_to_9999Y_12M_31D() => LocalDateTime.MaxValue.Should().Be(new(DateTime.MaxValue.Ticks));
}

public class Is_invalid
{
[Test]
Expand Down
2 changes: 0 additions & 2 deletions src/Qowaiv/Identifiers/GuidBehavior.cs
Expand Up @@ -4,8 +4,6 @@
[OpenApiDataType(description: "GUID based identifier", example: "8a1a8c42-d2ff-e254-e26e-b6abcbf19420", type: "string", format: "guid", nullable: true)]
public class GuidBehavior : IdentifierBehavior
{
internal static readonly GuidBehavior Instance = new();

/// <summary>Initializes a new instance of the <see cref="GuidBehavior"/> class.</summary>
protected GuidBehavior() { }

Expand Down

0 comments on commit a3fdaba

Please sign in to comment.