Exemplo n.º 1
0
        public void GetAllStations()
        {
            EmptyLists();

            stationVerbindingRepository = new PerronRepository(context);

            Assert.Equal(2, stationVerbindingRepository.GetAllPerrons().Count);
        }
Exemplo n.º 2
0
        public IActionResult Index()
        {
            List <Perron>   perrons = repo.GetAllPerrons();
            PerronViewModel vm      = new PerronViewModel
            {
                Perrons = new List <PerronDetailViewModel>()
            };

            foreach (Perron perron in perrons)
            {
                vm.Perrons.Add(converter.PerronToViewModel(perron));
            }

            return(View(vm.Perrons));
        }