예제 #1
0
        public void UpdateName_OnePatron_NewName()
        {
            Patron patron1 = new Patron("Barcelona");

            patron1.Save();
            Patron patron2 = new Patron("Honolulu");

            patron2.Save();

            patron1.UpdateName("ex patron");

            string newName = patron1.GetName();

            Assert.Equal(newName, "ex patron");
        }