summaryrefslogtreecommitdiffstats
path: root/tests/Cepis.Tests/Fixtures.cs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Cepis.Tests/Fixtures.cs')
-rw-r--r--tests/Cepis.Tests/Fixtures.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/Cepis.Tests/Fixtures.cs b/tests/Cepis.Tests/Fixtures.cs
index 648f881..a7e69b3 100644
--- a/tests/Cepis.Tests/Fixtures.cs
+++ b/tests/Cepis.Tests/Fixtures.cs
@@ -40,6 +40,30 @@ public static class Fixtures
public const string NotFound =
"""{"erro":"cep_nao_encontrado","mensagem":"CEP não existe na base do DNE"}""";
+ /// <summary>
+ /// The 404 body for a CEP inside a municipality's range. The CEP that draws
+ /// it is 25845000 — the DNE's own start for Areal, and a CEP that was never
+ /// issued.
+ /// </summary>
+ public const string NotFoundWithFaixa = """
+ {"erro":"cep_nao_encontrado","mensagem":"CEP não existe na base do DNE",
+ "faixa":{"localidade":"Areal","uf":"RJ","estado":"Rio de Janeiro",
+ "regiao":"Sudeste","ibge":"3300225","cep_ini":"25845001",
+ "cep_fim":"25849899","ceps":118}}
+ """;
+
+ /// <summary>A 404 whose range block is not even an object.</summary>
+ public const string NotFoundBrokenFaixa = """
+ {"erro":"cep_nao_encontrado","mensagem":"CEP não existe na base do DNE",
+ "faixa":"Areal"}
+ """;
+
+ /// <summary>A 404 whose range block names no municipality.</summary>
+ public const string NotFoundNamelessFaixa = """
+ {"erro":"cep_nao_encontrado","mensagem":"CEP não existe na base do DNE",
+ "faixa":{"uf":"RJ","cep_ini":"25845001","cep_fim":"25849899","ceps":118}}
+ """;
+
/// <summary>The 400 body.</summary>
public const string InvalidCep =
"""{"erro":"cep_invalido","mensagem":"CEP deve ter 8 dígitos"}""";