public virtual void CanGetRecentRequests()
        {
            IList <RecentRequestsDto> recentItems = _timeEntryRepository.GetRecentRequests(119);

            foreach (var recentRequestsDto in recentItems)
            {
                Console.WriteLine(recentRequestsDto.ToString());
            }
            Assert.That(recentItems.Count == 20);
        }
        public TimeEntryFormViewModel CreateFormViewModel(DateTime weekEndingDate, string userName)
        {
            var user      = _personManagementService.GetByUserName(userName);
            var viewModel = new TimeEntryFormViewModel
            {
                WeekEndingDate = weekEndingDate,
                RecentRequests = _timeEntryRepository.GetRecentRequests(user.Id),
                Systems        = _wrmsSystemRepository.GetActiveSystems(0, "Code", "Asc"),
                UserId         = user.Id
            };

            return(viewModel);
        }