public ViewResult Orders() { countService = new CountService(); var vegetarians = countService.GetNumberOfPeopleVegetarian(); var isGoingByBus = countService.GetNumberOfPeopleGoingByBus(); var mod = new OrderModel(vegetarians, isGoingByBus); return(View(mod)); }
public void GetNumberOfPeopleGoingByBus_GetNumber_ReturnCorrectValue() { var countedValue = countService.GetNumberOfPeopleGoingByBus(); Assert.Equal(2, countedValue); }