tests: add integration tests
- refactored to use temp directory helper class - consolidated test key generation to helper class
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user