public async Task ThenAGetLegalEntityQueryShouldBeSent() { await _controller.GetLegalEntity(_accountHashedId, _legalEntityId); _mediator.Verify( m => m.SendAsync( It.Is <GetLegalEntityQuery>( q => q.AccountHashedId.Equals(_accountHashedId) && q.LegalEntityId.Equals(_legalEntityId) && q.IncludeAllAgreements.Equals(false))), Times.Once); }
public async Task ThenAGetLegalEntityQueryhouldBeSent() { await _controller.GetLegalEntity(_query); _mediator.Verify(m => m.SendAsync(_query), Times.Once); }