namespace SantaClausInc.Core; /// /// Represents information about a child as managed by Santa /// /// Name of the child /// Age of the child /// City in which the child lives /// Citywide unique ID of the house the child lives in /// Good or naughty factor of the child public record ChildInfo(string Name, int Age, string City, int HouseId, double GoodOrNaughty); /// /// Represents a present for a child /// /// Child who will receive the present /// Description of the contained toy public record Parcel(ChildInfo ForChild, string Description) { /// /// Creates a string representation of this containing information about /// the child for which it is meant and the content /// /// A string representation of the present public override string ToString() => $"{Description} for {ForChild.Name} (age {ForChild.Age})"; }