Beispiel #1
0
        public ViewResult Orders()
        {
            countService = new CountService();

            var vegetarians  = countService.GetNumberOfPeopleVegetarian();
            var isGoingByBus = countService.GetNumberOfPeopleGoingByBus();

            var mod = new OrderModel(vegetarians, isGoingByBus);

            return(View(mod));
        }
Beispiel #2
0
        public void GetNumberOfPeopleGoingByBus_GetNumber_ReturnCorrectValue()
        {
            var countedValue = countService.GetNumberOfPeopleGoingByBus();

            Assert.Equal(2, countedValue);
        }