internal AdvisorDto GetAdvisorById(int id)
        {
            SIAdvisorRepository advisorRepository = new SIAdvisorRepository();
            SIRepository        repository        = new SIRepository();
            IDtoCreator <Advisor, AdvisorDto> advisorDtoCreator = new AdvisorDtoCreator();

            repository.GetObject <Advisor>((x) => _advisors.SingleOrDefault(a => a.Id == (int)x));

            AdvisorServices advisorServices = new AdvisorServices(repository, advisorRepository, advisorDtoCreator);
            var             result          = advisorServices.GetAdvisorById(id);

            return(result);
        }
        internal AdvisorDto GetAdvisorByIdentity(string identity)
        {
            //arrange
            SIAdvisorRepository advisorRepository = new SIAdvisorRepository();
            SIRepository        repository        = new SIRepository();
            IDtoCreator <Advisor, AdvisorDto> advisorDtoCreator = new AdvisorDtoCreator();

            advisorRepository.GetAdvisorByIdentityString = (x) => _advisors.SingleOrDefault(a => a.Identification == x);

            //act
            AdvisorServices services = new AdvisorServices(repository, advisorRepository, advisorDtoCreator);
            AdvisorDto      result   = services.GetAdvisorByIdentity(identity);

            return(result);
        }