public async Task <ExchangeOrder> Add(ExchangeOrder contract) { var entity = ContractToEntity(contract); entity = await _eoRepo.Add(entity); return(EntityToContract(entity)); }
public void Add_Test() { var entity = datas[0]; var addedEntity = _repo.Add(entity).Result; Assert.NotNull(addedEntity); Assert.True(addedEntity.Id > 0); }