Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move SensitiveString to the Text.Privacy.SensitiveString namespace so… #10

Merged
merged 1 commit into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions SensitiveString.sln
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;

namespace SensitiveString.EntityFrameworkCore;
namespace Text.Privacy.SensitiveString.EntityFrameworkCore;

public class SensitiveEmailConverter : ValueConverter<SensitiveEmail, string>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.EntityFrameworkCore.ChangeTracking;

namespace SensitiveString.EntityFrameworkCore;
namespace Text.Privacy.SensitiveString.EntityFrameworkCore;

public class SensitiveStringComparer : ValueComparer<SensitiveString>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;

namespace SensitiveString.EntityFrameworkCore;
namespace Text.Privacy.SensitiveString.EntityFrameworkCore;

public class SensitiveStringConverter : ValueConverter<SensitiveString, string>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.EntityFrameworkCore;

namespace SensitiveString.EntityFrameworkCore;
namespace Text.Privacy.SensitiveString.EntityFrameworkCore;

public static class SensitiveStringExtensions
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\SensitiveString\SensitiveString.csproj" />
<ProjectReference Include="..\Text.Privacy.SensitiveString\Text.Privacy.SensitiveString.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
namespace SensitiveString.Examples;
namespace Text.Privacy.SensitiveString.Examples;

internal record PersonDto(string Name, SensitiveString PhoneNumber, SensitiveEmail Email);
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\SensitiveString\SensitiveString.csproj" />
<ProjectReference Include="..\Text.Privacy.SensitiveString\Text.Privacy.SensitiveString.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using HotChocolate.Types;
using Microsoft.Extensions.DependencyInjection;

namespace SensitiveString.HotChocolate;
namespace Text.Privacy.SensitiveString.HotChocolate;

public static class SensitiveStringExtensions
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
<PackageReference Include="HotChocolate.Data" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\SensitiveString\SensitiveString.csproj" />
<ProjectReference Include="..\Text.Privacy.SensitiveString\Text.Privacy.SensitiveString.csproj" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using NJsonSchema.Generation.TypeMappers;
using NSwag.Generation.AspNetCore;

namespace SensitiveString.Swagger;
namespace Text.Privacy.SensitiveString.Swagger;

public static class AspNetCoreOpenApiDocumentGeneratorSettingsExtensions
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
<PackageReference Include="NSwag.Generation.AspNetCore" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\SensitiveString\SensitiveString.csproj" />
<ProjectReference Include="..\Text.Privacy.SensitiveString\Text.Privacy.SensitiveString.csproj" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Text.Json;

namespace SensitiveString.Json;
namespace Text.Privacy.SensitiveString.Json;

public static class JsonSerializerOptionsExtensions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Text.Json;

namespace SensitiveString.Json;
namespace Text.Privacy.SensitiveString.Json;

/// <summary>
/// Enables proper JSON conversion of the <see cref="SensitiveString" /> type.
Expand Down
Original file line number Diff line number Diff line change
@@ -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<TSensitiveString> : JsonConverter<TSensitiveString>
where TSensitiveString : SensitiveString
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace SensitiveString;
namespace Text.Privacy.SensitiveString;

/// <summary>
/// Encloses a string value in an object to protect it from being written to logs or serialized unintentionally. Provides custom
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace SensitiveString;
namespace Text.Privacy.SensitiveString;

public partial class SensitiveString : IComparable<SensitiveString>, IComparable
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace SensitiveString;
namespace Text.Privacy.SensitiveString;

public partial class SensitiveString : IEquatable<SensitiveString>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Diagnostics.Contracts;

namespace SensitiveString;
namespace Text.Privacy.SensitiveString;

/// <summary>
/// Encloses a string value in an object to protect it from being written to logs or serialized unintentionally.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Diagnostics.Contracts;

namespace SensitiveString;
namespace Text.Privacy.SensitiveString;

public static class SensitiveStringExtension
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace SensitiveString.Tests;
namespace Text.Privacy.SensitiveString.Tests;

public class SensitiveEmailTest
{
Expand Down
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Reflection;

namespace SensitiveString.Tests;
namespace Text.Privacy.SensitiveString.Tests;

public class SensitiveStringTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\SensitiveString\SensitiveString.csproj" />
<ProjectReference Include="..\..\src\Text.Privacy.SensitiveString\Text.Privacy.SensitiveString.csproj" />
</ItemGroup>

</Project>
Loading