Class MockBucketInfo
- Namespace
- Kuestenlogik.Bowire.Mock.State
- Assembly
- Kuestenlogik.Bowire.Mock.dll
A bucket as the mock's admin surface shows it (#1100).
public sealed record MockBucketInfo : IEquatable<MockBucketInfo>
- Inheritance
-
MockBucketInfo
- Implements
- Inherited Members
Constructors
MockBucketInfo(string, string, string, int)
A bucket as the mock's admin surface shows it (#1100).
public MockBucketInfo(string Name, string IdProperty, string Kind, int Count)
Parameters
NamestringThe bucket's name in the configuration.
IdPropertystringThe field that identifies a record.
KindstringArrayKind for a bucket of records, ObjectKind for one object.
CountintRecords in an array bucket, properties in an object bucket, as it is now.
Fields
ArrayKind
A bucket of records.
public const string ArrayKind = "array"
Field Value
ObjectKind
A bucket that is one object.
public const string ObjectKind = "object"
Field Value
Properties
Count
Records in an array bucket, properties in an object bucket, as it is now.
public int Count { get; init; }
Property Value
IdProperty
The field that identifies a record.
public string IdProperty { get; init; }
Property Value
Kind
ArrayKind for a bucket of records, ObjectKind for one object.
public string Kind { get; init; }
Property Value
Name
The bucket's name in the configuration.
public string Name { get; init; }
Property Value
Methods
Deconstruct(out string, out string, out string, out int)
public void Deconstruct(out string Name, out string IdProperty, out string Kind, out int Count)
Parameters
Equals(MockBucketInfo?)
public bool Equals(MockBucketInfo? other)
Parameters
otherMockBucketInfo
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(MockBucketInfo?, MockBucketInfo?)
public static bool operator ==(MockBucketInfo? left, MockBucketInfo? right)
Parameters
leftMockBucketInforightMockBucketInfo
Returns
operator !=(MockBucketInfo?, MockBucketInfo?)
public static bool operator !=(MockBucketInfo? left, MockBucketInfo? right)
Parameters
leftMockBucketInforightMockBucketInfo