mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-21 03:27:58 +08:00
16 lines
404 B
C#
16 lines
404 B
C#
using AutoBogus;
|
|
using BuildingBlocks.Contracts.EventBus.Messages;
|
|
using BuildingBlocks.IdsGenerator;
|
|
|
|
namespace Integration.Test.Fakes;
|
|
|
|
public class FakeUserCreated : AutoFaker<UserCreated>
|
|
{
|
|
public FakeUserCreated()
|
|
{
|
|
RuleFor(r => r.Id, _ => SnowflakeIdGenerator.NewId());
|
|
RuleFor(r => r.Name, _ => "Sam");
|
|
RuleFor(r => r.PassportNumber, _ => "123456789");
|
|
}
|
|
}
|