Пример #1
0
        public async void Can_get_player_balance()
        {
            var info     = CreateTemplateInfo(BonusType.FirstDeposit, IssuanceMode.AutomaticWithCode);
            var wagering = new CreateUpdateTemplateWagering
            {
                HasWagering = true,
                Multiplier  = 3,
                Method      = WageringMethod.Bonus
            };
            var template = CreateTemplate(info: info, wagering: wagering);
            var bonus    = CreateBonus(template);

            MakeDeposit(_player.Id, bonusCode: bonus.Code);
            PlaceAndLoseBet(50, _player.Id);

            var result = await ApiProxy.GetPlayerBalanceAsync(_player.Id);

            result.Main.Should().Be(150);
            result.Bonus.Should().Be(27);
        }