mirror of
https://github.com/bitwarden/server.git
synced 2024-11-25 12:45:18 +01:00
738febf031
* PM-11123: Notification Status Details view * PM-11123: Test Typo * PM-11123: New line missing * PM-11123: Delete unnecessary field * PM-11123: Moved NotificationStatusDetails to Models/Data
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();
|
|
}
|