using System; using System.Collections.Generic; using System.Linq; using BoundaryLab.Domain; using BoundaryLab.Application; namespace BoundaryLab.Infrastructure; public sealed class LabelStore : ILabelWrite, ILabelRead { private readonly Dictionary labels = new(StringComparer.Ordinal); public void Save(Label label) => labels[label.Code] = label; public Label? Find(string code) => labels.TryGetValue(code, out var label) ? label : null; }