public async Task StatisticsTest() { var statisticalSvc = new FbStatistical(); statisticalSvc.ConnectionString = BuildServicesConnectionString(ServerType, Compression, WireCrypt, true); statisticalSvc.Options = FbStatisticalFlags.SystemTablesRelations; statisticalSvc.ServiceOutput += ServiceOutput; await statisticalSvc.ExecuteAsync(); }
public void StatisticsWithEncryptedTest() { var csb = BuildServicesConnectionStringBuilder(ServerType, Compression, WireCrypt, true); csb.Database = "enc.fdb"; Task Test() { var statisticalSvc = new FbStatistical(csb.ToString()); statisticalSvc.ServiceOutput += ServiceOutput; return(statisticalSvc.ExecuteAsync()); } Assert.ThrowsAsync <FbException>(Test); csb.CryptKey = Encoding.ASCII.GetBytes("1234567890123456"); Assert.DoesNotThrowAsync(Test); }