mirror of
https://github.com/bitwarden/server.git
synced 2026-02-01 22:53:12 +08:00
18 lines
501 B
C#
18 lines
501 B
C#
|
|
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);
|
|||
|
|
}
|
|||
|
|
}
|