NEO-147: use class-level grid faction id in generator tests

pull/188/head
VinPropane 2026-06-27 19:18:23 -04:00
parent 44f4e4c3ce
commit c37c3c76a3
1 changed files with 2 additions and 5 deletions

View File

@ -3,7 +3,6 @@ using Microsoft.Extensions.Options;
using NeonSprawl.Server.Game.Contracts;
using NeonSprawl.Server.Game.Factions;
using NeonSprawl.Server.Game.PositionState;
using NeonSprawl.Server.Game.Quests;
using NeonSprawl.Server.Tests;
using Xunit;
@ -15,6 +14,7 @@ public sealed class ContractGeneratorOperationsTests
private const string UnknownPlayerId = "unknown-player-xyz";
private const string TemplateId = "prototype_contract_clear_combat_pocket";
private const string EncounterId = "prototype_combat_pocket";
private const string GridOperatorsFactionId = "prototype_faction_grid_operators";
private const string SeedBucket = "2026-06-22";
private const string AlternateSeedBucket = "2026-06-23";
private static readonly DateTimeOffset IssuedAt = new(2026, 6, 22, 10, 0, 0, TimeSpan.Zero);
@ -225,12 +225,9 @@ public sealed class ContractGeneratorOperationsTests
private static InMemoryFactionStandingStore CreateStandingStore()
{
const string gridFactionId = PrototypeE7M3QuestFactionRules.GridContractGateFactionId;
const string rustFactionId = "prototype_faction_rust_collective";
var byId = new Dictionary<string, FactionDefRow>(StringComparer.Ordinal)
{
[gridFactionId] = PrototypeE7M3FactionCatalogRules.ExpectedFactionFreeze[gridFactionId],
[rustFactionId] = PrototypeE7M3FactionCatalogRules.ExpectedFactionFreeze[rustFactionId],
[GridOperatorsFactionId] = PrototypeE7M3FactionCatalogRules.ExpectedFactionFreeze[GridOperatorsFactionId],
};
var catalog = new FactionDefinitionCatalog("/tmp/catalog", byId, catalogJsonFileCount: 1);
var registry = new FactionDefinitionRegistry(catalog);