Esempio n. 1
0
 public static async Task RunThroughputPerfTestsAsync <ChannelType, TestTemplate, TestParams>()
     where ChannelType : class
     where TestTemplate : ITestTemplate <ChannelType, TestParams>, new()
     where TestParams : IPoolTestParameter
 {
     await PooledFactoriesAndChannelsAsync <ChannelType, TestTemplate, TestParams> .UseChannelsInPooledFactoriesAndChannelsAsync();
 }
Esempio n. 2
0
        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);
        }