Пример #1
0
        public void UpdateHoldings_ShouldUpdateHoldingAsync()
        {
            int    AccountId  = 2;
            string Symbol     = "GE";
            int    StockCount = 10;

            var Holdings = new List <TestHolding>
            {
                new TestHolding
                {
                    accountId  = AccountId,
                    symbol     = Symbol,
                    stockCount = StockCount
                }
            };

            JObject Holding = new JObject();

            Holding["Holdings"] = JToken.FromObject(Holdings);

            _sut.UpdateHoldings(Holding);
        }
 public async Task UpdateHoldings(JObject Holdings)
 {
     await _holdingsService.UpdateHoldings(Holdings);
 }