public void TestgetStatisticsperDay() { Init(); StatisticService sservice = new StatisticService(mockirepo, mockmrepo, mockmtrepo); Dictionary<InstallationModel, List<Statistic>> slist = sservice.getStatisticPerDay(0, DateTime.Now); Assert.IsNotNull(slist); Assert.AreEqual(1, slist.Count); }
public void TestgetInstallationState() { Init(); StatisticService sservice = new StatisticService(mockirepo, mockmrepo, mockmtrepo); Dictionary<InstallationModel, List<InstallationState>> ilist = sservice.getInstallationState(0); Assert.IsNotNull(ilist); Assert.AreEqual(1, ilist.Count); }