internal static Recording ConvertFromEntity(RecordingEntity entityToConvert) { return new Recording() { FromProfileId = entityToConvert.FromProfileId, ToProfileId = entityToConvert.ToProfileId, Url = entityToConvert.Url }; }
public void Setup() { var storageAccount = CloudStorageAccount.DevelopmentStorageAccount; var tableClient = storageAccount.CreateCloudTableClient(); var table1 = tableClient.GetTableReference("IVRVoiceRecording"); table1.DeleteIfExists(); table1.Create(); for (int i = 0; i < 3; i++) { var entity = new RecordingEntity() { RecordingId = i, ToProfileId = 111, FromProfileId = 222, Url = "http://" }; entity.PartitionKey = entity.ToProfileId.ToString(); entity.RowKey = entity.RecordingId.ToString(); var op = TableOperation.Insert(entity); table1.Execute(op); } for (int i = 0; i < 3; i++) { var entity = new RecordingEntity() { RecordingId = i, ToProfileId = 112, FromProfileId = 222, Url = "http://" }; entity.PartitionKey = entity.ToProfileId.ToString(); entity.RowKey = entity.RecordingId.ToString(); var op = TableOperation.Insert(entity); table1.Execute(op); } }
internal static void UpdateEntity(IVRProfileEntity entityToUpdate, RecordingEntity profileEntity) { throw new NotImplementedException(); }