public void ReadFromLoad()
        {
            ISession s = OpenSession();

            GenericEnumStringClass basic = (GenericEnumStringClass)s.Load(typeof(GenericEnumStringClass), 1);

            Assert.AreEqual(SampleEnum.Dimmed, basic.EnumValue);

            GenericEnumStringClass basic2 = (GenericEnumStringClass)s.Load(typeof(GenericEnumStringClass), 2);

            Assert.AreEqual(SampleEnum.On, basic2.EnumValue);

            s.Close();
        }
        public async Task ReadFromLoadAsync()
        {
            ISession s = OpenSession();

            GenericEnumStringClass basic = (GenericEnumStringClass)await(s.LoadAsync(typeof(GenericEnumStringClass), 1));

            Assert.AreEqual(SampleEnum.Dimmed, basic.EnumValue);

            GenericEnumStringClass basic2 = (GenericEnumStringClass)await(s.LoadAsync(typeof(GenericEnumStringClass), 2));

            Assert.AreEqual(SampleEnum.On, basic2.EnumValue);

            s.Close();
        }
		protected override void OnSetUp()
		{
			GenericEnumStringClass basic = new GenericEnumStringClass();
			basic.Id = 1;
			basic.EnumValue = SampleEnum.Dimmed;

			GenericEnumStringClass basic2 = new GenericEnumStringClass();
			basic2.Id = 2;
			basic2.EnumValue = SampleEnum.On;

			ISession s = OpenSession();
			s.Save(basic);
			s.Save(basic2);
			s.Flush();
			s.Close();
		}
        protected override void OnSetUp()
        {
            GenericEnumStringClass basic = new GenericEnumStringClass();

            basic.Id        = 1;
            basic.EnumValue = SampleEnum.Dimmed;

            GenericEnumStringClass basic2 = new GenericEnumStringClass();

            basic2.Id        = 2;
            basic2.EnumValue = SampleEnum.On;

            ISession s = OpenSession();

            s.Save(basic);
            s.Save(basic2);
            s.Flush();
            s.Close();
        }