// Copyright © WireMock.Net using AwesomeAssertions.Primitives; using WireMock.Server; // ReSharper disable once CheckNamespace namespace WireMock.AwesomeAssertions; /// /// Contains a number of methods to assert that the is in the expected state. /// public class WireMockReceivedAssertions : ReferenceTypeAssertions { private readonly AssertionChain _chain; /// /// Create a WireMockReceivedAssertions. /// /// The . /// The assertion chain public WireMockReceivedAssertions(IWireMockServer server, AssertionChain chain) : base(server, chain) { _chain = chain; } /// /// Asserts if has received no calls. /// /// public WireMockAssertions HaveReceivedNoCalls() { return new WireMockAssertions(Subject, 0, _chain); } /// /// Asserts if has received a call. /// /// public WireMockAssertions HaveReceivedACall() { return new WireMockAssertions(Subject, null, _chain); } /// /// Asserts if has received n-calls. /// /// /// public WireMockANumberOfCallsAssertions HaveReceived(int callsCount) { return new WireMockANumberOfCallsAssertions(Subject, callsCount, _chain); } /// protected override string Identifier => "wiremockserver"; }