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
KindstringSchema kind —
"openapi"/"protobuf"/"graphql".PathstringOptional 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
Path
Optional schema-source path or URL the config was authored against.
[JsonPropertyName("path")]
public string? Path { get; init; }
Property Value
Methods
Deconstruct(out string, out string?)
public void Deconstruct(out string Kind, out string? Path)
Parameters
Equals(MockConfigSource?)
public bool Equals(MockConfigSource? other)
Parameters
otherMockConfigSource
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 ==(MockConfigSource?, MockConfigSource?)
public static bool operator ==(MockConfigSource? left, MockConfigSource? right)
Parameters
leftMockConfigSourcerightMockConfigSource
Returns
operator !=(MockConfigSource?, MockConfigSource?)
public static bool operator !=(MockConfigSource? left, MockConfigSource? right)
Parameters
leftMockConfigSourcerightMockConfigSource