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