public void SaveObjectWithStringChangedToUpper()
        {
            Foo f = new Foo(1, "Astor Piazolla", "tango");

            using (ISession s = OpenSession())
            {
                s.Save(f);
                s.Flush();
            }

            using (ISession s = OpenSession())
            {
                Foo upperFoo = s.Get<Foo>(1);

                Assert.AreEqual(1, upperFoo.Id);
                Assert.AreEqual("Astor Piazolla", upperFoo.Name);
                Assert.AreEqual("TANGO", upperFoo.Description);
            }
        }
        public void SaveNullPropertyAndGetItBack()
        {
            Foo f = new Foo(2, "Pat Metheny", null);

            using (ISession s = OpenSession())
            {
                s.Save(f);
                s.Flush();
            }

            using (ISession s = OpenSession())
            {
                Foo upperFoo = s.Get<Foo>(2);

                Assert.AreEqual(2, upperFoo.Id);
                Assert.AreEqual("Pat Metheny", upperFoo.Name);
                Assert.IsNull(upperFoo.Description);
            }
        }