public async Task GivenWhitespaceInputName_WhenGetAutocompletePayeeInvoked_ThenReturns400BadRequest()
        {
            var controller = new PayersPayeesController(_mockService.Object);
            var response   = await controller.GetAutocompletePayee("");

            Assert.IsType <BadRequestResult>(response);
        }
        GivenPayerPayeeServiceReturnsPayees_WhenGetAutocompletePayeeInvoked_ThenReturns200OKWithCorrectList()
        {
            var inputName = "test";
            var payees    = new List <PayerPayeeViewModel>
            {
                new()
                {
                    PayerPayeeId   = Guid.NewGuid(),
                    ExternalId     = "id123",
                    PayerPayeeName = "test123"
                },
                new()
                {
                    PayerPayeeId   = Guid.NewGuid(),
                    ExternalId     = "id1234",
                    PayerPayeeName = "test1234"
                }
            };

            _mockService.Setup(service => service.AutocompletePayee(inputName)).ReturnsAsync(() => payees);
            var controller = new PayersPayeesController(_mockService.Object);
            var response   = await controller.GetAutocompletePayee(inputName);

            var objectResponse = Assert.IsType <OkObjectResult>(response);

            Assert.Equal(StatusCodes.Status200OK, objectResponse.StatusCode);
            Assert.Equal(payees, objectResponse.Value);
        }