Example #1
0
        public void TestSource()
        {
            IPerson addedPerson;

            using (var source = new PeopleSource()) {
                addedPerson = source.Add("Test two");
            }

            using (var source = new PeopleSource())
            {
                var foundPerson = source.Query.FirstOrDefault(p => p.PersonId == addedPerson.PersonId);
                Assert.AreEqual("Test two", foundPerson.Name, "Person not found via query");

                source.Delete(foundPerson.PersonId);
            }
        }
Example #2
0
 public void Delete(Guid id)
 {
     source.Delete(id);
 }