public void TestFixtureSetup()
 {
     _service = new CollegeKpiService(_repository.Object, _collegeRepository.Object);
     _collegeRepository.MockThreeColleges();
     _collegeRepository.MockOpertions();
     _repository.MockOperations();
     AutoMapperHelper.CreateMap(typeof(CollegeKpiView));
 }
示例#2
0
 public CollegeKpiController(CollegeKpiService service)
 {
     _service = service;
 }
示例#3
0
 public Dictionary <string, double> Get(DateTime begin, DateTime end, string kpiName)
 {
     return(_service.GetAverageKpi(begin, end, CollegeKpiService.GetKpiName(kpiName)));
 }