Example #1
0
        public void GetTop20StatsUT()
        {
            AcquireReportController controller = new AcquireReportController();
            // Act
            PartialViewResult result = controller.GetTop20Stats("1") as PartialViewResult;

            // Assert
            Assert.AreEqual(result.ViewName, "GetTop20Stats");
        }
Example #2
0
        public void GetStatTaskbarUT()
        {
            AcquireReportController controller = new AcquireReportController();
            // Act
            PartialViewResult result = controller.GetStatTaskbar("81", "103", "01/01/2018", "01/01/2019") as PartialViewResult;

            // Assert
            Assert.AreEqual(result.ViewName, "GetStatTaskbar");
        }
Example #3
0
        public void AcquireStatisticIndexUT()
        {
            AcquireReportController controller = new AcquireReportController();
            // Act
            ViewResult result = controller.AcquireStatisticIndex() as ViewResult;

            // Assert
            Assert.IsNotNull(result);
        }