1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-07 09:20:04 +01:00
bitwarden-mobile/test/Core.Test/AutoFixture/Domain/SymmetricCryptoKeyCustomization.cs
2022-04-26 17:21:17 +02:00

17 lines
435 B
C#

using System;
using AutoFixture;
using Bit.Core.Models.Domain;
using Bit.Core.Services;
namespace Bit.Core.Test.AutoFixture
{
public class SymmetricCryptoKeyCustomization : ICustomization
{
public void Customize(IFixture fixture)
{
var keyMaterial = (new PclCryptoFunctionService(null)).RandomBytes(32);
fixture.Register(() => new SymmetricCryptoKey(keyMaterial));
}
}
}