예제 #1
0
        public void TestGetPerson()
        {
            // Setup
            Person marge = new Person("marge", "simpson", "234567890", "*****@*****.**", Gender.FEMALE);

            persMgr.SavePerson(marge);

            Person retrievedPerson = persMgr.GetPerson("marge", "simpson");

            Assert.AreEqual(marge, retrievedPerson);

            // Cleanup
            persMgr.DeletePerson(marge.FirstName, marge.LastName);
        }