Example #1
0
		protected override void OnSetUp()
		{
			base.OnSetUp();
			using (ISession session = this.OpenSession())
			{
				var entity = new DomainClass();
				entity.Id = 1;
				entity.Name = "Test";
				session.Save(entity);
				session.Flush();
			}
		}
Example #2
0
 protected override void OnSetUp()
 {
     base.OnSetUp();
     using (ISession session = this.OpenSession())
     {
         var entity = new DomainClass();
         entity.Id   = 1;
         entity.Name = "Test";
         session.Save(entity);
         session.Flush();
     }
 }