2024-10-03 22:13:43 +02:00
|
|
|
|
#nullable enable
|
|
|
|
|
using AutoFixture;
|
2024-10-02 19:23:19 +02:00
|
|
|
|
using Bit.Core.NotificationCenter.Entities;
|
|
|
|
|
using Bit.Test.Common.AutoFixture.Attributes;
|
|
|
|
|
|
|
|
|
|
namespace Bit.Core.Test.NotificationCenter.AutoFixture;
|
|
|
|
|
|
|
|
|
|
public class NotificationStatusCustomization : ICustomization
|
|
|
|
|
{
|
|
|
|
|
public void Customize(IFixture fixture)
|
|
|
|
|
{
|
|
|
|
|
fixture.Customize<NotificationStatus>(composer => composer.With(ns => ns.NotificationId, Guid.NewGuid())
|
|
|
|
|
.With(ns => ns.UserId, Guid.NewGuid()));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class NotificationStatusCustomizeAttribute : BitCustomizeAttribute
|
|
|
|
|
{
|
|
|
|
|
public override ICustomization GetCustomization() => new NotificationStatusCustomization();
|
|
|
|
|
}
|