Beispiel #1
0
        public void CanCreateCoffee()
        {
            Coffee coffee = new Coffee();

            repository.CreateCoffee(coffee);

            Assert.AreEqual(2, coffee.CoffeeId);
        }
        private void CreateCoffee()
        {
            Coffee newCoffee   = View.GetNewCoffeeInfo();
            Coffee addedCoffee = repository.CreateCoffee(newCoffee);

            if (addedCoffee != null)//Added Repoitory
            {
                View.DisplayCoffee(addedCoffee);
            }
            else
            {
                //failed
            }
        }