public void ThenTheReceivedStatusCodeMustBeSuccessfulAndResponseSchemaValidated(int p0) { Assert.DoesNotThrow(async() => await MemberApiProxy.GetOfflineDepositFormDataAsync(Guid.NewGuid())); Assert.DoesNotThrow(async() => await MemberApiProxy.PlayerLastDepositSummaryResponse()); Assert.DoesNotThrow(async() => await MemberApiProxy.GetOnlinePaymentSetting(Guid.NewGuid(), String.Empty)); Assert.DoesNotThrow(async() => await MemberApiProxy.IsDepositorsFullNameValid(TestDataGenerator.GetRandomString())); Assert.DoesNotThrow(async() => await MemberApiProxy.GetBankAccountsForOfflineDeposit()); Assert.DoesNotThrow(async() => await MemberApiProxy.GetPendingDeposits()); Assert.DoesNotThrow(async() => await MemberApiProxy.GetDeposits(1, null, null, null)); Assert.DoesNotThrow(async() => await MemberApiProxy.GetOfflineDeposit(Guid.NewGuid())); Assert.DoesNotThrow(async() => await MemberApiProxy.GetWithdrawalFormDataAsync(Guid.NewGuid())); Assert.DoesNotThrow(async() => await MemberApiProxy.GetBanks()); Assert.DoesNotThrow(async() => await MemberApiProxy.ValidatePlayerBankAccount(new PlayerBankAccountRequest())); Assert.DoesNotThrow(async() => await MemberApiProxy.GetFundTransferFormDataAsync(Guid.NewGuid())); Assert.DoesNotThrow(async() => await MemberApiProxy.ValidateOnlineDepositAmount(new ValidateOnlineDepositAmount())); Assert.DoesNotThrow(async() => await MemberApiProxy.GetBankAccountForOfflineDeposit(Guid.NewGuid())); Assert.DoesNotThrow(async() => await MemberApiProxy.CheckOnlineDepositStatusAsync(new CheckOnlineDepositStatusRequest())); Assert.DoesNotThrow(async() => await MemberApiProxy.GetOnlineDepositFormDataAsync(Guid.NewGuid())); }
public void WhenITryToSendGETRequestWithoutHavingAValidTokenToPaymentControllerEndPoint() { ErrorMessagesFromUnauthorizedCalls.Add(Assert.Throws <MemberApiProxyException>( async() => await MemberApiProxy.GetOfflineDepositFormDataAsync(Guid.NewGuid())).Exception.ErrorMessage); ErrorMessagesFromUnauthorizedCalls.Add(Assert.Throws <MemberApiProxyException>( async() => await MemberApiProxy.PlayerLastDepositSummaryResponse()).Exception.ErrorMessage); ErrorMessagesFromUnauthorizedCalls.Add(Assert.Throws <MemberApiProxyException>( async() => await MemberApiProxy.GetOnlinePaymentSetting(Guid.NewGuid(), String.Empty)).Exception.ErrorMessage); ErrorMessagesFromUnauthorizedCalls.Add(Assert.Throws <MemberApiProxyException>( async() => await MemberApiProxy.IsDepositorsFullNameValid(TestDataGenerator.GetRandomString())).Exception.ErrorMessage); ErrorMessagesFromUnauthorizedCalls.Add(Assert.Throws <MemberApiProxyException>( async() => await MemberApiProxy.GetBankAccountsForOfflineDeposit()).Exception.ErrorMessage); ErrorMessagesFromUnauthorizedCalls.Add(Assert.Throws <MemberApiProxyException>( async() => await MemberApiProxy.GetPendingDeposits()).Exception.ErrorMessage); ErrorMessagesFromUnauthorizedCalls.Add(Assert.Throws <MemberApiProxyException>( async() => await MemberApiProxy.GetDeposits(1, null, null, null)).Exception.ErrorMessage); ErrorMessagesFromUnauthorizedCalls.Add(Assert.Throws <MemberApiProxyException>( async() => await MemberApiProxy.GetOfflineDeposit(Guid.NewGuid())).Exception.ErrorMessage); ErrorMessagesFromUnauthorizedCalls.Add(Assert.Throws <MemberApiProxyException>( async() => await MemberApiProxy.GetWithdrawalFormDataAsync(Guid.NewGuid())).Exception.ErrorMessage); ErrorMessagesFromUnauthorizedCalls.Add(Assert.Throws <MemberApiProxyException>( async() => await MemberApiProxy.GetBanks()).Exception.ErrorMessage); ErrorMessagesFromUnauthorizedCalls.Add(Assert.Throws <MemberApiProxyException>( async() => await MemberApiProxy.ValidatePlayerBankAccount(new PlayerBankAccountRequest())).Exception.ErrorMessage); ErrorMessagesFromUnauthorizedCalls.Add(Assert.Throws <MemberApiProxyException>( async() => await MemberApiProxy.GetFundTransferFormDataAsync(Guid.NewGuid())).Exception.ErrorMessage); ErrorMessagesFromUnauthorizedCalls.Add(Assert.Throws <MemberApiProxyException>( async() => await MemberApiProxy.ValidateOnlineDepositAmount(new ValidateOnlineDepositAmount())).Exception.ErrorMessage); ErrorMessagesFromUnauthorizedCalls.Add(Assert.Throws <MemberApiProxyException>( async() => await MemberApiProxy.GetBankAccountForOfflineDeposit(Guid.NewGuid())).Exception.ErrorMessage); ErrorMessagesFromUnauthorizedCalls.Add(Assert.Throws <MemberApiProxyException>( async() => await MemberApiProxy.CheckOnlineDepositStatusAsync(new CheckOnlineDepositStatusRequest())).Exception.ErrorMessage); ErrorMessagesFromUnauthorizedCalls.Add(Assert.Throws <MemberApiProxyException>( async() => await MemberApiProxy.GetOnlineDepositFormDataAsync(Guid.NewGuid())).Exception.ErrorMessage); //TODO: Add test cases for POST methods }
public async Task <ValidationResult> ValidatePlayerBankAccount(PlayerBankAccountRequest request) { return(await _memberApiProxy.ValidatePlayerBankAccount(request)); }