Esempio n. 1
0
        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);
            });
        }
Esempio n. 2
0
        public async Task <IHttpActionResult> Delete(int id)
        {
            await _valuesFcd.Delete(id);

            return(Ok());
        }