mirror of
https://github.com/bitwarden/android.git
synced 2024-11-01 15:45:42 +03:00
17 lines
432 B
C#
17 lines
432 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));
|
||
|
}
|
||
|
}
|
||
|
}
|