Example #1
0
        public void TestFind()
        {
            using (var repo = new KlantRepository(new FrontEndContext(_options)))
            {
                repo.Insert(new Klant()
                {
                    Voorletters = "Y.P",
                    Achternaam  = "Keemink"
                });
            }

            using (var repo = new KlantRepository(new FrontEndContext(_options)))
            {
                var result = repo.Find(1);
                Assert.AreEqual(1, result.Id);
                Assert.AreEqual("Keemink", result.Achternaam);
                Assert.AreEqual("Y.P", result.Voorletters);
            }
        }