feat(inventory): add Source to InventoryLoadConfig

Adds a `GrantSource Source { get; set; }` property (defaults to
`GrantSource.Unknown`) to `InventoryLoadConfig`. Plumbing-only — no
behavior change; callers that don't set `Source` get Unknown rows,
greppable via `acquire_type=0` in dev.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
gamer147
2026-06-09 14:13:56 -04:00
parent 645c32e11c
commit 82dc877639
2 changed files with 26 additions and 0 deletions

View File

@@ -23,4 +23,18 @@ public class InventoryHistoryTests
$"GrantSource.{source} has no message defined.");
}
}
[Test]
public void InventoryLoadConfig_Source_defaults_to_Unknown()
{
var cfg = new InventoryLoadConfig();
Assert.That(cfg.Source, Is.EqualTo(GrantSource.Unknown));
}
[Test]
public void InventoryLoadConfig_Source_is_assignable()
{
var cfg = new InventoryLoadConfig { Source = GrantSource.PackOpen };
Assert.That(cfg.Source, Is.EqualTo(GrantSource.PackOpen));
}
}