1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-11 15:17:44 +01:00
bitwarden-server/test/Api.Test/AutoFixture/Attributes/ControllerCustomizeAttribute.cs

18 lines
498 B
C#
Raw Normal View History

2021-10-30 00:43:45 +02:00
using System;
using AutoFixture;
using Bit.Test.Common.AutoFixture.Attributes;
namespace Bit.Api.Test.AutoFixture.Attributes
{
public class ControllerCustomizeAttribute : BitCustomizeAttribute
{
private readonly Type _controllerType;
public ControllerCustomizeAttribute(Type controllerType)
{
_controllerType = controllerType;
}
public override ICustomization GetCustomization() => new ControllerCustomization(_controllerType);
}
}