using AutoFixture; using Bit.Core.Entities; using Bit.Test.Common.AutoFixture.Attributes; namespace Bit.Core.Test.AutoFixture.SendFixtures; internal class UserSend : ICustomization { public Guid? UserId { get; set; } public void Customize(IFixture fixture) { fixture.Customize(composer => composer .With(s => s.UserId, UserId ?? Guid.NewGuid()) .Without(s => s.OrganizationId)); } } internal class UserSendCustomizeAttribute : BitCustomizeAttribute { public override ICustomization GetCustomization() => new UserSend(); }