tests: add integration tests

- refactored to use temp directory helper class
- consolidated test key generation to helper class
This commit is contained in:
Stevan Freeborn
2026-04-02 20:31:06 -05:00
parent 5568793a8e
commit a8b2ec0784
7 changed files with 627 additions and 138 deletions
@@ -0,0 +1,13 @@
using System.Security.Cryptography;
namespace StevanFreeborn.Extensions.Configuration.Secure.Tests.Common;
internal static class KeyGenerator
{
public static string GetValidBase64Key()
{
var key = new byte[32];
RandomNumberGenerator.Fill(key);
return Convert.ToBase64String(key);
}
}