コード例 #1
0
 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);
 }
コード例 #2
0
 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);
 }