protected override SkiaChart WieldTool(ProgressTask task, NailgunSettings settings)
    {
        var nailer  = new Nailer(_httpClient, task, settings);
        var results = nailer.Run();

        return(new LineChart(results));
    }
Exemple #2
0
    public void CanNail()
    {
        //arrange
        var http    = new HttpClient(new MockHttpMessageHandler());
        var task    = new ProgressTask(123, "test", 0, false);
        var options = new NailgunSettings()
        {
            URL      = new Uri("http://localhost"),
            Requests = 5
        };
        var driller = new Nailer(http, task, options);

        //act
        var results = driller.Run();

        //assert
        Assert.Equal(5, results.Count);
    }