public async Task <ArbitragePath> Add(ArbitragePath contract)
        {
            var entity = ContractToEntity(contract);

            entity = await _apRepo.Add(entity);

            return(EntityToContract(entity));
        }
Beispiel #2
0
        public void Add_Test()
        {
            var entity = datas[0];

            var addedEntity = _repo.Add(entity).Result;

            Assert.NotNull(addedEntity);
            Assert.True(addedEntity.Id > 0);
        }