示例#1
0
        public HomeController(IPointService pointService, IGHeatService gheatService)
        {
            if (pointService == null)
            {
                throw new ArgumentNullException("Point Service");
            }

            _pointService = pointService;

            if (gheatService == null)
            {
                throw new ArgumentNullException("GHeat Service");
            }

            _gheatService = gheatService;

            _points = _pointService.LoadPoints();
        }