Skip to content

Commit

Permalink
Fix must.
Browse files Browse the repository at this point in the history
  • Loading branch information
Corniel Nobel committed Jun 7, 2023
1 parent e50afad commit f49e181
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Qowaiv.DomainModel/Qowaiv.Validation.Guarding/Musts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ public static class DomainModelExtensions
/// extension.
/// </remarks>
[Pure]
public static Result<TAggregate> HaveVersion<TAggregate>(this Must<TAggregate> must, int expected)
public static Result<TAggregate> HaveVersion<TAggregate>(this Must<TAggregate> must, long expected)
where TAggregate : Aggregate<TAggregate>, new()
{
Guard.NotNull(must, nameof(must));
Guard.NotNegative(expected, nameof(expected));
int actual = ((dynamic)must.Subject).Version;
long actual = ((dynamic)must.Subject).Version;
return must.Be(actual == expected, ConcurrencyIssue.VersionMismatch(expected, actual));
}
}

0 comments on commit f49e181

Please sign in to comment.