public void given_valid_company_when_getviewmodel_then_result_contains_correct_CauseOfAccident()
        {
            //given
            var causeOfAccident = new CauseOfAccidentDto
            {
                Id = 1L
            };

            var causeOfAccidents = new List<CauseOfAccidentDto>
                                    {
                                        causeOfAccident
                                    };

            _causeOfAccidentService.Setup(x => x.GetAll()).Returns(causeOfAccidents);

            var factory = GetTarget();

            //when
            var result = factory
                .WithCompanyId(1L)
                .GetViewModel();

            Assert.That(result.AccidentCauses.Skip(1).First().value, Is.EqualTo(causeOfAccident.Id.ToString()));

        }
 public static AutoCompleteViewModel ForAccidentCauses(CauseOfAccidentDto causeOfAccidentDto)
 {
     return new AutoCompleteViewModel(causeOfAccidentDto.Description, causeOfAccidentDto.Id.ToString());
 }