Skip to content

Commit

Permalink
fix : fix typo in msg
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikoo-Asadnejad committed Jan 11, 2024
1 parent f295542 commit 25c37e2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Src/Product.Domain/Base/Ip.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ private void SetValue(string value)
{
if (string.IsNullOrWhiteSpace(value))
{
throw new DomainValidationException(ExceptionMessage.IpIsMandatry);
throw new DomainValidationException(ExceptionMessage.IpIsMandatory);
}

if (value.Length > Lenght || value.Length < Lenght)
Expand Down
2 changes: 1 addition & 1 deletion Src/Product.Domain/Constants/Messages/ExceptionMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ namespace Product.Domain.Constants.Messages;
public struct ExceptionMessage
{
public static readonly string InvalidIp = "Ip is invalid";
public static readonly string IpIsMandatry = "The IpAddress cannot be null or empty.";
public static readonly string IpIsMandatory = "The IpAddress cannot be null or empty.";
public static string IpLenghtShouldBe(int lenght) => $"The IpAddress length must be {lenght} characters.";
}
3 changes: 3 additions & 0 deletions Src/Product.Domain/Product.Domain.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
</PropertyGroup>

<ItemGroup>
<Folder Include="Aggregates\Category\Exceptions" />
<Folder Include="Aggregates\Category\ValueObjects" />
<Folder Include="Aggregates\Product\Entities" />
<Folder Include="Aggregates\Product\Exceptions" />
</ItemGroup>

Expand Down

0 comments on commit 25c37e2

Please sign in to comment.