bitwarden-android/test/Core.Test/AutoFixture/Domain/SymmetricCryptoKeyCustomization.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
435 B
C#
Raw Normal View History

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));
}
}
}