using FluentAssertions; using Oms.Application.Shared; namespace Oms.Tests; public class KpiAreaSnapshotMapperTests { [Fact] public void BuildPostcodeRange_ShouldEncodeClosedRange() { KpiAreaSnapshotMapper.BuildPostcodeRange("00000", "50000").Should().Be("[00000,50000]"); } [Fact] public void BuildPostcodeRange_EqualBounds_ShouldEncodeExact() { KpiAreaSnapshotMapper.BuildPostcodeRange("90001", "90001").Should().Be("exact:90001"); } [Fact] public void BuildPostcodeRange_LeftOnly_ShouldEncodePrefix() { KpiAreaSnapshotMapper.BuildPostcodeRange("90", null).Should().Be("prefix:90"); } }