Beispiel #1
0
        public void TestGetViewModel_userName()
        {
            ToxicGasesService service = new ToxicGasesService();
            var viewModel             = service.GetViewModel("Admin");

            Console.WriteLine(UtilTest.GetJson(viewModel));
        }
Beispiel #2
0
        public void TestGetHistoryViewModel_userName()
        {
            ToxicGasesService service = new ToxicGasesService();
            DateTime          today   = DateTime.Now;
            var viewModel             = service.GetHistoryDataViewModel("Admin", "000001G001", "000001G0010005", today.ToString("yyyy-MM-dd"));

            Console.WriteLine(UtilTest.GetJson(viewModel));
        }