public void Add_with_Transaction_Commit() { TextContent content1 = null; using (var unit = provider.CreateTransaction(repository)) { content1 = new TextContent(repository.Name, newsSchema.Name, newsFolder.FullName); content1["title"] = "Add_with_Transaction_Commit"; content1["body"] = "Add_with_Transaction_Commit"; content1["comments"] = 1; provider.Add(content1); unit.Commit(); } var news = newsFolder.CreateQuery().WhereEquals("UUID", content1.UUID); Assert.AreEqual(1, news.Count()); }