protected override SkiaChart WieldTool(ProgressTask task, DrillSettings settings) { var driller = new Driller(_httpClient, task, settings); var results = driller.Run(); return(new LineChart(results)); }
public void CanDrill() { //arrange var http = new HttpClient(new MockHttpMessageHandler()); var task = new ProgressTask(123, "test", 0, false); var options = new DrillSettings { URL = new Uri("http://localhost"), RPS = 1, Duration = 1 }; var driller = new Driller(http, task, options); //act var results = driller.Run(); //assert Assert.Equal(1, results.Count); }