public void AttachSourcesOfFuelToRiskAssessment(AttachSourceOfFuelToRiskAssessmentRequest request)
        {
            _log.Add(request);

            var user = _userForAuditingRepository.GetByIdAndCompanyId(request.UserId, request.CompanyId);
            var riskAssessment = _fireRiskAssessmentRepository.GetByIdAndCompanyId(request.RiskAssessmentId, request.CompanyId);

            var sourceOfFuels = _sourceOfFuelRepository.GetByIds(request.SourceOfFuelIds);

            riskAssessment.AttachSourceOfFuelsToRiskAssessment(sourceOfFuels, user);

            _fireRiskAssessmentRepository.SaveOrUpdate(riskAssessment);

        }
        public void Given_valid_request_When_AttachPeopleAtRisk_is_called_Then_should_call_appropiate_methods()
        {
            //Given
            var riskAssessmentService = CreateRiskAssessmentService();
            var request = new AttachSourceOfFuelToRiskAssessmentRequest()
                              {
                                  SourceOfFuelIds = new List<long> { 1, 2, 3 },
                                  RiskAssessmentId = 2,
                                  CompanyId = 1,
                                  UserId = Guid.NewGuid()
                              };

            var mockRiskAssessment = new Mock<FireRiskAssessment>();
            _riskAssessmentRepository
                .Setup(rr => rr.GetByIdAndCompanyId(request.RiskAssessmentId, request.CompanyId))
                .Returns(mockRiskAssessment.Object);

            var sourceOfFuels = new List<SourceOfFuel>()
                                        {
                                            new SourceOfFuel(),
                                            new SourceOfFuel(),
                                            new SourceOfFuel()
                                        };
            _sourceOfFuelRepository
                .Setup(x => x.GetByIds(request.SourceOfFuelIds))
                .Returns(sourceOfFuels);

            _userRepository
                .Setup(x => x.GetByIdAndCompanyId(request.UserId, request.CompanyId))
                .Returns(_user);

            //When
            riskAssessmentService.AttachSourcesOfFuelToRiskAssessment(request);

            //Then
            _riskAssessmentRepository.Verify(x => x.SaveOrUpdate(mockRiskAssessment.Object));
            _userRepository.Verify(x => x.GetByIdAndCompanyId(request.UserId, request.CompanyId));
            mockRiskAssessment.Verify(x => x.AttachSourceOfFuelsToRiskAssessment(sourceOfFuels, _user));
        }