protected override void OnSetUp() { base.OnSetUp(); using (var s = OpenSession()) using (var tx = s.BeginTransaction()) { var book = new DomainClass { Name = "Some name", ALotOfText = "Some text", Id = 1 }; s.Persist(book); tx.Commit(); } }