using System.Collections.Generic;
public static void Main()
var shifts = new AutoFaker<Plan>()
.RuleFor(x => x.Date, new DateOnly(2025, 03, 1))
.RuleFor(x => x.StartTime, TimeOnly.FromDateTime(DateTime.Now))
.RuleFor(x => x.EndTime, TimeOnly.FromDateTime(DateTime.Now))
var worker = new AutoFaker<Employee>()
.RuleFor(a => a.Plans, shifts)
public DateOnly Date { get; set; }
public TimeOnly StartTime { get; set; }
public TimeOnly EndTime { get; set; }
public Guid EmployeeId { get; set; }
public ICollection<Plan>? Plans { get; set; }