Beispiel #1
0
        public void GetRepairs_ReturnsNotFound()
        {
            _fixItTrackerRepository = new UnitTestsRepository(noRepairs: true);
            _repairController       = new RepairController(_fixItTrackerRepository, UnitTestsMapping.GetMapper());

            var okResult = _repairController.GetRepairs(null, null, null, null);

            Assert.IsType <NotFoundObjectResult>(okResult.Result);
        }
Beispiel #2
0
        public void GetRepairs_ReturnsOkResult()
        {
            var okResult = _repairController.GetRepairs(null, null, null, null);

            Assert.IsType <OkObjectResult>(okResult.Result);
        }