mirror of
https://github.com/bitwarden/server.git
synced 2024-12-04 14:13:28 +01:00
22 lines
722 B
C#
22 lines
722 B
C#
|
#nullable enable
|
|||
|
using AutoFixture;
|
|||
|
using Bit.Core.NotificationCenter.Models.Data;
|
|||
|
using Bit.Test.Common.AutoFixture.Attributes;
|
|||
|
|
|||
|
namespace Bit.Core.Test.NotificationCenter.AutoFixture;
|
|||
|
|
|||
|
public class NotificationStatusDetailsCustomization : ICustomization
|
|||
|
{
|
|||
|
public void Customize(IFixture fixture)
|
|||
|
{
|
|||
|
fixture.Customize<NotificationStatusDetails>(composer => composer.With(n => n.Id, Guid.NewGuid())
|
|||
|
.With(n => n.UserId, Guid.NewGuid())
|
|||
|
.With(n => n.OrganizationId, Guid.NewGuid()));
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public class NotificationStatusDetailsCustomizeAttribute : BitCustomizeAttribute
|
|||
|
{
|
|||
|
public override ICustomization GetCustomization() => new NotificationStatusDetailsCustomization();
|
|||
|
}
|