예제 #1
0
파일: UTest.cs 프로젝트: cemduhan/ToDoApp
        public void ChechkToDoListWindowPopulate()
        {
            //Assert if window can populate its list
            // if no record will give an error

            _testMainWindow.Populate();

            Assert.AreEqual(_toDoListRepository.GetMany(a => a.ToDoListUserId == _userRepository.Get(b => b.username == _usr).UserId).Count(), _testMainWindow._toDoLists.Count());
        }
예제 #2
0
 public void Populate()
 {
     _toDoLists = _toDoListRepository.GetMany(a => a.ToDoListUserId == _usr.UserId).ToList();
 }