public void TestAddInstance() { Models.Person person = new Models.Person { FirstName = "John", Lastname = "Doe", DocumentNumber = "9995", Segment = -1, Age = 43 }; _Helper.AddInstance(person); Models.Person queryPersonSingle = _Helper.Query <Models.Person>("SELECT * FROM Lnl_Cardholder WHERE LASTNAME = 'Doe Modified'").SingleOrDefault(); Assert.IsNull(queryPersonSingle, "John Doe shouldn't have this name yet."); person.Lastname = "Doe Modified"; _Helper.UpdateInstance(person); queryPersonSingle = _Helper.Query <Models.Person>("SELECT * FROM Lnl_Cardholder WHERE LASTNAME = 'Doe Modified'").SingleOrDefault(); Assert.IsNotNull(queryPersonSingle, "John Doe Modified still couldn't be found."); }