Exemple #1
0
        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());
        }
Exemple #2
0
 public void Populate()
 {
     _toDoLists = _toDoListRepository.GetMany(a => a.ToDoListUserId == _usr.UserId).ToList();
 }