Class MockDataBucket
- Namespace
- Kuestenlogik.Bowire.Mocking
- Assembly
- Kuestenlogik.Bowire.dll
A named piece of JSON the mock holds (#1096): an array of records, or a single object. Requests through a MockCrudRoute change it.
public sealed class MockDataBucket
- Inheritance
-
MockDataBucket
- Inherited Members
Constructors
MockDataBucket()
public MockDataBucket()
Properties
Data
What it holds at start: a JSON array of records, or a JSON object. Absent means an empty array.
[JsonPropertyName("data")]
public JsonElement? Data { get; set; }
Property Value
IdProperty
The property that identifies a record in an array bucket (default id).
[JsonPropertyName("idProperty")]
public string? IdProperty { get; set; }
Property Value
Name
The name routes refer to it by.
[JsonPropertyName("name")]
public string Name { get; set; }