Class DataProtectionServiceExtensionsTests
- Namespace
- ProjectTemplate.Web.Tests
- Assembly
- ProjectTemplate.Web.Tests.dll
public sealed class DataProtectionServiceExtensionsTests
- Inheritance
-
DataProtectionServiceExtensionsTests
- Inherited Members
-
Methods
BlankRequiredSetting_ThrowsInvalidOperationException(string)
[Theory("/home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/tests/ProjectTemplate.Web.Tests/DataProtectionServiceExtensionsTests.cs", 69)]
[InlineData(new object?[] { "ProjectTemplate:DataProtection:ApplicationName" })]
[InlineData(new object?[] { "ProjectTemplate:DataProtection:KeyRingPath" })]
public void BlankRequiredSetting_ThrowsInvalidOperationException(string settingName)
Parameters
settingName string
DifferentApplicationName_IsolatesProtectedPayloads()
[Fact("/home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/tests/ProjectTemplate.Web.Tests/DataProtectionServiceExtensionsTests.cs", 43)]
public void DifferentApplicationName_IsolatesProtectedPayloads()
KeyEncryptionCertificatePasswordWithoutPath_ThrowsOptionsValidationException()
[Fact("/home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/tests/ProjectTemplate.Web.Tests/DataProtectionServiceExtensionsTests.cs", 165)]
public void KeyEncryptionCertificatePasswordWithoutPath_ThrowsOptionsValidationException()
KeyEncryptionCertificate_EncryptsKeyRingAndAllowsCrossInstanceRoundTrip()
[Fact("/home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/tests/ProjectTemplate.Web.Tests/DataProtectionServiceExtensionsTests.cs", 98)]
public void KeyEncryptionCertificate_EncryptsKeyRingAndAllowsCrossInstanceRoundTrip()
KeyEncryptionCertificate_MissingFile_ThrowsInvalidOperationException()
[Fact("/home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/tests/ProjectTemplate.Web.Tests/DataProtectionServiceExtensionsTests.cs", 141)]
public void KeyEncryptionCertificate_MissingFile_ThrowsInvalidOperationException()
SharedKeyRingAndApplicationName_AllowCrossInstancePayloadRoundTrip()
[Fact("/home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/tests/ProjectTemplate.Web.Tests/DataProtectionServiceExtensionsTests.cs", 16)]
public void SharedKeyRingAndApplicationName_AllowCrossInstancePayloadRoundTrip()