public void Can_redeem_bonus_with_matched_auto_generate_tier(int depositAmount, int expectedRedemptionsAmount) { CreateBonusWithHighDepositTiers(); MakeDeposit(PlayerId, depositAmount); BonusRedemptions.All(br => br.ActivationState == ActivationStatus.Activated).Should().BeTrue(); BonusRedemptions.Sum(br => br.Amount).Should().Be(expectedRedemptionsAmount); }
public void Auto_generated_bonus_rewards_are_calculated_correctly_across_several_deposits() { CreateBonusWithHighDepositTiers(); MakeDeposit(PlayerId, 600); MakeDeposit(PlayerId, 400); BonusRedemptions.Count.Should().Be(2); BonusRedemptions.All(br => br.ActivationState == ActivationStatus.Activated).Should().BeTrue(); BonusRedemptions.All(br => br.Amount == 50).Should().BeTrue(); }