Пример #1
0
        public async void Can_toggle_bonus_status()
        {
            var bonus = CreateFirstDepositBonus(isActive: false);

            var result = await ApiProxy.ChangeBonusStatusAsync(new ToggleBonusStatus { Id = bonus.Id, IsActive = true, Remarks = TestDataGenerator.GetRandomString() });

            result.Success.Should().BeTrue();

            result = await ApiProxy.ChangeBonusStatusAsync(new ToggleBonusStatus { Id = bonus.Id, IsActive = false, Remarks = TestDataGenerator.GetRandomString() });

            result.Success.Should().BeTrue();
        }