Ejemplo n.º 1
0
        public void TestDeleteAReport()
        {
            _mockReportService.Setup(x => x.Delete(It.IsAny <string>())).Returns(true);
            var reportController  = new ReportController(_mockReportService.Object);
            var checkDeleteReport = reportController.DeleteAReport("5d247a04eff1030d7c5209a0");
            var type = checkDeleteReport.GetType();

            Assert.AreEqual(type.Name, "OkObjectResult");
        }