public void Setup()
        {
            _riskAssessmentId = 100;
            _companyId = 500;

            _viewModelFactory = new Mock<ISignificantFindingViewModelFactory>();

            target = GetTarget();

            _viewModelFactory
                .Setup(x => x.WithRiskAssessmentId(_riskAssessmentId))
                .Returns(_viewModelFactory.Object);
            
            _viewModelFactory
                .Setup(x => x.WithCompanyId(_companyId))
                .Returns(_viewModelFactory.Object);
            
            
        }
 private SignificantFindingsController GetTarget()
 {
     var result = new SignificantFindingsController(_viewModelFactory.Object, null);
     return TestControllerHelpers.AddUserToController(result);
 }
 private SignificantFindingsController GetTarget()
 {
     var result = new SignificantFindingsController(null, _significantFindingService.Object);
     return TestControllerHelpers.AddUserToController(result);
 }