Пример #1
0
        public async void Can_edit_bonus()
        {
            var bonus  = CreateFirstDepositBonus(isActive: false);
            var now    = DateTimeOffset.Now.ToBrandOffset(bonus.Template.Info.Brand.TimezoneId).Date;
            var result = await ApiProxy.CreateUpdateBonusAsync(new CreateUpdateBonus
            {
                Id          = bonus.Id,
                TemplateId  = bonus.Template.Id,
                Name        = TestDataGenerator.GetRandomString(),
                Description = TestDataGenerator.GetRandomString(),
                ActiveFrom  = now,
                ActiveTo    = now.AddDays(1),
                DaysToClaim = 1
            });

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