public static async Task RunStartupPerfTestsAsync <ChannelType, TestTemplate, TestParams>() where ChannelType : class where TestTemplate : ITestTemplate <ChannelType, TestParams>, new() where TestParams : IPoolTestParameter { await CreateAndCloseFactoryAndChannelFullCycleTestAsync <ChannelType, TestTemplate, TestParams> .CreateFactoriesAndChannelsUseAllOnceCloseAllAsync(); }
public static async Task RunAllStressTestsAsync <ChannelType, TestTemplate, TestParams>() where ChannelType : class where TestTemplate : ITestTemplate <ChannelType, TestParams>, IExceptionPolicy, new() where TestParams : IPoolTestParameter { await CreateAndCloseFactoryAndChannelFullCycleTestAsync <ChannelType, TestTemplate, TestParams> .CreateFactoriesAndChannelsUseAllOnceCloseAllAsync(); await PooledFactoriesAsync <ChannelType, TestTemplate, TestParams> .CreateUseAndCloseChannelsAsync(); await PooledFactoriesAndChannelsAsync <ChannelType, TestTemplate, TestParams> .UseChannelsInPooledFactoriesAndChannelsAsync(); await RecyclablePooledFactoriesAsync <ChannelType, TestTemplate, TestParams> .RunAllScenariosWithWeightsAsync(100, 1); await RecyclablePooledFactoriesAndChannelsAsync_OpenOnce <ChannelType, TestTemplate, TestParams> .RunAllScenariosWithWeightsAsync(100, 1, 1); }