using System; using System.Collections.Generic; using System.Linq; namespace BoundaryLab.Domain; public sealed class Counter { public int Value { get; private set; } public void Add(int units) { if (units < 1) throw new ArgumentOutOfRangeException(nameof(units)); Value = checked(Value + units); } }