/// <summary> /// Stuurt een HourChartData naar de caller /// </summary> public void RequestHourChart(bool includeDeleted = false) { using (ISendSMSHostContext db = new SendSMSHostContext()) { IChartDataFactory chartDataFactory = new HourChartDataFactory(); ChartData chartdata = chartDataFactory?.CreateChartData(db, includeDeleted); Clients.Caller.notifyChangeHourChart(chartdata); } }
public void HourSummaryCreateChartDataTest_StatusCreatedCount() { // Arrange IChartDataFactory summaryFactory = new HourChartDataFactory(); // Act ChartData chartData = summaryFactory.CreateChartData(db, includeDeleted: false); // Assert int expectedValue = 2; int actualValue = CountStatusInDataset(chartData, "Created"); Assert.IsTrue(actualValue == expectedValue, "Count of Status Created"); }
public void HourSummaryCreateChartDataTest_IntervalCount() { // Arrange IChartDataFactory summaryFactory = new HourChartDataFactory(); // Act ChartData chartData = summaryFactory.CreateChartData(db, includeDeleted: false); // Assert int expectedValue = 12; int actualValue = chartData.Labels.Length; Assert.IsTrue(actualValue == expectedValue, "Count of Label"); }