Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Commit

Permalink
add VatNumber Nox.Type Placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
rochar committed Jun 29, 2023
1 parent b9a13f0 commit a8bbb04
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Nox.Types/Enums/NoxType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ public enum NoxType
@Array,
@Collection,
@Object,
// This is complex, needs to include CountryCode
VatNumber,

// Compound Types - requires multiple fields to persist
[CompoundType] Entity,
Expand Down
9 changes: 9 additions & 0 deletions src/Nox.Types/Types/VatNumber/VatNumber.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace Nox.Types;

/// <summary>
/// Represents a Nox <see cref="VatNumber"/> type and value object.
/// </summary>
/// <remarks>Placeholder, needs to be implemented</remarks>
public sealed class VatNumber : ValueObject<(string VatNumber, CountryCode2 countryCode2), VatNumber>
{
}
11 changes: 11 additions & 0 deletions tests/Nox.Types.Tests/Types/VatNumberTests/VatNumberTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// ReSharper disable once CheckNamespace
namespace Nox.Types.Tests.Types;

public class VatNumberTests
{
[Fact]
public void When_Create_Should()
{

}
}

0 comments on commit a8bbb04

Please sign in to comment.