-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only have extra assertions on the Event Buffer.
- Loading branch information
Corniel Nobel
committed
Jun 7, 2023
1 parent
0eb58ba
commit 697aafd
Showing
15 changed files
with
408 additions
and
456 deletions.
There are no files selected for viewing
227 changes: 0 additions & 227 deletions
227
src/Qowaiv.DomainModel.TestTools/AggregateRootAssert.cs
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/Qowaiv.DomainModel.TestTools/Extensions/QowaivDomainModelFluentAssertions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using Qowaiv.DomainModel; | ||
using Qowaiv.DomainModel.TestTools.FluentAssertions; | ||
using System.Diagnostics.Contracts; | ||
|
||
namespace FluentAssertions; | ||
|
||
/// <summary>Contains extension methods for custom assertions in unit tests.</summary> | ||
[DebuggerNonUserCode] | ||
public static class QowaivDomainModelFluentAssertions | ||
{ | ||
/// <summary> | ||
/// Returns an <see cref="EventBufferAssertions{TId}"/> object that can be used to assert the | ||
/// current event buffer. | ||
/// </summary> | ||
/// <typeparam name="TId"> | ||
/// The type of the identifier of the event buffer. | ||
/// </typeparam> | ||
[Pure] | ||
[CLSCompliant(false)] | ||
public static EventBufferAssertions<TId> Should<TId>(this EventBuffer<TId> buffer) => new(buffer); | ||
} |
Oops, something went wrong.