public async System.Threading.Tasks.Task ThenApiReturnsAsync(string message)
        {
            _test.Log(Status.Info, "Corresponding error message: " + message);
            BankApiTestInvalidResponseMessage result = new BankApiTestInvalidResponseMessage();
            var response = await client.SendAsync(request);

            string responseConvertToText = await response.Content.ReadAsStringAsync();

            _test.Log(Status.Info, "Json response: " + responseConvertToText);
            result = JsonConvert.DeserializeObject <BankApiTestInvalidResponseMessage>(responseConvertToText);
            Assert.AreEqual(message, result.Message);
        }
        public async System.Threading.Tasks.Task ThenApiReturnsBankAccountValidationErrorsWitheCorrespondingBankAccountAsync(string bankAccount, string errorMessage)
        {
            _test.Log(Status.Info, "Corresponding error message: " + errorMessage);
            var response = await client.SendAsync(request);

            string responseConvertToText = await response.Content.ReadAsStringAsync();

            _test.Log(Status.Info, "Json response: " + responseConvertToText);
            if (bankAccount.Length < 7 || bankAccount.Length > 34)
            {
                List <BankApiTestInvalidBankAccountMessage> result = new List <BankApiTestInvalidBankAccountMessage>();
                result = JsonConvert.DeserializeObject <List <BankApiTestInvalidBankAccountMessage> >(responseConvertToText);
                foreach (var element in result)
                {
                    Assert.AreEqual(errorMessage, element.Message);
                }
            }
            else
            {
                BankApiTestInvalidResponseMessage result = new BankApiTestInvalidResponseMessage();
                result = JsonConvert.DeserializeObject <BankApiTestInvalidResponseMessage>(responseConvertToText);
                Assert.AreEqual(false, result.IsValid);
            }
        }