Ejemplo n.º 1
0
        public void GetCoffeeDetailTest()
        {
            //arrange
            var service = new CoffeeDataService(repository);

            //act
            var coffee = service.GetCoffeeDetail(1);

            //assert
            Assert.IsNotNull(coffee);

        }
Ejemplo n.º 2
0
 private void LoadData()
 {
     CoffeeDataService coffeeDataService = new CoffeeDataService();
     Coffees = coffeeDataService.GetAllCoffees().ToObservableCollection();
     CoffeeListView.ItemsSource = Coffees; 
 }