public async Task Then_Gets_Validity_From_Mediator(
            long senderId,
            long receiverId,
            int?pledgeApplicationId,
            GetTransferValidityQueryResult mediatorResult,
            [Frozen] Mock <IMediator> mockMediator,
            [Greedy] TransfersController controller)
        {
            mockMediator
            .Setup(mediator => mediator.Send(
                       It.Is <GetTransferValidityQuery>(query =>
                                                        query.SenderId == senderId && query.ReceiverId == receiverId && query.PledgeApplicationId == pledgeApplicationId),
                       It.IsAny <CancellationToken>()))
            .ReturnsAsync(mediatorResult);

            var controllerResult = await controller.GetTransferValidity(senderId, receiverId, pledgeApplicationId) as ObjectResult;

            Assert.IsNotNull(controllerResult);
            controllerResult.StatusCode.Should().Be((int)HttpStatusCode.OK);
            var model = controllerResult.Value as GetTransferValidityResponse;

            Assert.IsNotNull(model);
            model.IsValid.Should().Be(mediatorResult.IsValid);
        }