public async Task <bool> Delete(ExchangeOrder contract)
        {
            var entity = ContractToEntity(contract);
            var result = await _eoRepo.Delete(entity);

            return(result);
        }
Esempio n. 2
0
        public void Delete_Test()
        {
            var entityList     = _repo.Get().Result;
            var entityToDelete = entityList.FirstOrDefault();

            var delete = _repo.Delete(entityToDelete).Result;

            var entityFetch = _repo.GetOne(entityToDelete.Id).Result;

            Assert.Null(entityFetch);
        }