コード例 #1
0
 public void ShouldThrowWhenADatabaseIsGiven(string database)
 {
     BoltV3.Awaiting(p => p.RunInAutoCommitTransactionAsync(Mock.Of <IConnection>(), new Query("text"),
                                                            false, Mock.Of <IBookmarkTracker>(), Mock.Of <IResultResourceHandler>(), database,
                                                            Bookmark.From("123"),
                                                            TransactionConfig.Default))
     .Should().Throw <ClientException>().WithMessage("*that does not support multiple databases*");
 }
コード例 #2
0
 public void ShouldThrowWhenADatabaseIsGiven(string database)
 {
     BoltV3.Awaiting(p => p.BeginTransactionAsync(Mock.Of <IConnection>(), database, Bookmark.From("123"),
                                                  TransactionConfig.Default))
     .Should().Throw <ClientException>().WithMessage("*that does not support multiple databases*");
 }