public void TraditionalCode_PersonFinderTest_Example1() { var finder = new PersonFinder(); finder.FirstName = "Jan"; finder.LastName = "Kowalski"; finder.Address = "Kraków, ul. Królewska 22"; finder.CorrespondenceAddress = "Kraków, ul. Lea 112"; finder.IncludePhoto = true; var persons = finder.Find(); }
public void TestGenericQuery() { AssertQuery("(Person(Name == 'ana'))", delegate { var finder = new PersonFinder <Person>(Db()); var ana = finder.GetPerson("ana"); Assert.IsNotNull(ana); Assert.AreEqual("ana", ana.Name); }); }
public void TraditionalCode_PersonFinderTest_Example2() { var finder = new PersonFinder("Jan", "Kowalski", "Kraków, ul. Królewska 22", "Kraków, ul. Lea 112", true); var persons = finder.Find(); }