Пример #1
0
        public void ShouldReturnNumberListFromDatabase()
        {
            //arrange

            //act
            List <string> listOfNumbers = _repository.GetUserNumbersList(1);

            //assert
            Assert.IsNotEmpty(listOfNumbers);
        }
Пример #2
0
 public HistoricalViewModel()
 {
     _id               = UserService.UserService.LoggedInUserId;
     _context          = new CalculatorContext();
     _numberRepository = new NumberRepository(_context);
     _numbersList      = new ObservableCollection <string>();
     numbersList       = new List <string>();
     numbersList       = _numberRepository.GetUserNumbersList(_id);
     numbersList.ToList().ForEach(_numbersList.Add);
 }