public void ThenIShouldSeeStatusCodeSuccessfulAndResponseSchemaValidated(int p0) { Assert.DoesNotThrow(async() => await MemberApiProxy.BonusRedemptionsAsync()); Assert.DoesNotThrow(async() => await MemberApiProxy.GetRedemption(Guid.NewGuid())); Assert.DoesNotThrow(async() => await MemberApiProxy.GetQualifiedBonuses(new QualifiedBonusRequest() { Amount = 10 })); Assert.DoesNotThrow(async() => await MemberApiProxy.QualifiedFirstDepositBonuses(new QualifiedBonusRequest() { Amount = 10 })); Assert.DoesNotThrow(async() => await MemberApiProxy.GetFirstDepositBonuseByCode(new FirstDepositApplicationRequest())); Assert.DoesNotThrow(async() => await MemberApiProxy.ValidateFirstOnlineDeposit(new FirstDepositApplicationRequest() { BonusCode = TestDataGenerator.GetRandomString(4), DepositAmount = 50 })); Assert.DoesNotThrow(async() => await MemberApiProxy.GetCompleteBonuses()); Assert.DoesNotThrow(async() => await MemberApiProxy.GetBonusesWithIncompleteWagering()); Assert.DoesNotThrow(async() => await MemberApiProxy.GetVisibleDepositQualifiedBonuses(new QualifiedBonusRequest() { Amount = 10 })); }
public void ThenIShouldSeeStatusCodeBadRequest(int p0) { Assert.Throws <MemberApiValidationException>(async() => await MemberApiProxy.GetRedemption(Guid.NewGuid())); Assert.Throws <MemberApiValidationException>( async() => await MemberApiProxy.GetFirstDepositBonuseByCode(new FirstDepositApplicationRequest() { DepositAmount = 10, BonusCode = Guid.NewGuid().ToString(), PlayerId = Guid.NewGuid() })); Assert.Throws <MemberApiValidationException>(async() => await MemberApiProxy.GetVisibleDepositQualifiedBonuses(new QualifiedBonusRequest() { Amount = 100 })); }