示例#1
0
        public void Test_GetViews_OneTestItem(int collegeId, string testDate, int hour, int users)
        {
            _repository.MockOneItem(collegeId, DateTime.Parse(testDate).AddHours(hour), users);

            var views = _service.GetViews(DateTime.Parse(testDate), hour).ToList();

            Assert.IsNotNull(views);
            Assert.AreEqual(views.Count, 1);
            views[0].AssertUsers(collegeId, users);
        }
示例#2
0
        public IEnumerable <College3GTestView> GetViews(DateTime begin, DateTime end, string name)
        {
            var endDate = end.AddDays(1);

            return(_service.GetViews(begin, endDate, name));
        }
 public IEnumerable <College3GTestView> Get(DateTime date, int hour)
 {
     return(_service.GetViews(date, hour));
 }