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