using System; using System.Collections.Generic; using System.Linq; namespace BoundaryLab.Domain; public sealed class Order { public int Units { get; } public Order(int units) { if (units < 1) throw new ArgumentOutOfRangeException(nameof(units)); Units = units; } public int Total(int rate) => checked(Units * rate); }