Esempio n. 1
0
        static void Update(IContactRepo repo)
        {
            var c = repo.GetFullContact(1);

            c.FirstName = "Edited";
            c.Addresses[0].StreetAddress = "Edited";
            repo.Save(c);
            c = repo.GetFullContact(1);
            Debug.Assert(c.FirstName == "Edited");
            Debug.Assert(c.Addresses[0].StreetAddress == "Edited");
            Console.WriteLine(c.Serialize());
        }
Esempio n. 2
0
        static void FindById(IContactRepo repo)
        {
            var c = repo.GetFullContact(1);

            Console.WriteLine(c.Serialize());
        }
Esempio n. 3
0
        static void GetFullContact(IContactRepo repo)
        {
            var res = repo.GetFullContact(1);

            Console.WriteLine(res.Serialize());
        }