public static Goal LoadTestData( this Goal goal, Guid realmRefId, Awards awards ) { var rnd = new Random(); var simpleName = $"Goal [{Guid.NewGuid()}]"; goal.ExpireOn = DateTimeOffset.UtcNow.AddDays(rnd.Next(10, 100)); goal.RealmRefId = realmRefId; goal.SimpleName = simpleName; goal.Awards = awards.Select(e => new AwardRule() { AwardRefId = e.EntityRefId }).ToList(); return(goal); }