< Summary

Information
Class: ClutterStock.Contracts.Items.ItemResponse
Assembly: Contracts
File(s): /home/runner/work/ClutterStock/ClutterStock/backend/public/Contracts/Items/ItemResponse.cs
Tag: 58_25416222083
Line coverage
100%
Covered lines: 9
Uncovered lines: 0
Coverable lines: 9
Total lines: 20
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%

File(s)

/home/runner/work/ClutterStock/ClutterStock/backend/public/Contracts/Items/ItemResponse.cs

#LineLine coverage
 1namespace ClutterStock.Contracts.Items;
 2
 3/// <summary>Response payload for an item.</summary>
 4/// <param name="Id" example="1">Unique identifier of the item.</param>
 5/// <param name="RoomId" example="1">Id of the room this item belongs to.</param>
 6/// <param name="Name" example="Vintage Lamp">Display name of the item.</param>
 7/// <param name="Description" example="Brass table lamp, 1980s">Optional longer description.</param>
 8/// <param name="Category" example="Electronics">Optional category (e.g. Electronics, Furniture).</param>
 9/// <param name="Notes" example="Needs new shade">Optional free-form notes.</param>
 10/// <param name="CreatedAtUtc" example="2024-01-15T10:30:00Z">UTC timestamp when the item was created.</param>
 11/// <param name="UpdatedAtUtc" example="2024-02-01T14:00:00Z">UTC timestamp when the item was last updated.</param>
 1112public record ItemResponse(
 1113    int Id,
 1114    int RoomId,
 1115    string Name,
 1116    string? Description,
 1117    string? Category,
 1118    string? Notes,
 1119    DateTimeOffset CreatedAtUtc,
 1120    DateTimeOffset? UpdatedAtUtc);