Class MockCrudRouteInfo

Namespace
Kuestenlogik.Bowire.Mock.State
Assembly
Kuestenlogik.Bowire.Mock.dll

A CRUD route as the mock's admin surface shows it (#1100).

public sealed record MockCrudRouteInfo : IEquatable<MockCrudRouteInfo>
Inheritance
MockCrudRouteInfo
Implements
Inherited Members

Constructors

MockCrudRouteInfo(string, string, bool)

A CRUD route as the mock's admin surface shows it (#1100).

public MockCrudRouteInfo(string Path, string Bucket, bool Enabled)

Parameters

Path string

The collection path the route answers on.

Bucket string

The bucket it reads and writes.

Enabled bool

False while the route is switched off: its requests go on to the recording or schema as if it did not exist.

Properties

Bucket

The bucket it reads and writes.

public string Bucket { get; init; }

Property Value

string

Enabled

False while the route is switched off: its requests go on to the recording or schema as if it did not exist.

public bool Enabled { get; init; }

Property Value

bool

Path

The collection path the route answers on.

public string Path { get; init; }

Property Value

string

Methods

Deconstruct(out string, out string, out bool)

public void Deconstruct(out string Path, out string Bucket, out bool Enabled)

Parameters

Path string
Bucket string
Enabled bool

Equals(MockCrudRouteInfo?)

public bool Equals(MockCrudRouteInfo? other)

Parameters

other MockCrudRouteInfo

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(MockCrudRouteInfo?, MockCrudRouteInfo?)

public static bool operator ==(MockCrudRouteInfo? left, MockCrudRouteInfo? right)

Parameters

left MockCrudRouteInfo
right MockCrudRouteInfo

Returns

bool

operator !=(MockCrudRouteInfo?, MockCrudRouteInfo?)

public static bool operator !=(MockCrudRouteInfo? left, MockCrudRouteInfo? right)

Parameters

left MockCrudRouteInfo
right MockCrudRouteInfo

Returns

bool