Example #1
0
        public void SetUp()
        {
            _riskAssessmentService = new Mock<IPersonalRiskAssessmentService>();
            var riskAssessment = new PersonalRiskAssessmentDto();

            _target = GetTarget();
            _currentUserId = _target.CurrentUser.UserId;

            _riskAssessmentService
                .Setup(x => x.GetRiskAssessmentWithHazards(_riskAssessmentId, _companyId, _currentUserId))
                .Returns(riskAssessment);
        }
 private ControlMeasuresController GetTarget()
 {
     var result = new ControlMeasuresController(null, _riskAssessmentHazardService.Object);
     return TestControllerHelpers.AddUserToController(result);
 }