Beispiel #1
0
        public async Task Bonus_UpdateBonusAsync_Return_BonusDTO()
        {
            CreateDefaultBonusServiceInstance();
            var idBonus  = _fakeBonuseDtos[0].Id;
            var bonusDto = _mapper.Map <UpdateBonusDto>(_fakeBonuseDtos[0]);

            var bonus = await _bonusService.UpdateBonusAsync(idBonus, bonusDto, default(CancellationToken));

            Assert.NotNull(bonus);
        }
 public async Task <ActionResult <ResultDto <BonusDto> > > UpdateBonusAsync([FromRoute][Required] Guid id, [FromBody][Required] UpdateBonusDto Bonus)
 {
     return(Ok(await _BonusService.UpdateBonusAsync(id, Bonus)));
 }