public async Task Bonus_DeleteBonusAsync_Return_BonusDTO() { CreateDefaultBonusServiceInstance(); var idBonus = _fakeBonuseDtos[0].Id; var bonus = await _bonusService.DeleteBonusAsync(idBonus, default(CancellationToken)); Assert.NotNull(bonus); }
public async Task <ActionResult <ResultDto <BonusDto> > > DeleteBonusAsync([FromRoute] Guid id) { return(Ok(await _BonusService.DeleteBonusAsync(id))); }