public void TestTransactionStateless() { RootService service = container.Resolve <RootService>(); FirstDao dao = container.Resolve <FirstDao>("myfirstdao"); Blog blog = dao.CreateStateless("Blog1"); try { service.DoBlogRefOperationStateless(blog); // Expects a constraint exception on Commit Assert.Fail("Must fail"); } catch (Exception) { // transaction exception expected } }