All checks were successful
Build and Deploy / deploy (push) Successful in 1m2s
Co-authored-by: Cursor <cursoragent@cursor.com>
26 lines
664 B
C#
26 lines
664 B
C#
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");
|
|
}
|
|
}
|