示例#1
0
        public void Edit_UpdatesDrinkInDatabase_String()
        {
            //Arrange
            string firstName = "Americano";
            Drink  testDrink = new Drink(firstName);

            testDrink.Save();
            string secondName = "Latte";

            //Act
            testDrink.Edit(secondName);

            string result = Drink.Find(testDrink.GetId()).GetName();

            //Assert
            Assert.AreEqual(secondName, result);
        }