public async Task Should_Delete_President_With_Success() { // Act await _whiteHouseAppService.DeletePresidentAsync("1"); // Assert Assert.False(LocalNotification.HasNotification()); }
public async Task <IActionResult> Delete(string id) { await _whiteHouseAppService.DeletePresidentAsync(id); return(CreateResponse <PresidentDto, string>() .FromErrorEnum(PresidentDto.Error.DeletePresident) .WithMessage(AppConsts.LocalizationSourceName, PresidentDto.Error.DeletePresident) .Build()); }