using System; using System.Linq; namespace Implab.ServiceHost.Test.Mock { public class SetOfBoxes { public Guid Uuid { get; set; } public IBox[] Boxes { get; set; } public void BoxValues(T[] items) { if (items == null || items.Length == 0) return; Boxes = items.Select(x => new Box {Value = x}).ToArray(); } } }