public void Setup()
        {
            _accountId     = _fixture.Create <long>();
            _pledgeId      = _fixture.Create <int>();
            _applicationId = _fixture.Create <int>();
            _request       = _fixture.Create <SetApplicationApprovalOptionsRequest>();

            _mediator = new Mock <IMediator>();

            _controller = new PledgeController(_mediator.Object, Mock.Of <ILogger <PledgeController> >());
        }
        public async Task <IActionResult> SetApplicationApprovalOptions(int pledgeId, int applicationId, [FromBody] SetApplicationApprovalOptionsRequest request)
        {
            await _mediator.Send(new SetApplicationApprovalOptionsCommand
            {
                PledgeId          = pledgeId,
                ApplicationId     = applicationId,
                UserDisplayName   = request.UserDisplayName,
                UserId            = request.UserId,
                AutomaticApproval = request.AutomaticApproval
            });

            return(Ok());
        }