Example #1
0
        public static BusinessObjects.PersonPhone MapToBusinessLayer(this Data.EntityFramework.PersonPhone source)
        {
            // If null object, return a null object
            if (source == null)
            {
                return(null);
            }

            // Create new BO with data mapped
            return(new BusinessObjects.PersonPhone
            {
                BusinessEntityId = source.BusinessEntityID,
                PhoneNumber = source.PhoneNumber,
                PhoneNumberType = (PhoneNumberTypeEnum)source.PhoneNumberTypeID
            });
        }
Example #2
0
 public void SetUp()
 {
     phoneBo     = new BusinessObjects.PersonPhone();
     phoneEntity = new Data.EntityFramework.PersonPhone();
 }
 public void SetUp()
 {
     phoneBo = new BusinessObjects.PersonPhone();
     phoneEntity = new Data.EntityFramework.PersonPhone();
 }