public async Task <bool> Delete(ExchangeOrder contract) { var entity = ContractToEntity(contract); var result = await _eoRepo.Delete(entity); return(result); }
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); }