public void delete_values_deletes_value() { var deleteId = 3; var func = new Func <Task>(() => _fcd.Get(deleteId)); _fcd.Delete(deleteId).ContinueWith((t) => { Assert.ThrowsAsync <NotFoundException>(func); }); }
public async Task <IHttpActionResult> Delete(int id) { await _valuesFcd.Delete(id); return(Ok()); }