PageRenderTime 53ms CodeModel.GetById 28ms RepoModel.GetById 0ms app.codeStats 0ms

/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
Possible License(s): MPL-2.0-no-copyleft-exception, Apache-2.0
  1. using System;
  2. using FluentAssertions;
  3. using Ncqrs.Eventing.Storage;
  4. namespace Ncqrs.Tests.Eventing.Storage
  5. {
  6. public class DuplicateCommitExceptionTests : BaseExceptionTests<DuplicateCommitException>
  7. {
  8. protected override DuplicateCommitException Create()
  9. {
  10. return new DuplicateCommitException(Guid.NewGuid(), Guid.NewGuid());
  11. }
  12. protected override void VerifyDeserialized(DuplicateCommitException created, DuplicateCommitException deserialized)
  13. {
  14. deserialized.EventSourceId.Should().Be(created.EventSourceId);
  15. deserialized.CommitId.Should().Be(created.CommitId);
  16. }
  17. }
  18. }