public async void TestCommitTransaction() { var expectedCountry = new Country() { CountryID = "555", CountryName = "NOM COUNTRY" }; var context = new NeoContext(Driver); await context.UseTransaction((transaction) => { transaction.Insert("CREATE (:Country { CountryID: '555' , countryName: 'NOM COUNTRY'})").GetAwaiter().GetResult(); var shouldBeNull = context.QueryDefault <Country>("MATCH (n:Country { CountryID: '555' }) RETURN n").GetAwaiter().GetResult(); Assert.Null(shouldBeNull); transaction.CommitTransaction().GetAwaiter().GetResult(); }); var resultCountry = await context.QueryDefault <Country>("MATCH (n:Country { CountryID: '555' }) RETURN n"); Assert.True(IsEqual(expectedCountry, resultCountry)); await context.ExecuteQuery("MATCH (n:Country { CountryID: '555' }) DETACH DELETE n"); }