public void GetFaults_ReturnsNotFound() { _fixItTrackerRepository = new UnitTestsRepository(noFaults: true); _faultController = new FaultController(_fixItTrackerRepository, UnitTestsMapping.GetMapper()); var okResult = _faultController.GetFaults(); Assert.IsType <NotFoundObjectResult>(okResult.Result); }
public void GetFaults_ReturnsOkResult() { var okResult = _faultController.GetFaults(); Assert.IsType <OkObjectResult>(okResult.Result); }