From 92c44caa0ccde3b5fda71fc20152fb1f467fafb5 Mon Sep 17 00:00:00 2001 From: Mariusz Schimke Date: Thu, 11 Apr 2024 15:55:11 +0200 Subject: [PATCH] Move SensitiveString to the Text.Privacy.SensitiveString namespace so there is no conflict between the type name and the namespace --- SensitiveString.sln | 12 ++++++------ .../SensitiveEmailConverter.cs | 2 +- .../SensitiveStringComparer.cs | 2 +- .../SensitiveStringConverter.cs | 2 +- .../SensitiveStringExtensions.cs | 2 +- ...ivacy.SensitiveString.EntityFrameworkCore.csproj} | 2 +- .../PersonDto.cs | 2 +- .../Program.cs | 6 +++--- .../Text.Privacy.SensitiveString.Examples.csproj} | 2 +- .../SensitiveStringExtensions.cs | 2 +- ...Text.Privacy.SensitiveString.HotChocolate.csproj} | 2 +- ...CoreOpenApiDocumentGeneratorSettingsExtensions.cs | 2 +- .../Text.Privacy.SensitiveString.Swagger.csproj} | 2 +- .../Json/JsonSerializerOptionsExtensions.cs | 2 +- .../Json/SensitiveEmailJsonConverter.cs | 3 +-- .../Json/SensitiveStringJsonConverter.cs | 3 +-- .../SensitiveEmail.cs | 2 +- .../SensitiveString.Comparability.cs | 2 +- .../SensitiveString.Equality.cs | 2 +- .../SensitiveString.cs | 2 +- .../SensitiveStringExtension.cs | 2 +- .../Text.Privacy.SensitiveString.csproj} | 0 .../GlobalUsings.cs | 0 .../SensitiveEmailTest.cs | 2 +- .../SensitiveStringSerializationTest.cs | 4 ++-- .../SensitiveStringTest.cs | 2 +- .../Text.Privacy.SensitiveString.Tests.csproj} | 2 +- 27 files changed, 33 insertions(+), 35 deletions(-) rename src/{SensitiveString.EntityFrameworkCore => Text.Privacy.SensitiveString.EntityFrameworkCore}/SensitiveEmailConverter.cs (84%) rename src/{SensitiveString.EntityFrameworkCore => Text.Privacy.SensitiveString.EntityFrameworkCore}/SensitiveStringComparer.cs (83%) rename src/{SensitiveString.EntityFrameworkCore => Text.Privacy.SensitiveString.EntityFrameworkCore}/SensitiveStringConverter.cs (84%) rename src/{SensitiveString.EntityFrameworkCore => Text.Privacy.SensitiveString.EntityFrameworkCore}/SensitiveStringExtensions.cs (89%) rename src/{SensitiveString.EntityFrameworkCore/SensitiveString.EntityFrameworkCore.csproj => Text.Privacy.SensitiveString.EntityFrameworkCore/Text.Privacy.SensitiveString.EntityFrameworkCore.csproj} (63%) rename src/{SensitiveString.Examples => Text.Privacy.SensitiveString.Examples}/PersonDto.cs (65%) rename src/{SensitiveString.Examples => Text.Privacy.SensitiveString.Examples}/Program.cs (83%) rename src/{SensitiveString.Examples/SensitiveString.Examples.csproj => Text.Privacy.SensitiveString.Examples/Text.Privacy.SensitiveString.Examples.csproj} (73%) rename src/{SensitiveString.HotChocolate => Text.Privacy.SensitiveString.HotChocolate}/SensitiveStringExtensions.cs (97%) rename src/{SensitiveString.HotChocolate/SensitiveString.HotChocolate.csproj => Text.Privacy.SensitiveString.HotChocolate/Text.Privacy.SensitiveString.HotChocolate.csproj} (66%) rename src/{SensitiveString.Swagger => Text.Privacy.SensitiveString.Swagger}/AspNetCoreOpenApiDocumentGeneratorSettingsExtensions.cs (94%) rename src/{SensitiveString.Swagger/SensitiveString.Swagger.csproj => Text.Privacy.SensitiveString.Swagger/Text.Privacy.SensitiveString.Swagger.csproj} (61%) rename src/{SensitiveString => Text.Privacy.SensitiveString}/Json/JsonSerializerOptionsExtensions.cs (92%) rename src/{SensitiveString => Text.Privacy.SensitiveString}/Json/SensitiveEmailJsonConverter.cs (89%) rename src/{SensitiveString => Text.Privacy.SensitiveString}/Json/SensitiveStringJsonConverter.cs (95%) rename src/{SensitiveString => Text.Privacy.SensitiveString}/SensitiveEmail.cs (97%) rename src/{SensitiveString => Text.Privacy.SensitiveString}/SensitiveString.Comparability.cs (90%) rename src/{SensitiveString => Text.Privacy.SensitiveString}/SensitiveString.Equality.cs (98%) rename src/{SensitiveString => Text.Privacy.SensitiveString}/SensitiveString.cs (98%) rename src/{SensitiveString => Text.Privacy.SensitiveString}/SensitiveStringExtension.cs (94%) rename src/{SensitiveString/SensitiveString.csproj => Text.Privacy.SensitiveString/Text.Privacy.SensitiveString.csproj} (100%) rename test/{SensitiveString.Tests => Text.Privacy.SensitiveString.Tests}/GlobalUsings.cs (100%) rename test/{SensitiveString.Tests => Text.Privacy.SensitiveString.Tests}/SensitiveEmailTest.cs (91%) rename test/{SensitiveString.Tests => Text.Privacy.SensitiveString.Tests}/SensitiveStringSerializationTest.cs (95%) rename test/{SensitiveString.Tests => Text.Privacy.SensitiveString.Tests}/SensitiveStringTest.cs (99%) rename test/{SensitiveString.Tests/SensitiveString.Tests.csproj => Text.Privacy.SensitiveString.Tests/Text.Privacy.SensitiveString.Tests.csproj} (88%) diff --git a/SensitiveString.sln b/SensitiveString.sln index 8bb8cf6..a5395b8 100644 --- a/SensitiveString.sln +++ b/SensitiveString.sln @@ -1,20 +1,20 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SensitiveString", "src\SensitiveString\SensitiveString.csproj", "{BFACD806-7D36-4ED7-8FE1-E7457299A6E3}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Text.Privacy.SensitiveString", "src\Text.Privacy.SensitiveString\Text.Privacy.SensitiveString.csproj", "{BFACD806-7D36-4ED7-8FE1-E7457299A6E3}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SensitiveString.EntityFrameworkCore", "src\SensitiveString.EntityFrameworkCore\SensitiveString.EntityFrameworkCore.csproj", "{39BBD349-62C1-4989-BE0B-52B3A5DFC4C8}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Text.Privacy.SensitiveString.EntityFrameworkCore", "src\Text.Privacy.SensitiveString.EntityFrameworkCore\Text.Privacy.SensitiveString.EntityFrameworkCore.csproj", "{39BBD349-62C1-4989-BE0B-52B3A5DFC4C8}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SensitiveString.HotChocolate", "src\SensitiveString.HotChocolate\SensitiveString.HotChocolate.csproj", "{EA5EA98A-75F8-422F-8858-F9857075584E}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Text.Privacy.SensitiveString.HotChocolate", "src\Text.Privacy.SensitiveString.HotChocolate\Text.Privacy.SensitiveString.HotChocolate.csproj", "{EA5EA98A-75F8-422F-8858-F9857075584E}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SensitiveString.Swagger", "src\SensitiveString.Swagger\SensitiveString.Swagger.csproj", "{C3B8ED7F-E680-4364-B9AE-C12019E782E3}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Text.Privacy.SensitiveString.Swagger", "src\Text.Privacy.SensitiveString.Swagger\Text.Privacy.SensitiveString.Swagger.csproj", "{C3B8ED7F-E680-4364-B9AE-C12019E782E3}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SensitiveString.Tests", "test\SensitiveString.Tests\SensitiveString.Tests.csproj", "{C0B98D42-F2BB-4D5D-A2C2-EA137D9FBF3F}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Text.Privacy.SensitiveString.Tests", "test\Text.Privacy.SensitiveString.Tests\Text.Privacy.SensitiveString.Tests.csproj", "{C0B98D42-F2BB-4D5D-A2C2-EA137D9FBF3F}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{21EB174C-CED8-40DB-AD4E-E3BF9D9D3EC7}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{654EFDB6-8ECD-42CB-A3D6-F7DE361A692B}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SensitiveString.Examples", "src\SensitiveString.Examples\SensitiveString.Examples.csproj", "{BA642BF0-1C73-469C-9902-FDDD301DA73C}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Text.Privacy.SensitiveString.Examples", "src\Text.Privacy.SensitiveString.Examples\Text.Privacy.SensitiveString.Examples.csproj", "{BA642BF0-1C73-469C-9902-FDDD301DA73C}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/src/SensitiveString.EntityFrameworkCore/SensitiveEmailConverter.cs b/src/Text.Privacy.SensitiveString.EntityFrameworkCore/SensitiveEmailConverter.cs similarity index 84% rename from src/SensitiveString.EntityFrameworkCore/SensitiveEmailConverter.cs rename to src/Text.Privacy.SensitiveString.EntityFrameworkCore/SensitiveEmailConverter.cs index e149f03..745871e 100644 --- a/src/SensitiveString.EntityFrameworkCore/SensitiveEmailConverter.cs +++ b/src/Text.Privacy.SensitiveString.EntityFrameworkCore/SensitiveEmailConverter.cs @@ -1,6 +1,6 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -namespace SensitiveString.EntityFrameworkCore; +namespace Text.Privacy.SensitiveString.EntityFrameworkCore; public class SensitiveEmailConverter : ValueConverter { diff --git a/src/SensitiveString.EntityFrameworkCore/SensitiveStringComparer.cs b/src/Text.Privacy.SensitiveString.EntityFrameworkCore/SensitiveStringComparer.cs similarity index 83% rename from src/SensitiveString.EntityFrameworkCore/SensitiveStringComparer.cs rename to src/Text.Privacy.SensitiveString.EntityFrameworkCore/SensitiveStringComparer.cs index 77456b2..84a40cd 100644 --- a/src/SensitiveString.EntityFrameworkCore/SensitiveStringComparer.cs +++ b/src/Text.Privacy.SensitiveString.EntityFrameworkCore/SensitiveStringComparer.cs @@ -1,6 +1,6 @@ using Microsoft.EntityFrameworkCore.ChangeTracking; -namespace SensitiveString.EntityFrameworkCore; +namespace Text.Privacy.SensitiveString.EntityFrameworkCore; public class SensitiveStringComparer : ValueComparer { diff --git a/src/SensitiveString.EntityFrameworkCore/SensitiveStringConverter.cs b/src/Text.Privacy.SensitiveString.EntityFrameworkCore/SensitiveStringConverter.cs similarity index 84% rename from src/SensitiveString.EntityFrameworkCore/SensitiveStringConverter.cs rename to src/Text.Privacy.SensitiveString.EntityFrameworkCore/SensitiveStringConverter.cs index e7b536a..de2b71c 100644 --- a/src/SensitiveString.EntityFrameworkCore/SensitiveStringConverter.cs +++ b/src/Text.Privacy.SensitiveString.EntityFrameworkCore/SensitiveStringConverter.cs @@ -1,6 +1,6 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -namespace SensitiveString.EntityFrameworkCore; +namespace Text.Privacy.SensitiveString.EntityFrameworkCore; public class SensitiveStringConverter : ValueConverter { diff --git a/src/SensitiveString.EntityFrameworkCore/SensitiveStringExtensions.cs b/src/Text.Privacy.SensitiveString.EntityFrameworkCore/SensitiveStringExtensions.cs similarity index 89% rename from src/SensitiveString.EntityFrameworkCore/SensitiveStringExtensions.cs rename to src/Text.Privacy.SensitiveString.EntityFrameworkCore/SensitiveStringExtensions.cs index bb0b3cc..dece34f 100644 --- a/src/SensitiveString.EntityFrameworkCore/SensitiveStringExtensions.cs +++ b/src/Text.Privacy.SensitiveString.EntityFrameworkCore/SensitiveStringExtensions.cs @@ -1,6 +1,6 @@ using Microsoft.EntityFrameworkCore; -namespace SensitiveString.EntityFrameworkCore; +namespace Text.Privacy.SensitiveString.EntityFrameworkCore; public static class SensitiveStringExtensions { diff --git a/src/SensitiveString.EntityFrameworkCore/SensitiveString.EntityFrameworkCore.csproj b/src/Text.Privacy.SensitiveString.EntityFrameworkCore/Text.Privacy.SensitiveString.EntityFrameworkCore.csproj similarity index 63% rename from src/SensitiveString.EntityFrameworkCore/SensitiveString.EntityFrameworkCore.csproj rename to src/Text.Privacy.SensitiveString.EntityFrameworkCore/Text.Privacy.SensitiveString.EntityFrameworkCore.csproj index 52b9fdd..936c99e 100644 --- a/src/SensitiveString.EntityFrameworkCore/SensitiveString.EntityFrameworkCore.csproj +++ b/src/Text.Privacy.SensitiveString.EntityFrameworkCore/Text.Privacy.SensitiveString.EntityFrameworkCore.csproj @@ -5,7 +5,7 @@ - + diff --git a/src/SensitiveString.Examples/PersonDto.cs b/src/Text.Privacy.SensitiveString.Examples/PersonDto.cs similarity index 65% rename from src/SensitiveString.Examples/PersonDto.cs rename to src/Text.Privacy.SensitiveString.Examples/PersonDto.cs index 72e3128..5b1a9bf 100644 --- a/src/SensitiveString.Examples/PersonDto.cs +++ b/src/Text.Privacy.SensitiveString.Examples/PersonDto.cs @@ -1,3 +1,3 @@ -namespace SensitiveString.Examples; +namespace Text.Privacy.SensitiveString.Examples; internal record PersonDto(string Name, SensitiveString PhoneNumber, SensitiveEmail Email); \ No newline at end of file diff --git a/src/SensitiveString.Examples/Program.cs b/src/Text.Privacy.SensitiveString.Examples/Program.cs similarity index 83% rename from src/SensitiveString.Examples/Program.cs rename to src/Text.Privacy.SensitiveString.Examples/Program.cs index 548436a..ae3a139 100644 --- a/src/SensitiveString.Examples/Program.cs +++ b/src/Text.Privacy.SensitiveString.Examples/Program.cs @@ -1,7 +1,7 @@ using System.Text.Json; -using SensitiveString; -using SensitiveString.Examples; -using SensitiveString.Json; +using Text.Privacy.SensitiveString; +using Text.Privacy.SensitiveString.Examples; +using Text.Privacy.SensitiveString.Json; var person = new PersonDto( "John Doe", diff --git a/src/SensitiveString.Examples/SensitiveString.Examples.csproj b/src/Text.Privacy.SensitiveString.Examples/Text.Privacy.SensitiveString.Examples.csproj similarity index 73% rename from src/SensitiveString.Examples/SensitiveString.Examples.csproj rename to src/Text.Privacy.SensitiveString.Examples/Text.Privacy.SensitiveString.Examples.csproj index 8c9e690..377660a 100644 --- a/src/SensitiveString.Examples/SensitiveString.Examples.csproj +++ b/src/Text.Privacy.SensitiveString.Examples/Text.Privacy.SensitiveString.Examples.csproj @@ -8,7 +8,7 @@ - + diff --git a/src/SensitiveString.HotChocolate/SensitiveStringExtensions.cs b/src/Text.Privacy.SensitiveString.HotChocolate/SensitiveStringExtensions.cs similarity index 97% rename from src/SensitiveString.HotChocolate/SensitiveStringExtensions.cs rename to src/Text.Privacy.SensitiveString.HotChocolate/SensitiveStringExtensions.cs index 9bd322a..726abb3 100644 --- a/src/SensitiveString.HotChocolate/SensitiveStringExtensions.cs +++ b/src/Text.Privacy.SensitiveString.HotChocolate/SensitiveStringExtensions.cs @@ -4,7 +4,7 @@ using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; -namespace SensitiveString.HotChocolate; +namespace Text.Privacy.SensitiveString.HotChocolate; public static class SensitiveStringExtensions { diff --git a/src/SensitiveString.HotChocolate/SensitiveString.HotChocolate.csproj b/src/Text.Privacy.SensitiveString.HotChocolate/Text.Privacy.SensitiveString.HotChocolate.csproj similarity index 66% rename from src/SensitiveString.HotChocolate/SensitiveString.HotChocolate.csproj rename to src/Text.Privacy.SensitiveString.HotChocolate/Text.Privacy.SensitiveString.HotChocolate.csproj index e30c4ed..c909de5 100644 --- a/src/SensitiveString.HotChocolate/SensitiveString.HotChocolate.csproj +++ b/src/Text.Privacy.SensitiveString.HotChocolate/Text.Privacy.SensitiveString.HotChocolate.csproj @@ -4,6 +4,6 @@ - + \ No newline at end of file diff --git a/src/SensitiveString.Swagger/AspNetCoreOpenApiDocumentGeneratorSettingsExtensions.cs b/src/Text.Privacy.SensitiveString.Swagger/AspNetCoreOpenApiDocumentGeneratorSettingsExtensions.cs similarity index 94% rename from src/SensitiveString.Swagger/AspNetCoreOpenApiDocumentGeneratorSettingsExtensions.cs rename to src/Text.Privacy.SensitiveString.Swagger/AspNetCoreOpenApiDocumentGeneratorSettingsExtensions.cs index 85e4b4d..187f338 100644 --- a/src/SensitiveString.Swagger/AspNetCoreOpenApiDocumentGeneratorSettingsExtensions.cs +++ b/src/Text.Privacy.SensitiveString.Swagger/AspNetCoreOpenApiDocumentGeneratorSettingsExtensions.cs @@ -2,7 +2,7 @@ using NJsonSchema.Generation.TypeMappers; using NSwag.Generation.AspNetCore; -namespace SensitiveString.Swagger; +namespace Text.Privacy.SensitiveString.Swagger; public static class AspNetCoreOpenApiDocumentGeneratorSettingsExtensions { diff --git a/src/SensitiveString.Swagger/SensitiveString.Swagger.csproj b/src/Text.Privacy.SensitiveString.Swagger/Text.Privacy.SensitiveString.Swagger.csproj similarity index 61% rename from src/SensitiveString.Swagger/SensitiveString.Swagger.csproj rename to src/Text.Privacy.SensitiveString.Swagger/Text.Privacy.SensitiveString.Swagger.csproj index b53a415..bc8e4d6 100644 --- a/src/SensitiveString.Swagger/SensitiveString.Swagger.csproj +++ b/src/Text.Privacy.SensitiveString.Swagger/Text.Privacy.SensitiveString.Swagger.csproj @@ -3,6 +3,6 @@ - + \ No newline at end of file diff --git a/src/SensitiveString/Json/JsonSerializerOptionsExtensions.cs b/src/Text.Privacy.SensitiveString/Json/JsonSerializerOptionsExtensions.cs similarity index 92% rename from src/SensitiveString/Json/JsonSerializerOptionsExtensions.cs rename to src/Text.Privacy.SensitiveString/Json/JsonSerializerOptionsExtensions.cs index 3139401..c01b877 100644 --- a/src/SensitiveString/Json/JsonSerializerOptionsExtensions.cs +++ b/src/Text.Privacy.SensitiveString/Json/JsonSerializerOptionsExtensions.cs @@ -1,6 +1,6 @@ using System.Text.Json; -namespace SensitiveString.Json; +namespace Text.Privacy.SensitiveString.Json; public static class JsonSerializerOptionsExtensions { diff --git a/src/SensitiveString/Json/SensitiveEmailJsonConverter.cs b/src/Text.Privacy.SensitiveString/Json/SensitiveEmailJsonConverter.cs similarity index 89% rename from src/SensitiveString/Json/SensitiveEmailJsonConverter.cs rename to src/Text.Privacy.SensitiveString/Json/SensitiveEmailJsonConverter.cs index 1dffc48..4f07a85 100644 --- a/src/SensitiveString/Json/SensitiveEmailJsonConverter.cs +++ b/src/Text.Privacy.SensitiveString/Json/SensitiveEmailJsonConverter.cs @@ -1,7 +1,6 @@ -using System; using System.Text.Json; -namespace SensitiveString.Json; +namespace Text.Privacy.SensitiveString.Json; /// /// Enables proper JSON conversion of the type. diff --git a/src/SensitiveString/Json/SensitiveStringJsonConverter.cs b/src/Text.Privacy.SensitiveString/Json/SensitiveStringJsonConverter.cs similarity index 95% rename from src/SensitiveString/Json/SensitiveStringJsonConverter.cs rename to src/Text.Privacy.SensitiveString/Json/SensitiveStringJsonConverter.cs index 93749a5..0a6429c 100644 --- a/src/SensitiveString/Json/SensitiveStringJsonConverter.cs +++ b/src/Text.Privacy.SensitiveString/Json/SensitiveStringJsonConverter.cs @@ -1,8 +1,7 @@ -using System; using System.Text.Json; using System.Text.Json.Serialization; -namespace SensitiveString.Json; +namespace Text.Privacy.SensitiveString.Json; public abstract class SensitiveStringJsonConverter : JsonConverter where TSensitiveString : SensitiveString diff --git a/src/SensitiveString/SensitiveEmail.cs b/src/Text.Privacy.SensitiveString/SensitiveEmail.cs similarity index 97% rename from src/SensitiveString/SensitiveEmail.cs rename to src/Text.Privacy.SensitiveString/SensitiveEmail.cs index 464a879..0c604f3 100644 --- a/src/SensitiveString/SensitiveEmail.cs +++ b/src/Text.Privacy.SensitiveString/SensitiveEmail.cs @@ -1,4 +1,4 @@ -namespace SensitiveString; +namespace Text.Privacy.SensitiveString; /// /// Encloses a string value in an object to protect it from being written to logs or serialized unintentionally. Provides custom diff --git a/src/SensitiveString/SensitiveString.Comparability.cs b/src/Text.Privacy.SensitiveString/SensitiveString.Comparability.cs similarity index 90% rename from src/SensitiveString/SensitiveString.Comparability.cs rename to src/Text.Privacy.SensitiveString/SensitiveString.Comparability.cs index a1056f2..6d6eb07 100644 --- a/src/SensitiveString/SensitiveString.Comparability.cs +++ b/src/Text.Privacy.SensitiveString/SensitiveString.Comparability.cs @@ -1,4 +1,4 @@ -namespace SensitiveString; +namespace Text.Privacy.SensitiveString; public partial class SensitiveString : IComparable, IComparable { diff --git a/src/SensitiveString/SensitiveString.Equality.cs b/src/Text.Privacy.SensitiveString/SensitiveString.Equality.cs similarity index 98% rename from src/SensitiveString/SensitiveString.Equality.cs rename to src/Text.Privacy.SensitiveString/SensitiveString.Equality.cs index 6b945c9..ed3f48f 100644 --- a/src/SensitiveString/SensitiveString.Equality.cs +++ b/src/Text.Privacy.SensitiveString/SensitiveString.Equality.cs @@ -1,4 +1,4 @@ -namespace SensitiveString; +namespace Text.Privacy.SensitiveString; public partial class SensitiveString : IEquatable { diff --git a/src/SensitiveString/SensitiveString.cs b/src/Text.Privacy.SensitiveString/SensitiveString.cs similarity index 98% rename from src/SensitiveString/SensitiveString.cs rename to src/Text.Privacy.SensitiveString/SensitiveString.cs index fac80e4..98d5606 100644 --- a/src/SensitiveString/SensitiveString.cs +++ b/src/Text.Privacy.SensitiveString/SensitiveString.cs @@ -1,6 +1,6 @@ using System.Diagnostics.Contracts; -namespace SensitiveString; +namespace Text.Privacy.SensitiveString; /// /// Encloses a string value in an object to protect it from being written to logs or serialized unintentionally. diff --git a/src/SensitiveString/SensitiveStringExtension.cs b/src/Text.Privacy.SensitiveString/SensitiveStringExtension.cs similarity index 94% rename from src/SensitiveString/SensitiveStringExtension.cs rename to src/Text.Privacy.SensitiveString/SensitiveStringExtension.cs index c903d6c..30977ef 100644 --- a/src/SensitiveString/SensitiveStringExtension.cs +++ b/src/Text.Privacy.SensitiveString/SensitiveStringExtension.cs @@ -1,6 +1,6 @@ using System.Diagnostics.Contracts; -namespace SensitiveString; +namespace Text.Privacy.SensitiveString; public static class SensitiveStringExtension { diff --git a/src/SensitiveString/SensitiveString.csproj b/src/Text.Privacy.SensitiveString/Text.Privacy.SensitiveString.csproj similarity index 100% rename from src/SensitiveString/SensitiveString.csproj rename to src/Text.Privacy.SensitiveString/Text.Privacy.SensitiveString.csproj diff --git a/test/SensitiveString.Tests/GlobalUsings.cs b/test/Text.Privacy.SensitiveString.Tests/GlobalUsings.cs similarity index 100% rename from test/SensitiveString.Tests/GlobalUsings.cs rename to test/Text.Privacy.SensitiveString.Tests/GlobalUsings.cs diff --git a/test/SensitiveString.Tests/SensitiveEmailTest.cs b/test/Text.Privacy.SensitiveString.Tests/SensitiveEmailTest.cs similarity index 91% rename from test/SensitiveString.Tests/SensitiveEmailTest.cs rename to test/Text.Privacy.SensitiveString.Tests/SensitiveEmailTest.cs index c526308..bc8f0f5 100644 --- a/test/SensitiveString.Tests/SensitiveEmailTest.cs +++ b/test/Text.Privacy.SensitiveString.Tests/SensitiveEmailTest.cs @@ -1,4 +1,4 @@ -namespace SensitiveString.Tests; +namespace Text.Privacy.SensitiveString.Tests; public class SensitiveEmailTest { diff --git a/test/SensitiveString.Tests/SensitiveStringSerializationTest.cs b/test/Text.Privacy.SensitiveString.Tests/SensitiveStringSerializationTest.cs similarity index 95% rename from test/SensitiveString.Tests/SensitiveStringSerializationTest.cs rename to test/Text.Privacy.SensitiveString.Tests/SensitiveStringSerializationTest.cs index a8348ae..da2ef2d 100644 --- a/test/SensitiveString.Tests/SensitiveStringSerializationTest.cs +++ b/test/Text.Privacy.SensitiveString.Tests/SensitiveStringSerializationTest.cs @@ -1,8 +1,8 @@ -using SensitiveString.Json; +using Text.Privacy.SensitiveString.Json; using MicrosoftSerialization = System.Text.Json; using NewtonsoftSerialization = Newtonsoft.Json; -namespace SensitiveString.Tests; +namespace Text.Privacy.SensitiveString.Tests; public class SensitiveStringSerializationTest { diff --git a/test/SensitiveString.Tests/SensitiveStringTest.cs b/test/Text.Privacy.SensitiveString.Tests/SensitiveStringTest.cs similarity index 99% rename from test/SensitiveString.Tests/SensitiveStringTest.cs rename to test/Text.Privacy.SensitiveString.Tests/SensitiveStringTest.cs index 1c1f97d..4a6a202 100644 --- a/test/SensitiveString.Tests/SensitiveStringTest.cs +++ b/test/Text.Privacy.SensitiveString.Tests/SensitiveStringTest.cs @@ -1,6 +1,6 @@ using System.Reflection; -namespace SensitiveString.Tests; +namespace Text.Privacy.SensitiveString.Tests; public class SensitiveStringTest { diff --git a/test/SensitiveString.Tests/SensitiveString.Tests.csproj b/test/Text.Privacy.SensitiveString.Tests/Text.Privacy.SensitiveString.Tests.csproj similarity index 88% rename from test/SensitiveString.Tests/SensitiveString.Tests.csproj rename to test/Text.Privacy.SensitiveString.Tests/Text.Privacy.SensitiveString.Tests.csproj index b69e1e2..ca19b1d 100644 --- a/test/SensitiveString.Tests/SensitiveString.Tests.csproj +++ b/test/Text.Privacy.SensitiveString.Tests/Text.Privacy.SensitiveString.Tests.csproj @@ -21,7 +21,7 @@ - +