public LoadTestViewModel() { Configuration = new LoadTestConfiguration(); RunLoadTestCommand = new RunLoadTestCommand(this); Heartbeats = new List <Heartbeat>(); ChartModel = new LoadTestChart(Heartbeats); Defaults(); }
public LoadTestViewModel() { Configuration = new LoadTestConfiguration(); RunLoadTestCommand = new RunLoadTestCommand(this); Heartbeats = new List<Heartbeat>(); ChartModel = new LoadTestChart(Heartbeats); Defaults(); }
public void MonitorHeartRate() { var config = new LoadTestConfiguration { Duration = TimeSpan.FromSeconds(3) }; var loadTest = new Mock<ILoadTest>(); loadTest.Setup(k => k.TotalIterations).Returns(1); loadTest.Setup(k => k.TotalErrors).Returns(1); loadTest.Setup(k => k.Configuration).Returns(config); var heartRateMonitor = new HeartRateMonitor(loadTest.Object); heartRateMonitor.Start(DateTime.Now, TimeSpan.FromSeconds(2)); Assert.IsNotNull(heartRateMonitor.Heartbeats); Assert.IsTrue(heartRateMonitor.Heartbeats.Any()); }
public void MonitorHeartRate() { var config = new LoadTestConfiguration { Duration = TimeSpan.FromSeconds(3) }; var loadTest = new Mock <ILoadTest>(); loadTest.Setup(k => k.TotalIterations).Returns(1); loadTest.Setup(k => k.TotalErrors).Returns(1); loadTest.Setup(k => k.Configuration).Returns(config); var heartRateMonitor = new HeartRateMonitor(loadTest.Object); heartRateMonitor.Start(DateTime.Now, TimeSpan.FromSeconds(2)); Assert.IsNotNull(heartRateMonitor.Heartbeats); Assert.IsTrue(heartRateMonitor.Heartbeats.Any()); }
public LoadTestBuilder(LoadTestConfiguration configuration) { _configuration = configuration; }
public LoadTestBuilder() { _configuration = new LoadTestConfiguration(); }