diff --git a/src/FoSouzaDev.Common.Domain/Exceptions/ConflictException.cs b/src/FoSouzaDev.Common.Domain/Exceptions/ConflictException.cs
index 2f077cd..1afcd84 100644
--- a/src/FoSouzaDev.Common.Domain/Exceptions/ConflictException.cs
+++ b/src/FoSouzaDev.Common.Domain/Exceptions/ConflictException.cs
@@ -1,6 +1,6 @@
namespace FoSouzaDev.Common.Domain.Exceptions;
-public sealed class ConflictException(string identifier) : Exception(message: "Already registered.")
+public sealed class ConflictException(Guid id) : Exception(message: "Already registered.")
{
- public string Identifier => identifier;
+ public Guid Id => id;
}
\ No newline at end of file
diff --git a/src/FoSouzaDev.Common.Domain/FoSouzaDev.Common.Domain.csproj b/src/FoSouzaDev.Common.Domain/FoSouzaDev.Common.Domain.csproj
index a33851a..bc5e8a7 100644
--- a/src/FoSouzaDev.Common.Domain/FoSouzaDev.Common.Domain.csproj
+++ b/src/FoSouzaDev.Common.Domain/FoSouzaDev.Common.Domain.csproj
@@ -6,7 +6,7 @@
true
$(AssemblyName)
- 1.2.0
+ 1.2.1
MIT
Felipe Souza
https://github.com/fosouzadev/common-domain
diff --git a/tests/FoSouzaDev.Common.Domain.UnitaryTests/Exceptions/ConflictExceptionTest.cs b/tests/FoSouzaDev.Common.Domain.UnitaryTests/Exceptions/ConflictExceptionTest.cs
index 5b5c803..22053bd 100644
--- a/tests/FoSouzaDev.Common.Domain.UnitaryTests/Exceptions/ConflictExceptionTest.cs
+++ b/tests/FoSouzaDev.Common.Domain.UnitaryTests/Exceptions/ConflictExceptionTest.cs
@@ -1,5 +1,4 @@
-using AutoFixture;
-using FluentAssertions;
+using FluentAssertions;
using FoSouzaDev.Common.Domain.Exceptions;
namespace FoSouzaDev.Common.Domain.UnitaryTests.Exceptions;
@@ -10,13 +9,13 @@ public sealed class ConflictExceptionTest : BaseTest
public void Constructor_Success_CreateAnException()
{
// Arrange
- string expectedIdentifier = base.Fixture.Create();
+ Guid expectedId = Guid.NewGuid();
// Act
- ConflictException ex = new(expectedIdentifier);
+ ConflictException ex = new(expectedId);
// Assert
ex.Message.Should().Be("Already registered.");
- ex.Identifier.Should().Be(expectedIdentifier);
+ ex.Id.Should().Be(expectedId);
}
}
\ No newline at end of file