From fce6e5e3726a2fa014e4d02188ef05267c9a4c1c Mon Sep 17 00:00:00 2001 From: Scott Lilly <2271154+ScottLilly@users.noreply.github.com> Date: Wed, 9 Apr 2025 17:11:44 -0400 Subject: [PATCH] reorg --- CSharpExtender/CSharpExtender.csproj | 6 ------ .../{Attributes => DataAnnotations}/UniqueItemsAttribute.cs | 2 +- .../Test_UniqueItemsAttribute.cs | 6 +++--- 3 files changed, 4 insertions(+), 10 deletions(-) rename CSharpExtender/{Attributes => DataAnnotations}/UniqueItemsAttribute.cs (98%) rename Test.CSharpExtender/{Attributes => DataAnnotations}/Test_UniqueItemsAttribute.cs (98%) diff --git a/CSharpExtender/CSharpExtender.csproj b/CSharpExtender/CSharpExtender.csproj index 2ee9a4b..e283250 100644 --- a/CSharpExtender/CSharpExtender.csproj +++ b/CSharpExtender/CSharpExtender.csproj @@ -20,12 +20,6 @@ False - - - - - - True diff --git a/CSharpExtender/Attributes/UniqueItemsAttribute.cs b/CSharpExtender/DataAnnotations/UniqueItemsAttribute.cs similarity index 98% rename from CSharpExtender/Attributes/UniqueItemsAttribute.cs rename to CSharpExtender/DataAnnotations/UniqueItemsAttribute.cs index 0a43cdb..cf7c09e 100644 --- a/CSharpExtender/Attributes/UniqueItemsAttribute.cs +++ b/CSharpExtender/DataAnnotations/UniqueItemsAttribute.cs @@ -4,7 +4,7 @@ using System.Linq; using System.Reflection; -namespace CSharpExtender.Attributes; +namespace CSharpExtender.DataAnnotations; [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)] public class UniqueItemsAttribute : ValidationAttribute diff --git a/Test.CSharpExtender/Attributes/Test_UniqueItemsAttribute.cs b/Test.CSharpExtender/DataAnnotations/Test_UniqueItemsAttribute.cs similarity index 98% rename from Test.CSharpExtender/Attributes/Test_UniqueItemsAttribute.cs rename to Test.CSharpExtender/DataAnnotations/Test_UniqueItemsAttribute.cs index 3dd97f7..e49eedf 100644 --- a/Test.CSharpExtender/Attributes/Test_UniqueItemsAttribute.cs +++ b/Test.CSharpExtender/DataAnnotations/Test_UniqueItemsAttribute.cs @@ -1,9 +1,9 @@ -using CSharpExtender.Attributes; +using CSharpExtender.DataAnnotations; using System.ComponentModel.DataAnnotations; -namespace Test.CSharpExtender.Attributes; +namespace Test.CSharpExtender.DataAnnotations; -public class UniqueItemsAttributeTests +public class Test_UniqueItemsAttribute { private static ValidationContext GetValidationContext(object instance) => new(instance);