- 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
25 lines
683 B
C#
25 lines
683 B
C#
using BuildingBlock.Inventory.Contracts.Requests;
|
|
using BuildingBlock.Inventory.Contracts.Responses;
|
|
|
|
namespace BuildingBlock.Inventory.Contracts.UnitTests;
|
|
|
|
public class ContractShapeTests
|
|
{
|
|
[Fact]
|
|
public void InventoryItemLookupRequest_WhenCreated_StoresItemCode()
|
|
{
|
|
var request = new InventoryItemLookupRequest("SKU-001");
|
|
|
|
Assert.Equal("SKU-001", request.ItemCode);
|
|
}
|
|
|
|
[Fact]
|
|
public void InventoryItemLookupResponse_WhenCreated_StoresContractData()
|
|
{
|
|
var response = new InventoryItemLookupResponse("SKU-001", 5);
|
|
|
|
Assert.Equal("SKU-001", response.ItemCode);
|
|
Assert.Equal(5, response.QuantityAvailable);
|
|
}
|
|
}
|