/Framework/src/Ncqrs.Tests/Eventing/Storage/DuplicateCommitExceptionTests.cs
http://github.com/ncqrs/ncqrs · C# · 20 lines · 18 code · 2 blank · 0 comment · 0 complexity · 193f6439d6c3e0eb75fc68811c201d45 MD5 · raw file
- using System;
- using FluentAssertions;
- using Ncqrs.Eventing.Storage;
-
- namespace Ncqrs.Tests.Eventing.Storage
- {
- public class DuplicateCommitExceptionTests : BaseExceptionTests<DuplicateCommitException>
- {
- protected override DuplicateCommitException Create()
- {
- return new DuplicateCommitException(Guid.NewGuid(), Guid.NewGuid());
- }
-
- protected override void VerifyDeserialized(DuplicateCommitException created, DuplicateCommitException deserialized)
- {
- deserialized.EventSourceId.Should().Be(created.EventSourceId);
- deserialized.CommitId.Should().Be(created.CommitId);
- }
- }
- }