Example #1
0
        public async Task RateQueryTest()
        {
            var ihotel = new Ihotel();
            var ret    = await ihotel.Login();

            if (ret)
            {
                ret = await ihotel.RateQuery(Convert.ToDateTime("2017-05-10 18:00:00"));
            }
        }
Example #2
0
        public async Task SaveReserveTest()
        {
            var ihotel = new Ihotel();
            var ret    = await ihotel.Login();

            if (ret)
            {
                ret = await ihotel.SaveReserve("马五",
                                               Convert.ToDateTime("2017-05-16 06:00:00"),
                                               Convert.ToDateTime("2017-05-15 10:00:00"),
                                               Convert.ToDateTime("2017-05-15 12:00:00"));
            }
        }
Example #3
0
 protected override void OnStart(string[] args)
 {
     var         ihotel = new Ihotel();
     Task <bool> ret    = ihotel.Login();
 }
Example #4
0
 public async Task loginTest()
 {
     var ihotel = new Ihotel();
     var ret    = await ihotel.Login();
 }