Exemplo n.º 1
0
        public void Create()
        {
            GebruikerSQLContext gsc = new GebruikerSQLContext();
            GebruikerRepository gr  = new GebruikerRepository(gsc);

            var user = gr.Retrieve("100");
        }
Exemplo n.º 2
0
        public static Gebruiker Find(string key)
        {
            GebruikerSQLContext gsc = new GebruikerSQLContext();
            GebruikerRepository gr  = new GebruikerRepository(gsc);

            return(gr.Retrieve(key));
        }
Exemplo n.º 3
0
        public void Retrieve()
        {
            GebruikerSQLContext gsc = new GebruikerSQLContext();
            GebruikerRepository gr  = new GebruikerRepository(gsc);

            var user = gr.Retrieve("2");

            Assert.AreEqual(user.Email, "testemail");
        }
Exemplo n.º 4
0
        public void Update()
        {
            GebruikerSQLContext gsc = new GebruikerSQLContext();
            GebruikerRepository gr  = new GebruikerRepository(gsc);

            Gebruiker user = gr.Retrieve("1");

            user.Voornaam = "aangepast";
            gr.Update(user);
        }