public void SalesPersonRetrieveByIdTest()
        {
            const long salesPersonId = 1;
            var        salesPerson   = SalesPersonRepository.GetById(salesPersonId);

            Assert.AreEqual(salesPersonId, salesPerson.Id);
        }
        /// <summary>
        ///     Get Person Name
        /// </summary>
        /// <param name="id"></param>
        /// <param name="personType"></param>
        /// <returns></returns>
        private static string GetPersonName(long id, PersonType personType)
        {
            string personName = string.Empty;

            switch (personType)
            {
            case PersonType.Customer:
                var customer = CustomerRepository.GetById(id);
                personName = customer.FullName;
                break;

            case PersonType.Employee:
                var employee = EmployeeRepository.GetById(id);
                personName = employee.FullName;
                break;

            case PersonType.Manager:
                var manager = ManagerRepository.GetById(id);
                personName = manager.FullName;
                break;

            case PersonType.SalesPerson:
                var salesPerson = SalesPersonRepository.GetById(id);
                personName = salesPerson.FullName;
                break;
            }

            return(personName);
        }
        /// <summary>
        ///     Get Sales Person
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public SalesPersonDto Get(long id)
        {
            var salesPerson = Mapper.DynamicMap <SalesPerson, SalesPersonDto>(SalesPersonRepository.GetById(id));

            return(salesPerson);
        }