Пример #1
0
        public async Task <ValidationResult> ValidateOnlineDepositAmount(ValidateOnlineDepositAmount request)
        {
            request.BrandId = new AppSettings().BrandId;
            var response = await _memberApiProxy.ValidateOnlineDepositAmount(request);

            return(response);
        }
Пример #2
0
 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()));
 }
Пример #3
0
        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
        }