Пример #1
0
        public void TestGetDeptEnergyAvgViewModelByYear()
        {
            DateTime today = DateTime.Now;
            DepartmentEnergyAverageService   service   = new DepartmentEnergyAverageService();
            DepartmentEnergyAverageViewModel ViewModel = service.GetViewModel("000001G003", "01000", "YY", "2018");

            Console.WriteLine(UtilTest.GetJson(ViewModel));
        }
Пример #2
0
        public void TestGetDeptEnergyAvgViewModelByUser()
        {
            DateTime today = DateTime.Now;
            DepartmentEnergyAverageService   service   = new DepartmentEnergyAverageService();
            DepartmentEnergyAverageViewModel ViewModel = service.GetViewModelByUserName("admin");

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