protected async override Task RunTest()
        {
            DeviceModel device = new DeviceModel()
            {
                Id = 1
            };
            var scanModels = m_scanGenerator.Run(device, m_wifiDevices, m_bluetoothDevices);

            Console.WriteLine("Scan Models {0}", scanModels.Count);

            var batchModels = ScanServiceClient.CreateScanBatchModels(scanModels, 5);
            ServiceEndpointLoad <ScanBatchModel> load = new ServiceEndpointLoad <ScanBatchModel>("Cluster Data", batchModels, SB =>
                                                                                                 m_scanServiceClient.InsertScanBatchAsync(SB));

            await load.Run();
        }
        private static void RunLoadtestSimulation()
        {
            var serviceProvider   = new ServiceCollection().AddHttpClient().BuildServiceProvider();
            var httpClientFactory = serviceProvider.GetService <IHttpClientFactory>();

            /// Creating clients
            IDeviceServiceClient  deviceServiceClient  = new DeviceServiceClient(httpClientFactory);
            IScanServiceClient    scanServiceClient    = new ScanServiceClient(httpClientFactory);
            ISettingServiceClient settingServiceClient = new SettingServiceClient(httpClientFactory);

            // Read in test data
            IList <DeviceModel>    TestDevices     = FileParser.ReadTestDevices();
            IList <ScanBatchModel> scanBatchModels = ScanServiceClient.CreateScanBatchModels(FileParser.ReadScanModel().GetRange(0, 10000), 5).ToList();
            DeviceModel            device          = new DeviceModel()
            {
                Id = 1
            };

            var wifiBleDevices = FileParser.ReadClusterDevices();
            IClusterGraphScanGenerator scanGenerator = new ClusterGraphScanGenerator();

            scanGenerator.Run(device, wifiBleDevices.Item1, wifiBleDevices.Item2);

            ISimulation <SimulationResult> loadTestSimulation = new LoadTestSimulation(
                deviceServiceClient,
                settingServiceClient,
                scanServiceClient,
                TestDevices,
                scanBatchModels);

            ISimulation <SimulationResult> clusterInsertSimulation = new ClusterInsertSimulation(
                deviceServiceClient,
                settingServiceClient,
                scanServiceClient,
                scanGenerator,
                wifiBleDevices.Item1,
                wifiBleDevices.Item2);

            loadTestSimulation.Run();
        }