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*"); }
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*"); }