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")); } }
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")); } }
protected override void OnStart(string[] args) { var ihotel = new Ihotel(); Task <bool> ret = ihotel.Login(); }
public async Task loginTest() { var ihotel = new Ihotel(); var ret = await ihotel.Login(); }