mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +01:00
f3f81deb98
* PM-11123: Service layer * PM-11123: Service layer for Notification Center * PM-11123: Throw error on unsupported requirement * PM-11123: Missing await * PM-11123: Cleanup * PM-11123: Unit Test coverage * PM-11123: Flipping the authorization logic to be exact match of fail, formatting * PM-11123: Async warning * PM-11123: Using AuthorizeOrThrowAsync, removal of redundant set new id * PM-11123: UT typo * PM-11123: UT fix
20 lines
633 B
C#
20 lines
633 B
C#
using AutoFixture;
|
|
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();
|
|
}
|