public string CreateRider(string riderName)
        {
            var currenrRider = RiderFactory.CreateRider(riderName);

            this.riderRepository.Add(currenrRider);

            return(string.Format(OutputMessages.RiderCreated, riderName));
        }
        public string CreateRider(string riderName)
        {
            var rider = riderFactory.CreateRider("Rider", riderName);

            var riderInRepo = riderRepo.GetByName(riderName);

            if (riderInRepo != null)
            {
                throw new ArgumentException(String.Format(ExceptionMessages.RiderExists, riderName));
            }

            riderRepo.Add(rider);

            return(String.Format(OutputMessages.RiderCreated, riderName));
        }