internal static IVRProfile ConvertFromEntity(IVRProfileEntity entity)
        {
            IVRProfile ret = new IVRProfile()
              {
            FullName = entity.FullName,
            Culture = entity.Culture,
            ProfileId = entity.ProfileId,
            PhoneNumber = entity.PhoneNumber,
            PIN = entity.PIN
              };

              return ret;
        }
        internal static IVRProfileEntity ConvertToEntity(IVRProfile profile)
        {
            IVRProfileEntity ret = new IVRProfileEntity()
              {
            FullName = profile.FullName,
            Culture = profile.Culture,
            ProfileId = profile.ProfileId,
            PhoneNumber = profile.PhoneNumber,
            PIN = profile.PIN,
            RowKey = profile.ProfileId.ToString(),
            PartitionKey = (profile.ProfileId).ToString().Substring(0, 2)
              };

              return ret;
        }
            public void Setup()
            {
                var storageAccount = CloudStorageAccount.DevelopmentStorageAccount;
                var tableClient = storageAccount.CreateCloudTableClient();
                var table1 = tableClient.GetTableReference("ivrProfile");
                table1.DeleteIfExists();
                table1.Create();

                var entity = new IVRProfileEntity()
                {
                  ProfileId = 123456,
                  FullName = "Test User1",
                  PhoneNumber = "+1111111",
                  RowKey = "123456",
                  PartitionKey = (123456).ToString().Substring(0, 2)
                };

                var op = TableOperation.Insert(entity);
                table1.Execute(op);
            }
 internal static void UpdateEntity(IVRProfileEntity entityToUpdate, RecordingEntity profileEntity)
 {
     throw new NotImplementedException();
 }
 internal static void UpdateEntity(IVRProfileEntity entityToUpdate, IVRProfileEntity profileEntity)
 {
     entityToUpdate.Culture = profileEntity.Culture;
       entityToUpdate.PhoneNumber = profileEntity.PhoneNumber;
       entityToUpdate.PIN = profileEntity.PIN;
 }