private DoBlogRefOperation ( Blog blog ) : void | ||
blog | Blog | |
return | void |
public void TestTransaction() { RootService service = container.Resolve <RootService>(); FirstDao dao = container.Resolve <FirstDao>("myfirstdao"); Blog blog = dao.Create("Blog1"); try { service.DoBlogRefOperation(blog); // Expects a constraint exception on Commit Assert.Fail("Must fail"); } catch (Exception) { // transaction exception expected } }