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); } }
public void Delete(Guid id) { source.Delete(id); }