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:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user