예제 #1
0
        public async Task Bonus_DeleteBonusAsync_Return_BonusDTO()
        {
            CreateDefaultBonusServiceInstance();
            var idBonus = _fakeBonuseDtos[0].Id;

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

            Assert.NotNull(bonus);
        }
예제 #2
0
 public async Task <ActionResult <ResultDto <BonusDto> > > DeleteBonusAsync([FromRoute] Guid id)
 {
     return(Ok(await _BonusService.DeleteBonusAsync(id)));
 }