예제 #1
0
        public void Test_Update_UpdateCopyInDatabase()
        {
            Copy newCopy = new Copy ("New", 1, new DateTime(2016, 7, 25), new DateTime(2016, 8, 25));
             newCopy.Save();
             newCopy.SetCondition("Worn & Torn");
             newCopy.Update();

             Copy updatedCopy = Copy.Find(newCopy.GetId());

             Assert.Equal(newCopy.GetCondition(), updatedCopy.GetCondition());
        }