Class MockConfigSource

Namespace
Kuestenlogik.Bowire.Mocking
Assembly
Kuestenlogik.Bowire.dll

Which schema source a MockConfiguration refines — carried so the workbench can show "config for <kind> mock at <path>" and detect a mismatched attach. Diagnostic only; the applier does not read it.

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

Constructors

MockConfigSource(string, string?)

Which schema source a MockConfiguration refines — carried so the workbench can show "config for <kind> mock at <path>" and detect a mismatched attach. Diagnostic only; the applier does not read it.

public MockConfigSource(string Kind, string? Path = null)

Parameters

Kind string

Schema kind — "openapi" / "protobuf" / "graphql".

Path string

Optional schema-source path or URL the config was authored against.

Properties

Kind

Schema kind — "openapi" / "protobuf" / "graphql".

[JsonPropertyName("kind")]
public string Kind { get; init; }

Property Value

string

Path

Optional schema-source path or URL the config was authored against.

[JsonPropertyName("path")]
public string? Path { get; init; }

Property Value

string

Methods

Deconstruct(out string, out string?)

public void Deconstruct(out string Kind, out string? Path)

Parameters

Kind string
Path string

Equals(MockConfigSource?)

public bool Equals(MockConfigSource? other)

Parameters

other MockConfigSource

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 ==(MockConfigSource?, MockConfigSource?)

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

Parameters

left MockConfigSource
right MockConfigSource

Returns

bool

operator !=(MockConfigSource?, MockConfigSource?)

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

Parameters

left MockConfigSource
right MockConfigSource

Returns

bool