- WHY: establish Stage 3 task-001 execution baseline per repo intent - WHAT: add minimal solution/project skeleton and boundary docs - RULE: apply stage3 execution runtime and repository workflow directives
27 lines
788 B
C#
27 lines
788 B
C#
using BuildingBlock.Catalog.Contracts.Products;
|
|
using BuildingBlock.Catalog.Contracts.Tags;
|
|
|
|
namespace BuildingBlock.Catalog.Contracts.UnitTests;
|
|
|
|
public class ContractShapeTests
|
|
{
|
|
[Fact]
|
|
public void ProductContract_WhenCreated_StoresRequiredValues()
|
|
{
|
|
var contract = new ProductContract("PRD-001", "Chair");
|
|
|
|
Assert.Equal("PRD-001", contract.ProductId);
|
|
Assert.Equal("Chair", contract.DisplayName);
|
|
}
|
|
|
|
[Fact]
|
|
public void TagOverrideContract_WhenCreated_StoresRequiredValues()
|
|
{
|
|
var contract = new TagOverrideContract("TAG-001", "furniture", "featured");
|
|
|
|
Assert.Equal("TAG-001", contract.TagId);
|
|
Assert.Equal("furniture", contract.TargetScope);
|
|
Assert.Equal("featured", contract.OverrideValue);
|
|
}
|
|
}
|