mirror of
https://github.com/bitwarden/server.git
synced 2024-11-25 12:45:18 +01:00
69c2673f1f
* Write GroupService tests * Rewrite with AutoFixture, improve tests * Resolve PR comments * Rename OrganizationCustomization Co-authored-by: Matt Gibson <mgibson@bitwarden.com>
20 lines
662 B
C#
20 lines
662 B
C#
using Bit.Core.Test.AutoFixture.Attributes;
|
|
using Bit.Core.Test.AutoFixture.OrganizationFixtures;
|
|
|
|
namespace Bit.Core.Test.AutoFixture
|
|
{
|
|
internal class GroupOrganizationAutoDataAttribute : CustomAutoDataAttribute
|
|
{
|
|
public GroupOrganizationAutoDataAttribute() : base(
|
|
new SutProviderCustomization(), new Organization { UseGroups = true })
|
|
{ }
|
|
}
|
|
|
|
internal class GroupOrganizationNotUseGroupsAutoDataAttribute : CustomAutoDataAttribute
|
|
{
|
|
public GroupOrganizationNotUseGroupsAutoDataAttribute() : base(
|
|
new SutProviderCustomization(), new Organization { UseGroups = false })
|
|
{ }
|
|
}
|
|
}
|