3 instantiations of OrderItem
Microsoft.AspNetCore.Http.Abstractions.Tests (3)
Validation\ValidatableTypeInfoTests.cs (3)
218new OrderItem { ProductName = "Valid Product", Quantity = 5 }, 219new OrderItem { /* Missing ProductName (required) */ Quantity = 0 /* Invalid quantity */ }, 220new OrderItem { ProductName = "Another Product", Quantity = 200 /* Invalid quantity */ }
6 references to OrderItem
Microsoft.AspNetCore.Http.Abstractions.Tests (6)
Validation\ValidatableTypeInfoTests.cs (6)
187typeof(OrderItem), 189CreatePropertyInfo(typeof(OrderItem), typeof(string), "ProductName", "ProductName", 191CreatePropertyInfo(typeof(OrderItem), typeof(int), "Quantity", "Quantity", 200CreatePropertyInfo(typeof(Order), typeof(List<OrderItem>), "Items", "Items", 208{ typeof(OrderItem), itemType }, 556public List<OrderItem> Items { get; set; } = [];