public void GetList_Void_ReturnTaskList() { var list = new List <HousingItem> { _housing }; Mock.Get(_housingRepository).Setup(x => x.GetList()).Returns(list); var result = _housingService.GetList(); Assert.AreEqual(result.Count, list.Count); }
/// <summary> /// Список корпусов. /// </summary> /// <returns></returns> public ActionResult List() { Access.CheckAccess("Housing.Reader"); return(View("List", _housingService.GetList().OrderBy(x => x.Number).ThenBy(x => x.Number).ToList())); }