コード例 #1
0
        public async void TestGetItemByCode_TickerCollection()
        {
            TickerServiceDAL service = new TickerServiceDAL(this.tableName);

            var accountlist = await service.GetItemsByCode(this.id);

            Console.WriteLine("list item details: " + ObjectHelper.ToJson(accountlist));
        }
コード例 #2
0
        public async void TestUpdate_TickerCollection()
        {
            TickerServiceDAL service = new TickerServiceDAL(this.tableName);

            await service.Update(new TickerEntity { T = this.id, P = 20120103, O = (float)111.1, H = (float)1.5, L = (float)0.9, C = (float)0.9, V = 1212321 });

            await service.Update(new TickerEntity { T = this.id, P = 20120104, O = (float)1112.1, H = (float)2.5, L = (float)1.9, C = (float)1.9, V = 2343221 });

            this.id = "RIO";
            await service.Update(new TickerEntity { T = this.id, P = 20120103, O = (float)333.1, H = (float)1.5, L = (float)0.9, C = (float)0.9, V = 1212321 });

            await service.Update(new TickerEntity { T = this.id, P = 20120104, O = (float)444.1, H = (float)2.5, L = (float)1.9, C = (float)1.9, V = 2343221 });
        }
コード例 #3
0
 public TickerDbBLL(string tableName)
 {
     this.tickerService = new TickerServiceDAL(tableName);
 }
コード例 #4
0
        public async void TestDelete_TickerCollection()
        {
            TickerServiceDAL service = new TickerServiceDAL(this.tableName);

            await service.Delete(this.id, 20120103);
        }