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