/// <summary> /// Stuurt een ForeverChartData naar de caller /// </summary> public void RequestForeverChart(bool includeDeleted = false) { using (ISendSMSHostContext db = new SendSMSHostContext()) { IChartDataFactory chartDataFactory = new ForeverChartDataFactory(); ChartData chartdata = chartDataFactory?.CreateChartData(db, includeDeleted); Clients.Caller.notifyChangeForeverChart(chartdata); } }
public void ForeverSummaryCreateChartDataTest_StatusCreatedCount() { // Arrange IChartDataFactory summaryFactory = new ForeverChartDataFactory(); // 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 ForeverSummaryCreateChartDataTest_IntervalCount() { // Arrange IChartDataFactory summaryFactory = new ForeverChartDataFactory(); // Act ChartData chartData = summaryFactory.CreateChartData(db, includeDeleted: false); // Assert int expectedValue = 5; int actualValue = chartData.Labels.Length; Assert.IsTrue(actualValue == expectedValue, "Count of Label"); }